Setting the mss for socket

Luiz Otavio O Souza lists.br at gmail.com
Thu Apr 2 05:33:34 PDT 2009


Hello hackers,

Is there a way to set the mss for a socket ? Like you can do in linux with 
setsockopt(TCP_MAXSEG) ?

So i can set the maximum size of packets (or sort of) from a simple userland 
program.

I've read the code and i cannot find by myself (at least from a 30minute 
reading) a single point to change this. It looks like it is dynamic 
calculated with interface/path mtu. Someone has a simple approach to deal 
with this ? Any ideas ?

Thanks in advance,
Luiz 



More information about the freebsd-hackers mailing list