From: Jerry Van Baren <gerald.vanbaren@ge.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] PATCH for U-Boot 1.3.3 DHCP fails with netgear WGR614v6
Date: Fri, 11 Jul 2008 15:15:14 -0400 [thread overview]
Message-ID: <4877B142.5090204@ge.com> (raw)
In-Reply-To: <4877AEE0.6070802@gmail.com>
Ben Warren wrote:
> Jerry Van Baren wrote:
>> Ben Warren wrote:
>>> Robin Getz wrote:
>>>> I was trying out U-Boot 1.1.3 with a new(er) router netgear WGR614v6
>>>> - firmware version V2.0.19_1.0.19NA, on a Blackfin BF537-STAMP.
>>>>
>>>> http://kbserver.netgear.com/products/wgr614v6.asp
>>>>
>>>> and found that dhcp fails :(
>>
>> More correctly, the *second* DHCP request fails.
>>
>>>> bfin> dhcp
>>>> BOOTP broadcast 1
>>>> BOOTP broadcast 2
>>>> BOOTP broadcast 3
>>>> BOOTP broadcast 4
>>>> BOOTP broadcast 5
>>>>
>>>> Retry count exceeded; starting again
>>>>
>>>> When turning on some more verbose debug messages (in the net driver
>>>> & in the network code, not all of which exists in U-Boot release or
>>>> trunk), we can see exactly what is going on...
>>>>
>>>> =============================
>>
>> First DHCP request...
>>
>>>> bfin> dhcp
>>>> Eth_halt: ......
>>>> Eth_init: ......
>>>> BOOTP broadcast 1
>>>> setting transaction ID to 3268fe22
>>>> BFIN EMAC send: length = 343
>>>> BFIN EMAC rx: length = 552
>>>> packet received
>>>> packet received
>>>> Receive from protocol 0x800
>>>> Got IP
>>>> len=308, v=45
>>>> passing packet len= 280
>>>> DHCPHandler: got packet: (src=67, dst=68, len=280) state: 3
>>>> Filtering pkt = 0
>>>> DHCPHandler: got DHCP packet: (src=67, dst=68, len=280) state: 3
>>>> DHCP: state=SELECTING bp_file: ""
>>>> TRANSITIONING TO REQUESTING STATE
>>>> IP was: 0.0.0.0
>>>> IP now: 192.168.0.9
>>
>> ...worked.
>>
>>>> Bootfile:
>>>> DhcpSendRequestPkt: Sending DHCPREQUEST
>>
>> Why is the second DHCP request being sent? What is the second DHCP
>> request asking for (sniff the net with wireshark). It should be
>> asking for its current IP address (e.g. a renewal) if anything.
>>
> I think this is how it's supposed to work, but don't quote me... Client
> starts in 'Discover' state, sending a broadcast looking for servers.
> One or more servers respond with proposals. Client changes to 'Request'
> state, and sends a request. Server then has the option of sending an
> ARP to see if the IP address is already taken and eventually sends ACK
> or NAK.
Yes, but that describes the *first* DHCP which *succeeded* (above). The
target then initiates a second DHCP (presumably with the same MAC
address and, I would presume/deduce with a lease renewal request rather
than a "gimme a new IP" request) which the server(?) bungles.
> But why the NAK in this case? The server should recognize that it
> offered this IP address to the device with this MAC address. Maybe it
> is a timing thing like somebody saw a while ago with a Windows DHCP server.
Yes, Windows is my suspicion too, our emails probably crossed in the server.
> Fun stuff...
>
> regards,
> Ben
Makes a slow day go faster. :-)
gvb
next prev parent reply other threads:[~2008-07-11 19:15 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200807111217.03285.rgetz@blackfin.uclinux.org>
2008-07-11 18:21 ` [U-Boot-Users] PATCH for U-Boot 1.3.3 DHCP fails with netgear WGR614v6 Ben Warren
2008-07-11 18:52 ` Jerry Van Baren
2008-07-11 19:01 ` Jerry Van Baren
2008-07-11 19:05 ` Ben Warren
2008-07-11 19:15 ` Jerry Van Baren [this message]
2008-07-11 19:31 ` Ben Warren
2008-07-11 19:51 ` Jerry Van Baren
[not found] ` <200807111720.57618.rgetz@blackfin.uclinux.org>
2008-07-14 12:29 ` Jerry Van Baren
[not found] ` <200807111712.51366.rgetz@blackfin.uclinux.org>
2008-07-11 22:05 ` [U-Boot-Users] PATCH for U-Boot 1.3.3 DHCP fails with netgearWGR614v6 Ben Warren
[not found] ` <200807111835.35597.rgetz@blackfin.uclinux.org>
2008-07-11 22:41 ` [U-Boot-Users] PATCH for U-Boot 1.3.3 DHCP fails withnetgearWGR614v6 Ben Warren
2008-07-11 22:54 ` Wolfgang Denk
2008-07-11 23:12 ` Ben Warren
2008-07-12 14:17 ` Wolfgang Denk
[not found] ` <200807111905.35936.rgetz@blackfin.uclinux.org>
2008-07-14 22:42 ` Ben Warren
2008-07-15 19:47 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4877B142.5090204@ge.com \
--to=gerald.vanbaren@ge.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.