Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jul 2005 21:47:22 +0200 (CEST)
From:      Stefan Sperling <stsp@stsp.in-berlin.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/83807: [patch] Wake On Lan support for FreeBSD
Message-ID:  <20050720194722.F0F4E33C26@dice.seeling33.de>
Resent-Message-ID: <200507201950.j6KJoFGT059964@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         83807
>Category:       kern
>Synopsis:       [patch] Wake On Lan support for FreeBSD
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 20 19:50:15 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Stefan Sperling
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD dice.seeling33.de 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Wed Jul 20 11:35:03 CEST 2005 stsp@dice.seeling33.de:/usr/obj/home/FreeBSD/FreeBSD-wol/src/sys/DICE i386


	
>Description:
	This patch teaches the if_sis driver to enable Wake On Lan (WOL) functionality
	on the NatSemi DP8381[56] chip. This did not work previously because the driver
	has to enable WOL functionality explicitely on system shutdown.

	It also defines new ioctls that allow configuring WOL functionality from user space.
	These ioctls could also be used by other network drivers implementing WOL features
	as well (none yet known to me).

	The ifconfig command has been extended to accept a 'wakeon' command used to configure
	network packet types that shall trigger wake events. 
	For example:
		
		# ifconfig sis0 wakeon magic
	
	configures the card to wake upon recieving a MagicPacket(tm).

		# ifconfig sis0 wakeon broadcast

	configures the card to wake upon recieving a broadcast packet.
	Multiple events may be specified, seperated by commas.

	The WOL capabilities of a network card, if present, are printed by ifconfig:

	stsp@dice$ ifconfig sis0
	sis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
		options=48<VLAN_MTU,POLLING>
		inet6 fe80::209:5bff:fe8a:d538%sis0 prefixlen 64 scopeid 0x1
		inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
		ether 00:09:5b:8a:d5:38
		media: Ethernet autoselect (100baseTX <full-duplex>)
		status: active
		supported wake on lan events: unicast multicast broadcast magic

	If wake up events have been defined (e.g. MagicPacket(tm)),
	ifconfig also shows the following line:

		will wake on: magic

	The patch also updates the ifconfig(8) man page accordingly.

	Oh, and it also does some s/u_int32_t/uint32_t/

>How-To-Repeat:
	
>Fix:

	


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050720194722.F0F4E33C26>