7 Mar 2010 13:08
Re: IFCAP_WOL
SAITOH Masanobu <masanobu <at> iij.ad.jp>
2010-03-07 12:08:01 GMT
2010-03-07 12:08:01 GMT
Hi, Joerg. From: Joerg Sonnenberger <joerg <at> britannica.bec.de> 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 <at> iij.ad.jp msaitoh <at> netbsd.org)
RSS Feed