[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #27390] Source IP check in ip_input() causes it to dro
From: |
Mandeep Sandhu |
Subject: |
[lwip-devel] [bug #27390] Source IP check in ip_input() causes it to drop valid DHCP packets |
Date: |
Fri, 16 Oct 2009 06:03:47 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.14) Gecko/2009090216 Ubuntu/9.04 (jaunty) Firefox/3.0.14 |
Follow-up Comment #2, bug #27390 (project lwip):
The part that resets check_ip_src does so only if we haven't found a suitable
interface. This would happen when we're running as a DHCP client and haven't
configured the interface yet. But, in my case I was running a DHCP _server_
and already had the interface configured. So, the netif on which the packet
was received is selected. This causes the reset (of check_ip_src) part to be
skipped. I think we should do a check for DHCP server port (68) as well.
Something like:
if(netif == NULL) {
// Check for DHCP client port
} else {
// Check for DHCP server port
}
What say?
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?27390>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/