patch-2.2.4 linux/include/net/ip.h
Next file: linux/include/net/ip6_fib.h
Previous file: linux/include/net/dst.h
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Tue Mar 23 13:55:14 1999
- Orig file:
v2.2.3/linux/include/net/ip.h
- Orig date:
Mon Oct 5 13:13:47 1998
diff -u --recursive --new-file v2.2.3/linux/include/net/ip.h linux/include/net/ip.h
@@ -147,13 +147,14 @@
skb->protocol = __constant_htons(ETH_P_IP);
if (hh) {
+ read_lock_irq(&hh->hh_lock);
memcpy(skb->data - 16, hh->hh_data, 16);
+ read_unlock_irq(&hh->hh_lock);
skb_push(skb, dev->hard_header_len);
return hh->hh_output(skb);
} else if (dst->neighbour)
return dst->neighbour->output(skb);
- printk(KERN_DEBUG "khm\n");
kfree_skb(skb);
return -EINVAL;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)