Hello,

Joan Lledó, le sam. 06 déc. 2025 13:11:32 +0100, a ecrit:
> El 15/11/25 a les 21:19, Samuel Thibault ha escrit:
> > We don't want to blindly expose the linuxish value of
> > IP_PKTINFO (8), because normally the Hurd follows the BSD macro values,
> > and 8 is already taken by IP_RETOPTS. Apparently BSD has some
> > compatibility layer to support pktinfo, but a quick grep in the BSD
> > source didn't show something, we should probably contact BSD maintainers
> > to know which value is used there for IP_PKTINFO. We can then teach
> > pfinet the value and let it support it too.
> 
> I've been doing a small research, to avoid writing maintainers.

Thanks!

> 1. Dhcpcd uses IP_PKTINFO to get the interface index from and incoming UDP
> paket, it's not used for anything else.
> 
> 2. Different BSDs have different ways to approach this:
> 
> - NetBSD: IP_PKTINFO supported, set to 25.

Then please set it to 25:

>   - 
> https://github.com/NetBSD/src/blob/829f43c8342b070d5881af4288058a4593bf5cea/sys/netinet/in.h#L297

These values are really like glibc's in.h, so better stick with that.

Samuel

Reply via email to