From owner-svn-src-all@FreeBSD.ORG Thu Aug 1 16:18:41 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 1E419709; Thu, 1 Aug 2013 16:18:41 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from felyko.com (felyko.com [174.136.100.2]) by mx1.freebsd.org (Postfix) with ESMTP id 074E72D4E; Thu, 1 Aug 2013 16:18:41 +0000 (UTC) Received: from [IPv6:2601:9:4d00:119:a5d2:4d9:866a:808] (unknown [IPv6:2601:9:4d00:119:a5d2:4d9:866a:808]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by felyko.com (Postfix) with ESMTPSA id 1FF0C3982B; Thu, 1 Aug 2013 09:18:40 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: svn commit: r253841 - head/sys/netinet6 From: Rui Paulo In-Reply-To: <20130801142324.GG20104@FreeBSD.org> Date: Thu, 1 Aug 2013 09:18:39 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <97527D06-7783-4441-BA50-702DEE0B9076@FreeBSD.org> References: <201307311624.r6VGOob5022079@svn.freebsd.org> <20130801142324.GG20104@FreeBSD.org> To: Gleb Smirnoff X-Mailer: Apple Mail (2.1508) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, Hiroki Sato , src-committers@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Aug 2013 16:18:41 -0000 On 1 Aug 2013, at 07:23, Gleb Smirnoff wrote: > On Wed, Jul 31, 2013 at 04:24:50PM +0000, Hiroki Sato wrote: > H> Author: hrs > H> Date: Wed Jul 31 16:24:49 2013 > H> New Revision: 253841 > H> URL: http://svnweb.freebsd.org/changeset/base/253841 > H>=20 > H> Log: > H> Allocate in6_ifextra (ifp->if_afdata[AF_INET6]) only for = IPv6-capable > H> interfaces. This eliminates unnecessary IPv6 processing for = non-IPv6 > H> interfaces. > H> =20 > H> MFC after: 3 days > H>=20 > H> Modified: > H> head/sys/netinet6/in6.c > H> head/sys/netinet6/in6_ifattach.c > H> head/sys/netinet6/nd6.c > H>=20 > H> Modified: head/sys/netinet6/in6.c > H> = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > H> --- head/sys/netinet6/in6.c Wed Jul 31 15:55:01 2013 = (r253840) > H> +++ head/sys/netinet6/in6.c Wed Jul 31 16:24:49 2013 = (r253841) > H> @@ -2746,6 +2746,13 @@ in6_domifattach(struct ifnet *ifp) > H> { > H> struct in6_ifextra *ext; > H> =20 > H> + /* There are not IPv6-capable interfaces. */ > H> + switch (ifp->if_type) { > H> + case IFT_PFLOG: > H> + case IFT_PFSYNC: > H> + case IFT_USB: > H> + return (NULL); > H> + } >=20 > All three should just disappear as interfaces :) What? Why? -- Rui Paulo