summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2016-05-15 03:22:13 +0000
committermarkj <markj@FreeBSD.org>2016-05-15 03:22:13 +0000
commita0640b82623c9559706fb4d24338bb39f6ed5d53 (patch)
treef3e555c568da58fc9acada88cede04d425ce7b64
parenteac165ebf395c4e995cc7aed2234e8e714759693 (diff)
downloadFreeBSD-src-a0640b82623c9559706fb4d24338bb39f6ed5d53.zip
FreeBSD-src-a0640b82623c9559706fb4d24338bb39f6ed5d53.tar.gz
Use Node Information flag names instead of hard-coding their values.
MFC after: 1 week
-rw-r--r--sys/netinet6/icmp6.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c
index dd77527..69bb60f 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)
OpenPOWER on IntegriCloud