From: t_jeang Date: Tue, 6 Jan 2009 12:05:21 +0000 (+0000) Subject: commit bbf4a6bc8c4d59a0a9033fc2cb96ec03430c96e4 X-Git-Tag: git-ab6a5bb6b28a970104a34f0f6959b73cf61bdc72-partial X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=232eee3f6e984315dbc89a5dc1d34d03495fba0a;p=xenclient%2Fkernel.git commit bbf4a6bc8c4d59a0a9033fc2cb96ec03430c96e4 Author: Herbert Xu Date: Tue Feb 13 12:32:58 2007 -0800 [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 Signed-off-by: David S. Miller --- diff --git a/net/ipv4/netfilter/ipt_REJECT.c b/net/ipv4/netfilter/ipt_REJECT.c index 269bc206..e7cdf501 100644 --- a/net/ipv4/netfilter/ipt_REJECT.c +++ b/net/ipv4/netfilter/ipt_REJECT.c @@ -148,6 +148,10 @@ static void send_reset(struct sk_buff *oldskb, int hook) nskb->nfmark = 0; skb_init_secmark(nskb); + skb_shinfo(nskb)->gso_size = 0; + skb_shinfo(nskb)->gso_segs = 0; + skb_shinfo(nskb)->gso_type = 0; + tcph = (struct tcphdr *)((u_int32_t*)nskb->nh.iph + nskb->nh.iph->ihl); /* Swap source and dest */