Skip to content

man7/ip.7: Clarify PKTINFO's docs

Jakub Głogowski linux-api linux-man lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2man/man7/ip.7: Clarify PKTINFO's semantics depending on packet directionman/man7/ip.7+13 -31 reply
2/2man/man7/ip.7: Reword IP_PKTINFO's descriptionman/man7/ip.7+21 -281 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] man7/ip.7: Clarify PKTINFO's docs

I found the PKTINFO docs pretty confusing, so I tried clarifying them:
- being more specific about each field in the struct
(e.g. "local address of the packet" for a received packet could've been interpreted in myriad ways),
- making the differences between sendmsg(2)'s and recvmsg(2)'s handling of that struct more explicit,
- and some other slight rewording to make it (IMO) more readable - I cut out most of a paragraph that wasn't really saying anything, etc.

I'm not sure if this should even be documented in ip(7) together with the other sockopts, though? sendmsg(2)'s handling of in_pktinfo is completely unrelated to the IP_PKTINFO sockopt. Documenting it in its own manual page would also give us more room for subsection headings and other formatting, examples, etc - instead of trying to cram it into what's already an enormous manpage.

Same goes for some of the other more complex sockopts, I guess.

PS. sorry for not signing this email, but neomutt didn't want to cooperate :/ I'll try to figure it out for any followup patches.

Jakub Głogowski (2):
man/man7/ip.7: Clarify PKTINFO's semantics depending on packet
direction
man/man7/ip.7: Reword IP_PKTINFO's description

 man/man7/ip.7 | 57 +++++++++++++++++++++++++++------------------------
 1 file changed, 30 insertions(+), 27 deletions(-)
Signature · 1 line
2.47.3