patch-2.0.36 linux/net/ipv4/arp.c

Next file: linux/net/ipv4/ip_input.c
Previous file: linux/net/core/sock.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.35/linux/net/ipv4/arp.c linux/net/ipv4/arp.c
@@ -1771,6 +1771,12 @@
 	unsigned char *sha,*tha;
 	u32 sip,tip;
 
+	if(skb->pkt_type == PACKET_OTHERHOST)
+	{
+		kfree_skb(skb, FREE_READ);
+		return 0;
+	}
+	
 /*
  *	The hardware length of the packet should match the hardware length
  *	of the device.  Similarly, the hardware types should match.  The

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov