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

From: dzwdz

Date: Mon Nov 24 2025 - 20:50:58 EST


On 11/18/25 14:51, Alejandro Colomar wrote:
Do you suggest moving each socket option to a manual page under
man2const/? I think I agree with that. There's precedent, and it makes
the pages more readable.

In general - yes, definitely!

However, struct in_pktinfo can be passed to sendmsg even if IP_PKTINFO isn't set, so I don't think it would make sense to document it in e.g. IP_PKTINFO(2const) - it should probably get its own manpage in man2type.
That option, in turn, only makes sense in the context of that struct, so I think it should probably be documented in in_pktinfo(2type).

This would /kinda/ be like how e.g. PA_INT(3const) points to printf.h(3head), I guess?

I'd be happy to try writing that manpage if you think this approach makes sense :)

Thanks,
dzwdz

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature