tech-net archive

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

Re: IFCAP_WOL



 Hi, Joerg.

From: Joerg Sonnenberger <joerg%britannica.bec.de@localhost>
Subject: Re: IFCAP_WOL
Date: Sun, 7 Mar 2010 12:13:38 +0100

> On Sun, Mar 07, 2010 at 06:57:03PM +0900, SAITOH Masanobu wrote:
>>     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).
> 
> Are those the only three options supported by hardware?

No. The wm has many wakeup functions other than above:

        Wake on Link status change.
        Wake on ARP request.
        Some other special functions (I don't know the detail yet...)

The FreeBSD's code says that age, ale, gsip, ste, stge, txp, re and vge
have some capabilities of IFCAP_WOL_MCAST, IFCAP_UCAST and IFCAP_WOL_MAGIC.

> 
> Joerg

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


Home | Main Index | Thread Index | Old Index