From: Jerry Fox <spblaguard-linux@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: Ability to change MSS using TCP_MAXSEG
Date: Fri, 3 Mar 2006 14:43:58 -0800 (PST) [thread overview]
Message-ID: <20060303224358.62126.qmail@web81007.mail.mud.yahoo.com> (raw)
Hello-
I'll post this time with mentioning "advertised" MSS
in the subject :-)
I have a question about the advertised MSS and the
TCP_MAXSEG setsock option. Note: I am using the
Stevens sock code (http://www.unpbook.com/src.html) to
do testing.
I set the TCP_MAXSEG via X to 256 (yes, I
intentionally want poor performance), and used gdb to
verify that setsockopt gets called before the
connect() call, as described in the tcp (7) manpage.
However, Ethereal shows the advmss is still 1460.
Looking in the kernel
(net/ipv4/tcp_output.c::tcp_connect_init), I can see
the mss_clamp gets the user_mss, but the advmss is
still calculated based on dst_metric. Host route MTU
settings and interface MTU settings work as expected,
but is there a way to advertise a different MSS per
session/socket?
For ref, I see the same behavior on:
IA64+Debian/HPCGL+2.4.20
X86+Fedora+2.6.15
PPC+MontaVista+2.6.14
Please cc: me personally on any replies.
Thanks!
Jerry Fox
next reply other threads:[~2006-03-03 22:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-03 22:43 Jerry Fox [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-03-03 22:31 Jerry Fox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060303224358.62126.qmail@web81007.mail.mud.yahoo.com \
--to=spblaguard-linux@yahoo.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®