Skip to contentSkip to conversation

Bug in socket(7) man page

DISCUSSION Tobias Klausmann 2 participants 2 messages Aug 7, 2017 – Nov 20, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

Regards,
Tobias
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#1 lore raw

[CC widended]

Tobias,

Quoted 17 lines · Tobias Klausmann

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.

Quoted 6 lines

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

Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/