From owner-svn-src-user@FreeBSD.ORG Wed Feb 13 09:20:56 2013 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D41AF367; Wed, 13 Feb 2013 09:20:56 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id C749C663; Wed, 13 Feb 2013 09:20:56 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r1D9KuSJ007430; Wed, 13 Feb 2013 09:20:56 GMT (envelope-from ae@svn.freebsd.org) Received: (from ae@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r1D9KurK007429; Wed, 13 Feb 2013 09:20:56 GMT (envelope-from ae@svn.freebsd.org) Message-Id: <201302130920.r1D9KurK007429@svn.freebsd.org> From: "Andrey V. Elsukov" Date: Wed, 13 Feb 2013 09:20:56 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r246756 - user/ae/inet6/sys/netinet6 X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Feb 2013 09:20:56 -0000 Author: ae Date: Wed Feb 13 09:20:55 2013 New Revision: 246756 URL: http://svnweb.freebsd.org/changeset/base/246756 Log: Remove in6_setscope and in6_clearscope from the NI code. Note, this code should be updated according to the RFC 4620. Modified: user/ae/inet6/sys/netinet6/icmp6.c Modified: user/ae/inet6/sys/netinet6/icmp6.c ============================================================================== --- user/ae/inet6/sys/netinet6/icmp6.c Wed Feb 13 09:10:33 2013 (r246755) +++ user/ae/inet6/sys/netinet6/icmp6.c Wed Feb 13 09:20:55 2013 (r246756) @@ -1254,6 +1254,7 @@ icmp6_mtudisc_update(struct ip6ctlparam /* * Process a Node Information Query packet, based on * draft-ietf-ipngwg-icmp-name-lookups-07. + * XXX: RFC 4620 * * Spec incompatibilities: * - IPv6 Subject address handling @@ -1392,8 +1393,6 @@ ni6_input(struct mbuf *m, int off) /* m_pulldown instead of copy? */ m_copydata(m, off + sizeof(struct icmp6_nodeinfo), subjlen, (caddr_t)&in6_subj); - if (in6_setscope(&in6_subj, m->m_pkthdr.rcvif, NULL)) - goto bad; subj = (char *)&in6_subj; if (IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst, &in6_subj)) @@ -1966,7 +1965,6 @@ ni6_store_addrs(struct icmp6_nodeinfo *n /* copy the address itself */ bcopy(&ifa6->ia_addr.sin6_addr, cp, sizeof(struct in6_addr)); - in6_clearscope((struct in6_addr *)cp); /* XXX */ cp += sizeof(struct in6_addr); resid -= (sizeof(struct in6_addr) + sizeof(u_int32_t));