On Friday 2012-10-26 00:42, Eric Dumazet wrote:
On Thu, 2012-10-25 at 15:27 -0700, Vincent Li wrote:
quoted
this sounds crazy, we have a weird situation that an unknown tcp
implementation not putting tcp MSS option in the SYN/ACK which caused
us some issue. I am tasked to mimic the unknown tcp immplementation on
not sending MSS in tcp SYN/ACK, I am wondering if I can achieve that
by modifying linux kernel tcp code, there is socket option
TCP_MAXSEG, but that seems only affecting the size of MSS, not
removing the MSS option. do you have any pointer on how to do that in
kernel tcp code?
You'll have to patch the code.
Or else, you could add a new feature to net/netfilter/xt_TCPMSS.c
Or you could just use -j TCPOPTSTRIP.