Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 377003
b: refs/heads/master
c: 409b545
h: refs/heads/master
i:
  377001: 487b238
  376999: 586477d
v: v3
  • Loading branch information
Phil Oester authored and Pablo Neira Ayuso committed Jun 5, 2013
1 parent d0b2d49 commit a0478dc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 37bc4f8dfa72fb43b84381abca39cfdbbc8ff2df
refs/heads/master: 409b545ac10d9548929557a75ad86540f59a2c83
6 changes: 6 additions & 0 deletions trunk/net/netfilter/xt_TCPMSS.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ tcpmss_mangle_packet(struct sk_buff *skb,

skb_put(skb, TCPOLEN_MSS);

/* RFC 879 states that the default MSS is 536 without specific
* knowledge that the destination host is prepared to accept larger.
* Since no MSS was provided, we MUST NOT set a value > 536.
*/
newmss = min(newmss, (u16)536);

opt = (u_int8_t *)tcph + sizeof(struct tcphdr);
memmove(opt + TCPOLEN_MSS, opt, tcplen - sizeof(struct tcphdr));

Expand Down

0 comments on commit a0478dc

Please sign in to comment.