lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #21655] DHCP doesn't work reliably with multiple netif


From: Simon Goldschmidt
Subject: [lwip-devel] [bug #21655] DHCP doesn't work reliably with multiple netifs
Date: Sun, 02 Dec 2007 14:45:16 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11

Follow-up Comment #10, bug #21655 (project lwip):

> In that case, I think the best thing to do might be to check 
> whether the 'inp' netif does match (in terms of IP address, mask, 
> broadcast addr, etc.) and only resort to scanning the netif list 
> if it doesn't. This will make things faster for the common case too!

Here's a patch for this. In ip_input, the code in the loop mainly stays the
same but the simple for-loop is changed to a do..while and is started with
inp, if that doesn't match, netif_list is searched.

The downside of this is that if inp doesn't match, it is checked twice (one
time first and one time since it is on netif_list, too). But since this is a
rather uncommon case, I think that's ok.

(file #14535)
    _______________________________________________________

Additional Item Attachment:

File name: ip_input_search_netif.patch    Size:1 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?21655>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]