Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jul 2016 20:11:34 +0000 (UTC)
From:      Sean Bruno <sbruno@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r303459 - stable/10/sys/netinet6
Message-ID:  <201607282011.u6SKBY05013546@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607282011.u6SKBY05013546>