From owner-freebsd-bugs@FreeBSD.ORG Wed Jul 20 19:50:25 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E551416A423 for ; Wed, 20 Jul 2005 19:50:24 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F2C743D60 for ; Wed, 20 Jul 2005 19:50:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j6KJoFSV059968 for ; Wed, 20 Jul 2005 19:50:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j6KJoFGT059964; Wed, 20 Jul 2005 19:50:15 GMT (envelope-from gnats) Resent-Date: Wed, 20 Jul 2005 19:50:15 GMT Resent-Message-Id: <200507201950.j6KJoFGT059964@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Stefan Sperling Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9B6AD16A41F for ; Wed, 20 Jul 2005 19:47:27 +0000 (GMT) (envelope-from stsp@stsp.in-berlin.de) Received: from einhorn.in-berlin.de (einhorn.in-berlin.de [192.109.42.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0737A43D45 for ; Wed, 20 Jul 2005 19:47:26 +0000 (GMT) (envelope-from stsp@stsp.in-berlin.de) Received: from dice.seeling33.de (e178161146.adsl.alicedsl.de [85.178.161.146]) (authenticated bits=0) by einhorn.in-berlin.de (8.12.10/8.12.10/Debian-4) with ESMTP id j6KJlN53030830 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 20 Jul 2005 21:47:23 +0200 Received: by dice.seeling33.de (Postfix, from userid 1001) id F0F4E33C26; Wed, 20 Jul 2005 21:47:22 +0200 (CEST) Message-Id: <20050720194722.F0F4E33C26@dice.seeling33.de> Date: Wed, 20 Jul 2005 21:47:22 +0200 (CEST) From: Stefan Sperling To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/83807: [patch] Wake On Lan support for FreeBSD X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Stefan Sperling List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jul 2005 19:50:25 -0000 >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 mtu 1500 options=48 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 ) 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: