patch-2.1.22 linux/net/ipv4/ip_forward.c

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

diff -u --recursive --new-file v2.1.21/linux/net/ipv4/ip_forward.c linux/net/ipv4/ip_forward.c
@@ -205,7 +205,7 @@
 		}
 #endif
 
-		if (skb_headroom(skb) < dev2->hard_header_len) {
+		if (skb_headroom(skb) < dev2->hard_header_len || skb_cloned(skb)) {
 			struct sk_buff *skb2;
 			skb2 = skb_realloc_headroom(skb, (dev2->hard_header_len + 15)&~15);
 			kfree_skb(skb, FREE_WRITE);

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