SO_RECVBUF in 2.1.x

Patrick Anderson (
Mon, 19 May 1997 20:38:16 -0400 (EDT)

Setting SO_RECVBUF to 0x10000 fails with an invalid argument message
under kernels of the 2.1 series. (specifically, 2.1.33 and 2.1.39)

It succeeds in kernels up to 2.0.29.

Was this a deliberate change, or is it a bug?

The specific call is:

setsockopt(s, SOL_SOCKET, SO_RECVBUF, (char *)&n, sizeof(n));

where n is an integer, containg the value 0x10000.