Re: [PATCH 2/4] lwip: clean up IPv6 address handling in init_ifs and inquire_device
Joan Lledó <[email protected]> Wed, 1 Jul 2026 18:59:20 +0200
| Newsgroups | gmane.os.hurd.bugs |
|---|---|
| Message-ID | <[email protected]> |
El 28/6/26 a les 15:23, Roy Marples ha escrit: > > Even autoconf addresses usually do have a non-128 prefix len, to be able > > to reach neighbours. > > I agree with Samuel. Please don't do this. > > Router Advertisements advertise a Prefix from which an address *may* be derived based on length (64) and flags (make an autoconf address). > > DHCPv6 addresses are always /128 because they are not directly tied to a Prefix. > > It is impossible to infer a Prefix Length from any address. I set it to /128 because that's how I understood this comment: https://cgit.git.savannah.gnu.org/cgit/lwip.git/tree/src/core/ipv6/nd6.c#n1678 However it's true that in fact lwip only supports 64 bit prefixes. If it receives and RA with a prefix other than 64, it drops it: https://cgit.git.savannah.gnu.org/cgit/lwip.git/tree/src/core/ipv6/nd6.c#n213 I think we can assume the prefix will always be 64. I reverted this change. I'm gonna send the updated patches now