]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[NETFILTER]: Clear GSO bits for TCP reset packet
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 14 Feb 2007 08:39:09 +0000 (09:39 +0100)
committerAdrian Bunk <bunk@stusta.de>
Wed, 14 Feb 2007 08:39:09 +0000 (09:39 +0100)
The TCP reset packet is copied from the original.  This
includes all the GSO bits which do not apply to the new
packet.  So we should clear those bits.

Spotted by Patrick McHardy.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
net/ipv4/netfilter/ipt_REJECT.c

index 3eb47aae78c5b4cf1e215d9975f9c4e6c3440067..e85ef898faac1b40fd4ef26592b3eda2aa0d93f9 100644 (file)
@@ -159,6 +159,9 @@ static void send_reset(struct sk_buff *oldskb, int hook)
        nskb->nf_bridge = NULL;
 #endif
 
+       skb_shinfo(nskb)->tso_size = 0;
+       skb_shinfo(nskb)->tso_segs = 0;
+
        tcph = (struct tcphdr *)((u_int32_t*)nskb->nh.iph + nskb->nh.iph->ihl);
 
        /* Swap source and dest */