Use Node Information flag names instead of hard-coding their values.

MFC after:	1 week
This commit is contained in:
Mark Johnston 2016-05-15 03:22:13 +00:00
parent e8800f3c2f
commit c81c183dae
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=299829

View File

@ -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)