Date: Thu, 7 Feb 2013 15:15:34 +0000 (UTC) From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r246479 - user/ae/inet6/sys/netinet6 Message-ID: <201302071515.r17FFYW3098095@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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++;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302071515.r17FFYW3098095>