tech-net archive

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

Re: IFCAP_WOL



From: Bernd Ernesti <netbsd%lists.veego.de@localhost>
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
change. 


>> So I think it's a good solution to introduce FreeBSD's
>> IFCAP_WOL to NetBSD.
> 
> 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 */

#define IFCAP_WOL       (IFCAP_WOL_UCAST | IFCAP_WOL_MCAST | IFCAP_WOL_MAGIC)

    1) Add [-]wol, [-]wol_ucast, [-]wol_mcast and [-]wol_magic flags into
       ifconfig(8).

----------------------------------------------------------
                SAITOH Masanobu (masanobu%iij.ad.jp@localhost
                                  msaitoh%netbsd.org@localhost)


Home | Main Index | Thread Index | Old Index