From owner-freebsd-mips@FreeBSD.ORG Wed May 11 01:24:53 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 23A661065674 for ; Wed, 11 May 2011 01:24:53 +0000 (UTC) (envelope-from gonzo@launchpad.bluezbox.com) Received: from launchpad.bluezbox.com (hq.bluezbox.com [70.38.37.145]) by mx1.freebsd.org (Postfix) with ESMTP id B77898FC1A for ; Wed, 11 May 2011 01:24:52 +0000 (UTC) Received: from localhost ([127.0.0.1]) by launchpad.bluezbox.com with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.73 (FreeBSD)) (envelope-from ) id 1QJxPY-000DT8-NG; Tue, 10 May 2011 17:36:21 -0700 Message-ID: <4DC9DA05.7050901@freebsd.org> Date: Tue, 10 May 2011 17:36:21 -0700 From: Oleksandr Tymoshenko User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Erik Moe , freebsd-mips@freebsd.org References: <42E1A1C3-654C-4A1F-8EDC-57EF2A52F5FE@gmail.com> In-Reply-To: <42E1A1C3-654C-4A1F-8EDC-57EF2A52F5FE@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: gonzo@launchpad.bluezbox.com X-Spam-Level: ---- X-Spam-Report: Spam detection software, running on the system "hq.bluezbox.com", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: On 10/05/2011 7:58 AM, Erik Moe wrote: >>> Using tcpdump, after RouterBoot finishes loading the kernel, I see one DHCP request coming from the RouterBoard using mac 00:0c:42:1e:9a:88 and then there is nothing after that. I don't see any packets at all. >>> >>> 192.168.11.2.23224> 192.168.11.15.61904: [udp sum ok] UDP, length 21 >>> 09:24:05.839921 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 32) >>> 192.168.11.15.61904> 192.168.11.2.23224: [udp sum ok] UDP, length 4 >>> 09:24:05.840980 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 328) >>> 0.0.0.0.bootpc> broadcasthost.bootps: [udp sum ok] BOOTP/DHCP, Request from 00:0c:42:1e:9a:88 (oui Unknown), length 300, xid 0xd8aaeeff, Flags [none] (0x0000) >>> Client-Ethernet-Address 00:0c:42:1e:9a:88 (oui Unknown) >>> Vendor-rfc1048 Extensions >>> Magic Cookie 0x63825363 >>> DHCP-Message Option 53, length 1: Release >>> Client-ID Option 61, length 7: ether 00:0c:42:1e:9a:88 >>> Vendor-Class Option 60, length 9: "Mikroboot" >>> Parameter-Request Option 55, length 2: >>> Subnet-Mask, Default-Gateway >>> END Option 255, length 0 >>> PAD Option 0, length 0, occurs 32 >>> >>> Thanks, >>> Erik >>> >> Unfortunately the mac address is hardcoded for this driver (in sys/mips/adm5120/if_admsw.c): >> >> 389 /* XXXMIPS: fix it */ >> 390 enaddr[0] = 0x00; >> 391 enaddr[1] = 0x0C; >> 392 enaddr[2] = 0x42; >> 393 enaddr[3] = 0x07; >> 394 enaddr[4] = 0xB2; >> 395 enaddr[5] = 0x4E; >> >> >> Luiz >> > > > That's not the main issue I have, the fact that the mac address is hardcoded. The issue is once the RouterBoot loads and boots the kernel, I'm not seeing the kernel sending any DHCP/BOOTB requests down the wire, even though from the console log it is acting like it is. [...] Content analysis details: (-4.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Cc: Subject: Re: FreeBSD MIPS and RB133c X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2011 01:24:53 -0000 On 10/05/2011 7:58 AM, Erik Moe wrote: >>> Using tcpdump, after RouterBoot finishes loading the kernel, I see one DHCP request coming from the RouterBoard using mac 00:0c:42:1e:9a:88 and then there is nothing after that. I don't see any packets at all. >>> >>> 192.168.11.2.23224> 192.168.11.15.61904: [udp sum ok] UDP, length 21 >>> 09:24:05.839921 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 32) >>> 192.168.11.15.61904> 192.168.11.2.23224: [udp sum ok] UDP, length 4 >>> 09:24:05.840980 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 328) >>> 0.0.0.0.bootpc> broadcasthost.bootps: [udp sum ok] BOOTP/DHCP, Request from 00:0c:42:1e:9a:88 (oui Unknown), length 300, xid 0xd8aaeeff, Flags [none] (0x0000) >>> Client-Ethernet-Address 00:0c:42:1e:9a:88 (oui Unknown) >>> Vendor-rfc1048 Extensions >>> Magic Cookie 0x63825363 >>> DHCP-Message Option 53, length 1: Release >>> Client-ID Option 61, length 7: ether 00:0c:42:1e:9a:88 >>> Vendor-Class Option 60, length 9: "Mikroboot" >>> Parameter-Request Option 55, length 2: >>> Subnet-Mask, Default-Gateway >>> END Option 255, length 0 >>> PAD Option 0, length 0, occurs 32 >>> >>> Thanks, >>> Erik >>> >> Unfortunately the mac address is hardcoded for this driver (in sys/mips/adm5120/if_admsw.c): >> >> 389 /* XXXMIPS: fix it */ >> 390 enaddr[0] = 0x00; >> 391 enaddr[1] = 0x0C; >> 392 enaddr[2] = 0x42; >> 393 enaddr[3] = 0x07; >> 394 enaddr[4] = 0xB2; >> 395 enaddr[5] = 0x4E; >> >> >> Luiz >> > > > That's not the main issue I have, the fact that the mac address is hardcoded. The issue is once the RouterBoot loads and boots the kernel, I'm not seeing the kernel sending any DHCP/BOOTB requests down the wire, even though from the console log it is acting like it is. Tcpdump session above - are those only packets during the session? Were there proper DHCP replies that were ignored? Could you show full log?