The Linux operating system stores more in those buffers than other
operating systems do. So if we just passed along the size unmodified, people
would wind up with, effectively, smaller buffers than they expected.
> I do not understand why setting SO_SNDBUF with
> res = BUFSIZE;
> err = setsockopt(s, SOL_SOCKET, SO_SNDBUF, &res, len);
> actually sets the buffer size to 2*BUFSIZE. What is the reason for that?
> The corresponding code fragment is in sock.c, int sock_setsockopt(...
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to email@example.com
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Mon May 15 2000 - 21:00:16 EST