Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 02 Apr 2009 11:20:16 -0300
From:      Patrick Tracanelli <eksffa@freebsdbrasil.com.br>
To:        Luiz Otavio O Souza <lists.br@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Setting the mss for socket
Message-ID:  <49D4C9A0.9000804@freebsdbrasil.com.br>
In-Reply-To: <3FD46C21A487490FB15B89E890790121@adnote989>
References:  <3FD46C21A487490FB15B89E890790121@adnote989>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49D4C9A0.9000804>