public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ben Warren <biggerbadderben@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] PATCH for U-Boot 1.3.3 DHCP fails withnetgearWGR614v6
Date: Fri, 11 Jul 2008 15:41:16 -0700	[thread overview]
Message-ID: <4877E18C.2040102@gmail.com> (raw)
In-Reply-To: <200807111835.35597.rgetz@blackfin.uclinux.org>

Robin Getz wrote:
> On Fri 11 Jul 2008 18:05, Ben Warren pondered:
>   
>> Hi Robin,
>>
>> Robin Getz wrote:
>>     
>>> On Fri 11 Jul 2008 14:21, Ben Warren pondered:
>>>   
>>>       
>>>> Robin Getz wrote:
>>>>     
>>>>         
>>> [snip]
>>>   
>>>       
>>>>>   
>>>>>       
>>>>>           
>>>> This seems goofy.  Have you tried your fix with other DHCP servers to
>>>>         
>>>> verify that it works?  If so, which ones?  I unfortunately can't try 
>>>> anything right now but will play around a bit tonight.
>>>>     
>>>>         
>>> Some other random netgears that I have in my home, plus whatever is
>>> attached to our corp network - it works on them all (but on those it
>>> worked before as well).
>>>
>>> -Robin
>>>       
>> While your fix works, wouldn't it be more correct to remove the call to 
>> BootpCopyNetParams() on line 927?  
>>     
>
> That seems to work as well - but changes the operation a little.
>
> Before - the U-Boot had set source IP number to the IP number it had been 
> offered (my first patch leaves it that way). With the call to 
> BootpCopyNetParams() removed, it does a broadcast (Source IP is 0.0.0.0 - 
> just like the RFC says it should do).
>
> I have no idea if some other broken DHCP server historically needed that, or 
> what was going on - so that is why I only fixed the operation on the wire - 
> not changed it from it's existing state (which AFAICT - _is_ wrong).
>
> I'm more than happy to send the patch that remove the call (and makes things 
> more correct, fixes the bug, and makes things smaller) - but I'm also 
> hesitant since I don't want to break it for anyone else :)
>
>   
>> My understanding of the purpose of  
>> the DHCPDISCOVER state is for determining if there are reachable DHCP 
>> servers, not for actually acquiring an address.  I'm a bit wary because 
>> I don't know why that call was put there in the first place.  I guess in
>> theory you could short-circuit the DHCPREQUEST state, but the code 
>> doesn't do that.
>>     
>
> The code does do that. The call to BootpCopyNetParams() sets up the network, 
> and allows the ARP code in ./net/net.c to respond (before it should) this is 
> what causes the problem I was/am having.
>
> Either fix is fine with me - let me know which one you want.
>
> -Robin
>
>   
I'm a bit of an idealist, so I say let's do it right (remove the call to 
BootpCopyNetParams()).  Unless somebody with some historical perspective 
weighs in, we'll pull it in as soon as the next merge window opens and 
see what happens.

thanks a lot,
Ben

  parent reply	other threads:[~2008-07-11 22:41 UTC|newest]

Thread overview: 17+ 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
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         ` Ben Warren [this message]
2008-07-11 22:54           ` [U-Boot-Users] PATCH for U-Boot 1.3.3 DHCP fails withnetgearWGR614v6 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
     [not found] <200807120112.18889.rgetz@blackfin.uclinux.org>
2008-07-12 14:37 ` Wolfgang Denk
     [not found] <200807121116.09164.rgetz@blackfin.uclinux.org>
2008-07-12 20:11 ` 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=4877E18C.2040102@gmail.com \
    --to=biggerbadderben@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox