From c81c183daed461729666dab5edbb82f681f7ca84 Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Sun, 15 May 2016 03:22:13 +0000 Subject: [PATCH] Use Node Information flag names instead of hard-coding their values. MFC after: 1 week --- sys/netinet6/icmp6.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c index dd77527cb2f2..69bb60fcfeaa 100644 --- a/sys/netinet6/icmp6.c +++ b/sys/netinet6/icmp6.c @@ -667,7 +667,9 @@ icmp6_input(struct mbuf **mp, int *offp, int proto) * XXX: this combination of flags is pointless, * but should we keep this for compatibility? */ - if ((V_icmp6_nodeinfo & 5) != 5) + if ((V_icmp6_nodeinfo & (ICMP6_NODEINFO_FQDNOK | + ICMP6_NODEINFO_TMPADDROK)) != + (ICMP6_NODEINFO_FQDNOK | ICMP6_NODEINFO_TMPADDROK)) break; if (code != 0)