From owner-freebsd-embedded@FreeBSD.ORG Tue Dec 16 19:29:49 2008 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 280641065679 for ; Tue, 16 Dec 2008 19:29:49 +0000 (UTC) (envelope-from fb-embedded@psconsult.nl) Received: from mx1.psconsult.nl (psc11.adsl.iaf.nl [80.89.238.138]) by mx1.freebsd.org (Postfix) with ESMTP id 985598FC21 for ; Tue, 16 Dec 2008 19:29:48 +0000 (UTC) (envelope-from fb-embedded@psconsult.nl) Received: from mx1.psconsult.nl (localhost [80.89.238.138]) by mx1.psconsult.nl (8.14.2/8.14.2) with ESMTP id mBGJD5is021266 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 16 Dec 2008 20:13:11 +0100 (CET) (envelope-from fb-embedded@psconsult.nl) Received: (from paul@localhost) by mx1.psconsult.nl (8.14.2/8.14.2/Submit) id mBGJD58R021265 for freebsd-embedded@freebsd.org; Tue, 16 Dec 2008 20:13:05 +0100 (CET) (envelope-from fb-embedded@psconsult.nl) Date: Tue, 16 Dec 2008 20:13:05 +0100 From: Paul Schenkeveld To: freebsd-embedded@freebsd.org Message-ID: <20081216191305.GA19656@psconsult.nl> References: <5CED6A5A-C532-4042-B7F3-264BD0C9791B@jump-ing.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5CED6A5A-C532-4042-B7F3-264BD0C9791B@jump-ing.de> User-Agent: Mutt/1.5.17 (2007-11-01) Subject: Re: Wake-on-lan packages don't get through X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2008 19:29:49 -0000 Hi, On Tue, Dec 16, 2008 at 07:22:39PM +0100, Markus Hitter wrote: > > Hello all, > > glad to have found a binary[1] wake-on-lan program, I obvserve different > behaviour of /usr/bin/wol on my full-size FreeBSD and my TinyBSD. From the > full-size BSD (VirtualBox on Linux), i could capture this package after > issueing wol: > > 18:50:30.019039 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP > (17), length 130) piccard.jump-ing.de.37597 > 255.255.255.255.40000: [bad > udp cksum b716!] UDP, length 102 > > This package woke the targeted Macintosh. Doing the same on the embedded > Flepo, I get: > > 01:38:35.500497 IP (tos 0x0, ttl 64, id 40022, offset 0, flags [none], > proto UDP (17), length 130, bad cksum 0 (->d401)!) git.jump-ing.de.50582 > > 255.255.255.255.40000: [bad udp cksum a1e4!] UDP, length 102 > > The later doesn't get through the switch, I can capture it on the sending > host only. Accordingly, the Mac keeps sleeping. Please show a tcpdump -e output here. The wake-on-lan packet should be sent to the ethernet broadcast address (ff:ff:ff:ff:ff:ff) for the switch to send it to all ports (which is needed since it can't learn mac address from switched off nodes). On some of my machines I need to explicitely send the packet to the IP LAN broadcast address, e.g. 192.168.1.255 (assuming /24 netmask). > As both "wol" binaries are the very same (copied), I can rule out > compilation errors. To be more funny, the Flepo serves web pages just fine. > What does go wrong here? What about the kernels, are they the same version? and does your embedded system have more than one ethernet interface? > Thanks for any enlightenment, > Markus HTH > [1] Using wakeonlan requires Perl, which in turn would more than double the > size of the installation on the embedded box. > > - - - - - - - - - - - - - - - - - - - > Dipl. Ing. Markus Hitter > http://www.jump-ing.de/ Paul Schenkeveld