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

Next file: linux/net/ipv4/ip_fw.c
Previous file: linux/net/802/hippi.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.124/linux/net/ipv4/arp.c linux/net/ipv4/arp.c
@@ -431,7 +431,7 @@
 	 *	No arp on this interface.
 	 */
 	
-	if (dev->flags&IFF_NOARP)
+	if (dev->flags&(IFF_NOARP|IFF_NODYNARP))
 		return;
 
 	/*
@@ -547,7 +547,7 @@
  */  
 	if (in_dev == NULL ||
 	    arp->ar_hln != dev->addr_len    || 
-	    dev->flags & IFF_NOARP          ||
+	    dev->flags & (IFF_NOARP|IFF_NODYNARP) ||
 	    skb->pkt_type == PACKET_OTHERHOST ||
 	    skb->pkt_type == PACKET_LOOPBACK ||
 	    arp->ar_pln != 4)

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