[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: Busybox Update Problem
From:       Michael Davis <mdavis () dtlcontrols ! com>
Date:       2008-09-29 13:40:19
Message-ID: 48E0DAC3.20901 () dtlcontrols ! com
[Download RAW message or body]

Denys Vlasenko wrote:
> On Friday 26 September 2008 19:47, Michael Davis wrote:
>   
>>>  > Yes, output confirms what I expected. DHCP server doesn't respond
>>>  > to requests "Please ACK my address".
>>>
>>> Can you reveal what dhcp-server you're using?
>>>       
>> Just the DHCP server in my off the shelf DLink DIR-615 router.
>>     
>
> Can you collect tcpdump of a successful DHCP exchange with this server?
>
> I finally fished out DHCP RFC and it definitely says (even recommends)
> to use broadcast for DHCPREQUEST packets.
>
> Either this server is strange and wants unicast DHCPREQUESTs,
> or our DHCPREQUEST packets are subtly broken.
> In any case, I want to know what exactly is at play here.
> --
> vda
>
>   
Attached is a successful DHCP exchange with the same board and same 
server.  Same setup of busybox as well, just compiled without the 
-msoft-float flag.

Also here is the output of the program in that state.
udhcpc (v1.11.2) started
udhcpc: state:0
Sending discover...
udhcpc: state:1
udhcpc: state:1 packet_num:0 discover_retries:3
Sending select for 192.168.1.183...
Lease of 192.168.1.183 obtained, lease time 86400
deleting routers
route: SIOCDELRT: No such process
adding dns 192.168.1.1



-- 
Michael Davis
Software Engineer
DTL Controls, LLC 
  


["hardfloat" (text/plain)]

08:33:30.689054 IP (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), \
length 576) 0.0.0.0.bootpc > 255.255.255.255.bootps: [udp sum ok] BOOTP/DHCP, Request \
from 00:ba:d0:0b:ad:00, length 548, xid 0x5752cd13, Flags [none] (0x0000)  \
Client-Ethernet-Address 00:ba:d0:0b:ad:00  Vendor-rfc1048 Extensions
	    Magic Cookie 0x63825363
	    DHCP-Message Option 53, length 1: Discover
	    Client-ID Option 61, length 7: ether 00:ba:d0:0b:ad:00
	    Vendor-Class Option 60, length 12: "udhcp 1.11.2"
	    MSZ Option 57, length 2: 576
	    Parameter-Request Option 55, length 7: 
	      Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname
	      Domain-Name, BR, NTP
	    END Option 255, length 0
	    PAD Option 0, length 0, occurs 268
08:33:30.988938 IP (tos 0x0, ttl 64, id 55319, offset 0, flags [none], proto UDP \
(17), length 328) 192.168.1.1.bootps > 255.255.255.255.bootpc: [udp sum ok] \
BOOTP/DHCP, Reply, length 300, xid 0x5752cd13, Flags [none] (0x0000)  Your-IP \
192.168.1.183  Client-Ethernet-Address 00:ba:d0:0b:ad:00
	  Vendor-rfc1048 Extensions
	    Magic Cookie 0x63825363
	    BR Option 28, length 4: 192.168.1.255
	    Domain-Name-Server Option 6, length 4: 192.168.1.1
	    Default-Gateway Option 3, length 4: 192.168.1.1
	    Subnet-Mask Option 1, length 4: 255.255.255.0
	    Server-ID Option 54, length 4: 192.168.1.1
	    Lease-Time Option 51, length 4: 86400
	    DHCP-Message Option 53, length 1: Offer
	    END Option 255, length 0
	    PAD Option 0, length 0, occurs 20
08:33:31.017650 IP (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), \
length 576) 0.0.0.0.bootpc > 255.255.255.255.bootps: [udp sum ok] BOOTP/DHCP, Request \
from 00:ba:d0:0b:ad:00, length 548, xid 0x5752cd13, Flags [none] (0x0000)  \
Client-Ethernet-Address 00:ba:d0:0b:ad:00  Vendor-rfc1048 Extensions
	    Magic Cookie 0x63825363
	    DHCP-Message Option 53, length 1: Request
	    Client-ID Option 61, length 7: ether 00:ba:d0:0b:ad:00
	    Vendor-Class Option 60, length 12: "udhcp 1.11.2"
	    Requested-IP Option 50, length 4: 192.168.1.183
	    Server-ID Option 54, length 4: 192.168.1.1
	    Parameter-Request Option 55, length 7: 
	      Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname
	      Domain-Name, BR, NTP
	    END Option 255, length 0
	    PAD Option 0, length 0, occurs 260
08:33:31.018161 IP (tos 0x0, ttl 64, id 55320, offset 0, flags [none], proto UDP \
(17), length 328) 192.168.1.1.bootps > 255.255.255.255.bootpc: [udp sum ok] \
BOOTP/DHCP, Reply, length 300, xid 0x5752cd13, Flags [none] (0x0000)  Your-IP \
192.168.1.183  Client-Ethernet-Address 00:ba:d0:0b:ad:00
	  Vendor-rfc1048 Extensions
	    Magic Cookie 0x63825363
	    BR Option 28, length 4: 192.168.1.255
	    Domain-Name-Server Option 6, length 4: 192.168.1.1
	    Default-Gateway Option 3, length 4: 192.168.1.1
	    Subnet-Mask Option 1, length 4: 255.255.255.0
	    Server-ID Option 54, length 4: 192.168.1.1
	    Lease-Time Option 51, length 4: 86400
	    DHCP-Message Option 53, length 1: ACK
	    END Option 255, length 0
	    PAD Option 0, length 0, occurs 20



_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic