From: linux-kernel@ton.iguana.be (Ton Hospel)
To: linux-kernel@vger.kernel.org
Subject: Re: setsockopt(SOL_SOCKET, SO_SNDBUF) broken on 2.4.18?
Date: Tue, 26 Feb 2002 00:11:30 +0000 (UTC) [thread overview]
Message-ID: <a5ejri$jr$1@post.home.lunix> (raw)
In-Reply-To: <E16_Tly-0006Va-00@the-village.bc.nu>
In article <E16_Tly-0006Va-00@the-village.bc.nu>,
Alan Cox <alan@lxorguk.ukuu.org.uk> writes:
>> to verify what the kernel has set, I read TWICE as much the amount used
>> for the set. That is, if I set 8192, I read 16384. Therefore, to set
>> the correct size, I need to half the parameter first.
>> Is this a known bug? Is it setsockopt or getsockopt which returns the
>> wrong size?
>
> Neither. You asked for 8K the kernel allows a bit more for BSD compatibility
> and other things. You query and it gives back the size it chose
it's still insane it doesn't use the same fudge factor in both directions.
next parent reply other threads:[~2002-02-26 0:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E16_Tly-0006Va-00@the-village.bc.nu>
2002-02-26 0:11 ` Ton Hospel [this message]
2002-02-25 21:08 setsockopt(SOL_SOCKET, SO_SNDBUF) broken on 2.4.18? Raphael Manfredi
2002-02-25 21:34 ` Richard B. Johnson
2002-02-25 22:19 ` Raphael Manfredi
2002-02-25 23:21 ` Alan Cox
2002-02-25 22:39 ` Alan Cox
2002-02-26 7:46 ` Raphael Manfredi
2002-02-26 9:39 ` Alan Cox
2002-02-26 12:54 ` Raphael Manfredi
2002-02-27 16:17 ` Horst von Brand
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='a5ejri$jr$1@post.home.lunix' \
--to=linux-kernel@ton.iguana.be \
--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