summaryrefslogtreecommitdiff
path: root/include/net6.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2025-04-23 08:53:23 -0600
committerTom Rini <trini@konsulko.com>2025-04-23 08:53:23 -0600
commit5d4a6995bb4311203a024200a402508fdf5d7dfb (patch)
tree6410ca5d2528856f84e425630d9109ea2961070b /include/net6.h
parent4446bc331c65d3efb8a9321d6368c61edb56479b (diff)
parent49ae68536f234c423c78e89913c64ae9b87ed0e8 (diff)
Merge tag 'net-20250423' of https://source.denx.de/u-boot/custodians/u-boot-net
Pull request net-20250423 net: - Make initr_net() invocation command line agnostic net-legacy: - net: dhcpv6: remove excluded middle expression - net: dhcp6: Send DHCPv6 using multicast MAC net-lwip: - lwIP sandbox tests misc: - cmd: Remove CMD_NET protection
Diffstat (limited to 'include/net6.h')
-rw-r--r--include/net6.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/net6.h b/include/net6.h
index 1ed989e584a..2ceeaba0639 100644
--- a/include/net6.h
+++ b/include/net6.h
@@ -90,6 +90,16 @@ struct udp_hdr {
0x00, 0x00, 0x00, 0x00, \
0x00, 0x00, 0x00, 0x00, \
0x00, 0x00, 0x00, 0x02 } } }
+/*
+ * With IPv6, the broadcast MAC address is not used. Instead, it should use
+ * the multicast address (see RFC RFC2464 section 7)
+ */
+#define IPV6_ALL_NODE_ETH_ADDR(_ip6_addr) {0x33, \
+ 0x33, \
+ _ip6_addr.in6_u.u6_addr8[12], \
+ _ip6_addr.in6_u.u6_addr8[13], \
+ _ip6_addr.in6_u.u6_addr8[14], \
+ _ip6_addr.in6_u.u6_addr8[15]}
#define IPV6_LINK_LOCAL_PREFIX 0xfe80
#define IPV6_LINK_LOCAL_MASK 0xffb0 /* The first 10-bit of address mask. */