Setting the mss for socket
Patrick Tracanelli
eksffa at freebsdbrasil.com.br
Thu Apr 2 07:47:04 PDT 2009
Luiz Otavio O Souza escreveu:
> 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
Good point. With something like that it could be possible to make --mss
switch from iperf work properly on FreeBSD.
--
Patrick Tracanelli
More information about the freebsd-hackers
mailing list