Tcp segment size in linux
I need grow up the packets in netfilter hooks by padding some information but it leads a fragmentation in packets with size near to 1500 (MTU).
In others Operating System like UNIX and WINDOWS, I can tell to TCP layer that not use the MTU to adjust packets size. For example, in SCO UNIX, the paramater is the tcp segment size, and it can be change using the ifconfig command. In Windows, I can change some register key and change the MTU reported to tcp layer in order to do that. In both cases TCP using less size to create packets and when this packets arrives to my hook i can increment it´s sizes without generate fragmentation.
My question is: Using netfilter or another system tool i can do the same or similar thing in Linux?
Thanks.
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Quoted 4 lines · rigoberto perez
In others Operating System like UNIX and WINDOWS, I can tell to TCP layer that not use the MTU to adjust packets size.
[...]
Quoted 4 lines
My question is: Using netfilter or another system tool i can do the same or similar thing in Linux?
You can use TCPMSS target in mangle table of netfilter. It doesn't cut the packets, it just changes advertised segment size of the TCP client's SYN packet. However every compliant TCP stack should react on it. This is usable on routers.
If you want to force the size already on end points, you can alter routing table using "ip route ... advmss ..." command. See ip(8).
-- Petr