Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5914
b: refs/heads/master
c: 7e71af4
h: refs/heads/master
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Aug 21, 2005
1 parent 6c718bc commit a0650f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f93592ff4fa4a55aa7640d435fa93338e190294d
refs/heads/master: 7e71af49d46e4c25f17a2c8f53d62ffd14f01007
7 changes: 4 additions & 3 deletions trunk/net/ipv4/netfilter/ipt_TCPMSS.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ ipt_tcpmss_target(struct sk_buff **pskb,
if (!skb_ip_make_writable(pskb, (*pskb)->len))
return NF_DROP;

if ((*pskb)->ip_summed == CHECKSUM_HW &&
skb_checksum_help(*pskb, out == NULL))
return NF_DROP;

iph = (*pskb)->nh.iph;
tcplen = (*pskb)->len - iph->ihl*4;

Expand Down Expand Up @@ -186,9 +190,6 @@ ipt_tcpmss_target(struct sk_buff **pskb,
newmss);

retmodified:
/* We never hw checksum SYN packets. */
BUG_ON((*pskb)->ip_summed == CHECKSUM_HW);

(*pskb)->nfcache |= NFC_UNKNOWN | NFC_ALTERED;
return IPT_CONTINUE;
}
Expand Down

0 comments on commit a0650f3

Please sign in to comment.