Commit b5da32d5 authored by David S. Miller's avatar David S. Miller Committed by James Morris

[NETFILTER]: In ipt_TCPMSS, SYN packets are never hw checksummed.

Signed-off-by: default avatarDavid S. Miller <davem@redhat.com>
parent b0f17170
......@@ -186,10 +186,9 @@ ipt_tcpmss_target(struct sk_buff **pskb,
newmss);
retmodified:
/* If we had a hardware checksum before, it's now invalid */
if ((*pskb)->ip_summed == CHECKSUM_HW)
if (skb_checksum_help(pskb, 0))
return NF_DROP;
/* We never hw checksum SYN packets. */
BUG_ON((*pskb)->ip_summed == CHECKSUM_HW);
(*pskb)->nfcache |= NFC_UNKNOWN | NFC_ALTERED;
return IPT_CONTINUE;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment