Skip to content

ICMP6 RA: recognise PIO PD Preferred flag #1352

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion print-icmp6.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@ 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 */
#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;
Expand Down Expand Up @@ -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 }
};

Expand Down