tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]


From: Bernd Ernesti <>
Subject: Re: IFCAP_WOL
Date: Sun, 7 Mar 2010 10:40:09 +0100

> On Sun, Mar 07, 2010 at 06:29:20PM +0900, SAITOH Masanobu wrote:
>>  Hello.
>>  As I wrote in the commit message for if_wm.c rev. 1.203. I've succeeded
>> waking up from suspend(S3) by the Magic Packet. I tested on my ThinkPad X61.
>>  The function is disabled by default because it may wastes a battery's
>> capacity in a notebook.
> I agree that turning it off for a notebook is a good idea.
> With a desktop adapter and netbsd-5 it seems that shutdown -p does not turn
> the power off because I still see the active led on the adapater and the 
> switch.

Perhaps, the behavior depends on a system and the setting of the BIOS.
My Thinkpad X61 drops the link when I suspend with zzz command without my

>> So I think it's a good solution to introduce FreeBSD's
> What is that?
>>  Any objections?
> Too which proposal?
> Bernd

I'm sorry. My proposal is:

    0) Add the following definitions into net/if.h for the capability and
       enabled flag.

#define IFCAP_WOL_UCAST         0x080000 /* wake on any unicast frame */
#define IFCAP_WOL_MCAST         0x100000 /* wake on any multicast frame */
#define IFCAP_WOL_MAGIC         0x200000 /* wake on any Magic Packet */


    1) Add [-]wol, [-]wol_ucast, [-]wol_mcast and [-]wol_magic flags into

                SAITOH Masanobu (

Home | Main Index | Thread Index | Old Index