Netdev List
 help / color / mirror / Atom feed
* [PATCH] don't automatically drop packets from 0.0.0.0/8
@ 2006-05-31 17:07 Amnon Aaronsohn
  2006-05-31 17:26 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: Amnon Aaronsohn @ 2006-05-31 17:07 UTC (permalink / raw)
  To: netdev; +Cc: linux-kernel

For some reason linux drops all incoming packets which have a source
address in the 0.0.0.0/8 range, although these are valid addresses. The
attached patch fixes this. (It still drops packets coming from 0.0.0.0
since that's a special address.)

Signed-off-by: Amnon Aaronsohn <bla@cs.huji.ac.il>
---

--- linux-2.6.16.18/net/ipv4/route.c.old	2006-05-30 08:57:42.000000000 +0300
+++ linux-2.6.16.18/net/ipv4/route.c	2006-05-30 08:58:22.000000000 +0300
@@ -1935,7 +1935,7 @@ static int ip_route_input_slow(struct sk
 	/* Accept zero addresses only to limited broadcast;
 	 * I even do not know to fix it or not. Waiting for complains :-)
 	 */
-	if (ZERONET(saddr))
+	if (saddr == 0)
 		goto martian_source;

 	if (BADCLASS(daddr) || ZERONET(daddr) || LOOPBACK(daddr))

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-05-31 17:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-31 17:07 [PATCH] don't automatically drop packets from 0.0.0.0/8 Amnon Aaronsohn
2006-05-31 17:26 ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox