From 547df5ed12ac5fcaba5843d4021977b38a26a1d6 Mon Sep 17 00:00:00 2001 From: Arseny Maslennikov Date: Fri, 8 Aug 2025 17:00:00 +0300 Subject: [PATCH 1/2] icmp6: fix comment for ND PIO Router Address Link: https://tools.ietf.org/html/rfc6275#section-7.2 Fixes: f3b1a2828457 ("add mobile-ip6 option handling.") --- print-icmp6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/print-icmp6.c b/print-icmp6.c index 66cfcb633..99e955b31 100644 --- a/print-icmp6.c +++ b/print-icmp6.c @@ -298,7 +298,7 @@ struct nd_opt_prefix_info { /* prefix information */ #define ND_OPT_PI_FLAG_ONLINK 0x80 #define ND_OPT_PI_FLAG_AUTO 0x40 -#define ND_OPT_PI_FLAG_ROUTER 0x20 /*2292bis*/ +#define ND_OPT_PI_FLAG_ROUTER 0x20 /* IPv6 Mobility, RFC 6275 */ struct nd_opt_rd_hdr { /* redirected header */ nd_uint8_t nd_opt_rh_type; From b93075e811e2f227dafbb4d7429f2c1ab86ba902 Mon Sep 17 00:00:00 2001 From: Arseny Maslennikov Date: Fri, 8 Aug 2025 17:00:00 +0300 Subject: [PATCH 2/2] icmp6: add RA PIO PD Preferred Flag This is a 1-bit flag in the Prefix Information RA option defined by RFC9762. If a compliant RA-accepting node receives a PIO with the P flag set, it is expected to make use of DHCPv6 Prefix Delegation to obtain a prefix and assign addresses from that prefix, not individual addresses from the PIO-specified prefix. Link: https://tools.ietf.org/html/rfc9762 Link: https://tools.ietf.org/html/rfc9663 Link: https://www.iana.org/assignments/icmpv6-parameters/icmpv6-parameters.xhtml#ipv6-neighbor-discovery-prefix-information-options --- print-icmp6.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/print-icmp6.c b/print-icmp6.c index 99e955b31..ba8995007 100644 --- a/print-icmp6.c +++ b/print-icmp6.c @@ -299,6 +299,7 @@ struct nd_opt_prefix_info { /* prefix information */ #define ND_OPT_PI_FLAG_ONLINK 0x80 #define ND_OPT_PI_FLAG_AUTO 0x40 #define ND_OPT_PI_FLAG_ROUTER 0x20 /* IPv6 Mobility, RFC 6275 */ +#define ND_OPT_PI_FLAG_DHCPPD 0x10 /* DHCPv6-PD Preferred, RFC 9762 */ struct nd_opt_rd_hdr { /* redirected header */ nd_uint8_t nd_opt_rh_type; @@ -713,6 +714,7 @@ static const struct tok icmp6_opt_pi_flag_values[] = { { ND_OPT_PI_FLAG_ONLINK, "onlink" }, { ND_OPT_PI_FLAG_AUTO, "auto" }, { ND_OPT_PI_FLAG_ROUTER, "router" }, + { ND_OPT_PI_FLAG_DHCPPD, "pd preferred" }, { 0, NULL } };