Re: SO_SNDBUF

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 02, 2001 at 01:32:57PM -0600, William L. Jones wrote:
> SIGH,
> 
> I expect getsockopt to return a value close setsockopt, except for some 
> rounding
> down that some kernels do.

That's an invalid assumption, because it assumes that there is no metadata
in kernel per packet, which is a wrong view of the world because there is.

Splitting it in userview to two counters would unfortunately break all of
userlands that expects to work with buffer sizes, so we cannot do that.

> 
> It returning the 2*setsockpt size instead which is why I though setsockeopt was
> broken.   May getscokept should be change to return 1/2 its current value.

No, that breaks applications that expect BSD behaviour.


-Andi
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux