[BUG] socket buffer size different then set

From: Kurt Roeckx (Q@ping.be)
Date: Fri Apr 21 2000 - 12:37:17 EST


Doing something as easy as:

        setsockopt(socket, SOL_SOCKET, SO_SNDBUF, &val, sizeof(val));
        getsockopt(socket, SOL_SOCKET, SO_SNDBUF, &val, &optlen);

Will give a val that's twice as big as what I tried to set (except for
val's > 65535).

I tried this both on a 2.2.14 and 2.3.99-pre5, with same results.

Is this a bug, or normal behaviour?

Kurt

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 23 2000 - 21:00:19 EST