This is an old revision of the document!
PR
Status
Work on Wake On Lan support has started in 8-CURRENT. In revision [http://www.freebsd.org/cgi/cvsweb.cgi/src/sbin/ifconfig/ifconfig.c?rev=1.135 1.135] ifconfig was taught about Wake On Lan capabilities by Sam Leffler. This means that drivers can now advertise WOL capabilities to user space and WOL can be configured through ifconfig if the network card driver supports WOL.
WOL support still needs to be implemented for almost all ethernet drivers.
Adding driver support
WOL patches found at http://www.stsp.name/wol/ have some additional driver changes, but use an ioctl-based mechanism for ifconfig/driver communication. The approach that is implemented in 8-CURRENT is ifcap-based, so the driver changes need to be adjusted a tiny bit before they can go into 8-CURRENT. Sam Leffler has patches for this but they have not yet been committed (due to lack of testing?).
If you plan to add WOL support for a card see “How to add wake on lan support for your card” at http://marc.info/?l=freebsd-hackers&m=119602736908444&w=2 Note that the obsolete ioctl-based configuration approach is discussed there, but ifcaps should be used instead.
See here for a not yet committed version of if_vr which is WOL capable and uses ifcaps: