patch-2.3.41 linux/net/ipv4/arp.c
Next file: linux/net/ipv4/ip_input.c
Previous file: linux/net/ipv4/af_inet.c
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Sat Jan 22 11:54:57 2000
- Orig file:
v2.3.40/linux/net/ipv4/arp.c
- Orig date:
Wed Dec 29 13:13:21 1999
diff -u --recursive --new-file v2.3.40/linux/net/ipv4/arp.c linux/net/ipv4/arp.c
@@ -1,6 +1,6 @@
/* linux/net/inet/arp.c
*
- * Version: $Id: arp.c,v 1.83 1999/12/15 22:39:03 davem Exp $
+ * Version: $Id: arp.c,v 1.84 2000/01/18 08:24:14 davem Exp $
*
* Copyright (C) 1994 by Florian La Roche
*
@@ -487,7 +487,9 @@
/*
* Fill the device header for the ARP frame
*/
- dev->hard_header(skb,dev,ptype,dest_hw,src_hw,skb->len);
+ if (dev->hard_header &&
+ dev->hard_header(skb,dev,ptype,dest_hw,src_hw,skb->len) < 0)
+ goto out;
/*
* Fill out the arp protocol part.
@@ -552,6 +554,10 @@
skb->dev = dev;
dev_queue_xmit(skb);
+ return;
+
+out:
+ kfree_skb(skb);
}
static void parp_redo(struct sk_buff *skb)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)