[PATCH dpdk v2] net: ipv6 link local compliance with rfc 4291

Thomas Monjalon thomas at monjalon.net
Wed Nov 19 01:07:30 CET 2025


18/11/2025 18:45, Robin Jarry:
> From: Christophe Fontaine <cfontain at redhat.com>
> > Modified EUI-64 format interface identifiers are formed by inverting
> > the "u" bit (universal/local bit in IEEE EUI-64 terminology) when
> > forming the interface identifier from IEEE EUI-64 identifiers.
[...]
> -	ip->a[8] = mac->addr_bytes[0];
> +	ip->a[8] = mac->addr_bytes[0] ^ RTE_ETHER_LOCAL_ADMIN_ADDR;

In all other places, we use the operator OR, so I'm not sure about this XOR.
Also, rte_is_universal_ether_addr() and rte_is_local_admin_ether_addr()
are comparing this bit with 0.
Is this bit always 0 by default in MAC addresses?




More information about the stable mailing list