[lkml]   [2001]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
SubjectARP bug and a patch
	Bug's description :
A computer has two ethernet cards connected to the same hub, each ethernet card was in a
different logical sub net and turn on the ip_forward on each ethernet card. Dozens of ARP request
packet will cause a "neibour table overflow"
error then the netcard can not work .
The arp_rcv fuction would call the ip_route_input function to build the dst entry of the skb.
When the ip_forward is on , the code will run direct into the rt_intern_hash fuction which add the
target ip to the neighbour buffer .

diff -Naur linux-2.4.9/net/ipv4/route.c linux-2.4.9n/net/ipv4/route.c
--- linux-2.4.9/net/ipv4/route.c Fri Nov 16 17:19:06 2001
+++ linux-2.4.9n/net/ipv4/route.c Fri Nov 16 17:17:59 2001
@@ -1501,6 +1501,12 @@

+ if (skb->protocol == __constant_htons(ETH_P_ARP)){
+ skb->dst = rth;
+ err = 0;
+ goto done;
+ }
err = rt_intern_hash(hash, rth, (struct rtable**)&skb->dst);

Do You Yahoo!?
Get your free address at
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:13    [W:0.266 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site