diff options
author | sbruno <sbruno@FreeBSD.org> | 2016-07-28 20:11:34 +0000 |
---|---|---|
committer | sbruno <sbruno@FreeBSD.org> | 2016-07-28 20:11:34 +0000 |
commit | 9b2228166df3cc0f05602614043b4d87888c0569 (patch) | |
tree | cf4a8d7f24da0283c8a0d98386649ca076f2dcf3 | |
parent | 562868062bbafb1b50af65d79c593d301b5f3953 (diff) | |
download | FreeBSD-src-9b2228166df3cc0f05602614043b4d87888c0569.zip FreeBSD-src-9b2228166df3cc0f05602614043b4d87888c0569.tar.gz |
MFC r299829
Use Node Information flag names instead of hard-coding their values.
-rw-r--r-- | sys/netinet6/icmp6.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c index 85e29db..a5981e5 100644 --- a/sys/netinet6/icmp6.c +++ b/sys/netinet6/icmp6.c @@ -679,7 +679,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) |