svn commit: r303459 - stable/10/sys/netinet6

Sean Bruno sbruno at FreeBSD.org
Thu Jul 28 20:11:35 UTC 2016


Author: sbruno
Date: Thu Jul 28 20:11:34 2016
New Revision: 303459
URL: https://svnweb.freebsd.org/changeset/base/303459

Log:
  MFC r299829
  Use Node Information flag names instead of hard-coding their values.

Modified:
  stable/10/sys/netinet6/icmp6.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/netinet6/icmp6.c
==============================================================================
--- stable/10/sys/netinet6/icmp6.c	Thu Jul 28 20:08:01 2016	(r303458)
+++ stable/10/sys/netinet6/icmp6.c	Thu Jul 28 20:11:34 2016	(r303459)
@@ -679,7 +679,9 @@ icmp6_input(struct mbuf **mp, int *offp,
 			 * 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)


More information about the svn-src-stable mailing list