svn commit: r246479 - user/ae/inet6/sys/netinet6

Andrey V. Elsukov ae at FreeBSD.org
Thu Feb 7 15:15:34 UTC 2013


Author: ae
Date: Thu Feb  7 15:15:34 2013
New Revision: 246479
URL: http://svnweb.freebsd.org/changeset/base/246479

Log:
  Remove in6_clearscope calls.

Modified:
  user/ae/inet6/sys/netinet6/ip6_input.c

Modified: user/ae/inet6/sys/netinet6/ip6_input.c
==============================================================================
--- user/ae/inet6/sys/netinet6/ip6_input.c	Thu Feb  7 15:13:35 2013	(r246478)
+++ user/ae/inet6/sys/netinet6/ip6_input.c	Thu Feb  7 15:15:34 2013	(r246479)
@@ -653,18 +653,10 @@ ip6_input(struct mbuf *m)
 passin:
 	/*
 	 * Disambiguate address scope zones (if there is ambiguity).
-	 * We first make sure that the original source or destination address
-	 * is not in our internal form for scoped addresses.  Such addresses
-	 * are not necessarily invalid spec-wise, but we cannot accept them due
-	 * to the usage conflict.
 	 * in6_setscope() then also checks and rejects the cases where src or
 	 * dst are the loopback address and the receiving interface
 	 * is not loopback.
 	 */
-	if (in6_clearscope(&ip6->ip6_src) || in6_clearscope(&ip6->ip6_dst)) {
-		V_ip6stat.ip6s_badscope++; /* XXX */
-		goto bad;
-	}
 	if (in6_setscope(&ip6->ip6_src, m->m_pkthdr.rcvif, NULL) ||
 	    in6_setscope(&ip6->ip6_dst, m->m_pkthdr.rcvif, NULL)) {
 		V_ip6stat.ip6s_badscope++;


More information about the svn-src-user mailing list