patch-1.3.44 linux/net/ipv4/ip_output.c

Next file: linux/net/ipv4/ipmr.c
Previous file: linux/net/ipv4/ip_forward.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.43/linux/net/ipv4/ip_output.c linux/net/ipv4/ip_output.c
@@ -116,6 +116,7 @@
 
 	skb->dev = dev;
 	skb->arp = 1;
+	skb->protocol = htons(ETH_P_IP);
 	if (dev->hard_header)
 	{
 		/*
@@ -152,6 +153,7 @@
 
 	skb->dev = dev;
 	skb->arp = 1;
+	skb->protocol = ETH_P_IP;
 	if (dev->hard_header)
 	{
 		skb_reserve(skb,MAX_HEADER);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this