[NETFILTER]: Clear GSO bits for TCP reset packet

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>
This commit is contained in:
Herbert Xu
2007-02-14 09:39:09 +01:00
committed by Adrian Bunk
parent b455317374
commit 587d7ce100
+3
View 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 */