Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Aug 2013 09:18:39 -0700
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        Gleb Smirnoff <glebius@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, Hiroki Sato <hrs@FreeBSD.org>, src-committers@freebsd.org
Subject:   Re: svn commit: r253841 - head/sys/netinet6
Message-ID:  <97527D06-7783-4441-BA50-702DEE0B9076@FreeBSD.org>
In-Reply-To: <20130801142324.GG20104@FreeBSD.org>
References:  <201307311624.r6VGOob5022079@svn.freebsd.org> <20130801142324.GG20104@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1 Aug 2013, at 07:23, Gleb Smirnoff <glebius@FreeBSD.org> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?97527D06-7783-4441-BA50-702DEE0B9076>