Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78527
b: refs/heads/master
c: 1700806
h: refs/heads/master
i:
  78525: 0c7ab62
  78523: 8ba6530
  78519: 02a74ab
  78511: 1f9bccf
  78495: de5f445
  78463: 41cb137
v: v3
  • Loading branch information
Benjamin LaHaise authored and David S. Miller committed Jan 28, 2008
1 parent 4d160c6 commit 01a2c58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: d6a2ba07c31b0497fc82a8c175400ea8747da2ef
refs/heads/master: 170080645dac61816455afad807ffeb326ce79e8
7 changes: 5 additions & 2 deletions trunk/net/netfilter/xt_TCPMSS.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,11 @@ tcpmss_mangle_packet(struct sk_buff *skb,

oldmss = (opt[i+2] << 8) | opt[i+3];

if (info->mss == XT_TCPMSS_CLAMP_PMTU &&
oldmss <= newmss)
/* Never increase MSS, even when setting it, as
* doing so results in problems for hosts that rely
* on MSS being set correctly.
*/
if (oldmss <= newmss)
return 0;

opt[i+2] = (newmss & 0xff00) >> 8;
Expand Down

0 comments on commit 01a2c58

Please sign in to comment.