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

Next file: linux/net/ipv6/Config.in
Previous file: linux/net/ipv4/af_inet.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.33/linux/net/ipv4/ip_output.c linux/net/ipv4/ip_output.c
@@ -182,7 +182,7 @@
 	ip_send_check(iph);
 
 	/* Send it out. */
-	NF_HOOK(PF_INET, NF_IP_LOCAL_OUT, skb, NULL, NULL,
+	NF_HOOK(PF_INET, NF_IP_LOCAL_OUT, skb, NULL, rt->u.dst.dev,
 		output_maybe_reroute);
 }
 
@@ -850,6 +850,7 @@
 		if (skb->sk)
 			skb_set_owner_w(skb2, skb->sk);
 		skb2->dst = dst_clone(skb->dst);
+		skb2->dev = skb->dev;
 
 		/*
 		 *	Copy the packet header into the new buffer.

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)