Joan Lledó, le lun. 13 oct. 2025 21:30:46 +0200, a ecrit:
> On 10/13/25 06:58, Amos Jeffries wrote:
> > On 13/10/2025 05:00, Joan Lledó wrote:
> > > This series of patches implements a port of dhcpcd to the Hurd. It
> > > works but has
> > > some limitations that could be fixed in the future. This is the
> > > current state of
> > > the port:
> > > 
> > > - Support only for IPv4. IPv6 not supported yet.
> > > - It works only over lwip. First, because dhcpcd requires some
> > > definitions from
> > >    headers and pfinet doesn't provide them AFAIK, but lwip provide
> > > the headers
> > >    through the liblwip-dev package.
> > 
> > 
> > FMI, Which ones exactly? seems like an oversight in the Hurd pfinet.
> 
> From `#include <lwip/posix/inet.h>`
> 
> ```
> #ifdef LWIP_UNIX_HURD
> #define IP_PKTINFO  8
> 
> struct in_pktinfo {
>   unsigned int   ipi_ifindex;  /* Interface index */
>   struct in_addr ipi_addr;     /* Destination (from header) address */
> };
> #endif /* LWIP_UNIX_HURD */
> 
> ```

pfinet indeed doesn't really support pktinfo currently.

The sad thing here is that lwip's and linux' struct in_pktinfo are not
the same, linux adds the ipi_spec_dst field, so using lwip's structure
would not really allow us to add this field later on.

We'd rather introduce our own header that exposes the API/ABI that we
expect tcp/ip translators to expose for struct in_pktinfo (translating
that from/to their internal implementation if needed).

samuel

Reply via email to