patch-2.1.92 linux/net/ipv4/ip_masq_app.c

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

diff -u --recursive --new-file v2.1.91/linux/net/ipv4/ip_masq_app.c linux/net/ipv4/ip_masq_app.c
@@ -506,7 +506,7 @@
         struct sk_buff *n_skb;
 	int offset;
 
-	maxsize = skb->truesize - sizeof(struct sk_buff);
+	maxsize = skb->truesize;
 
         diff = n_len - o_len;
         o_offset = o_buf - (char*) skb->data;
@@ -547,7 +547,6 @@
                 offset = n_skb->data - skb->data;
                 n_skb->nh.raw = skb->nh.raw + offset;
                 n_skb->h.raw = skb->h.raw + offset;
-                n_skb->when = skb->when;
                 n_skb->dev = skb->dev;
                 n_skb->mac.raw = skb->mac.raw + offset;
                 n_skb->pkt_type = skb->pkt_type;

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