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

Stephen Hemminger stephen at networkplumber.org
Fri Nov 14 17:08:04 CET 2025


On Fri, 14 Nov 2025 11:57:53 +0100
Robin Jarry <rjarry at redhat.com> wrote:

> @@ -406,7 +406,7 @@ rte_ipv6_llocal_from_ethernet(struct rte_ipv6_addr *ip, const struct rte_ether_a
>  	ip->a[0] = 0xfe;
>  	ip->a[1] = 0x80;
>  	memset(&ip->a[2], 0, 6);
> -	ip->a[8] = mac->addr_bytes[0];
> +	ip->a[8] = mac->addr_bytes[0] ^ 0x02;

Could use RTE_ETHER_LOCAL_ADMIN_ADDR instead of magic constant 2,
but seems a little wordy to do that.


More information about the dev mailing list