Thread (1 message) flat view 1 message, 1 author, 2017-11-20

Re: Bug in socket(7) man page

From: Michael Kerrisk (man-pages) <hidden>
Date: 2017-11-20 11:33:10
Also in: linux-man

[CC widended]

Tobias,

On 7 August 2017 at 13:53, Tobias Klausmann [off-list ref] wrote:
Hi!

This bug pertains to the manpage as visible on man7.org right
now.

The socket(7) man page has this paragraph:

       SO_RXQ_OVFL (since Linux 2.6.33)
              Indicates that an unsigned 32-bit value ancillary message (cmsg) should be attached to
              received skbs indicating the number of packets dropped by the socket between the  last
              received packet and this received packet.

The second half is wrong: the counter (internally,
SOCK_SKB_CB(skb)->dropcount is *not* reset after every packet.
That is, it is a proper counter, not a gauge, in monitoring
parlance.

A better version of that paragraph:

       SO_RXQ_OVFL (since Linux 2.6.33)
              Indicates that an unsigned 32-bit value ancillary message (cmsg) should be attached to
              received skbs indicating the number of packets dropped by the socket since its
              creation.
Thanks for the report. See also my reply to Petr in just a moment.
I've taken your suggested text change.

Cheers,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help