Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Dec 2008 12:03:13 +0000 (GMT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        "Bjoern A. Zeeb" <bz@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r186393 - head/sys/netinet6
Message-ID:  <alpine.BSF.1.10.0812231201150.90302@fledge.watson.org>
In-Reply-To: <200812221254.mBMCsr67061758@svn.freebsd.org>
References:  <200812221254.mBMCsr67061758@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 22 Dec 2008, Bjoern A. Zeeb wrote:

> Author: bz
> Date: Mon Dec 22 12:54:52 2008
> New Revision: 186393
> URL: http://svn.freebsd.org/changeset/base/186393
>
> Log:
>  Correct variable name in comment.

In IPv4 we've eliminated use of ipprotosw, although we still have ipprotosw.h, 
which should go away as it's unused; I'd like to see ip6protosw go away as 
well.  The domain registration code assumes that when an array of protocols 
are registered, the size of the array entry is sizeof(struct protosw), which 
happens currently to be true for ip6protosw.  At least, I think. :-)

Robert N M Watson
Computer Laboratory
University of Cambridge

>
>  MFC after:	4 weeks
>
> Modified:
>  head/sys/netinet6/ip6_input.c
>
> Modified: head/sys/netinet6/ip6_input.c
> ==============================================================================
> --- head/sys/netinet6/ip6_input.c	Mon Dec 22 07:11:15 2008	(r186392)
> +++ head/sys/netinet6/ip6_input.c	Mon Dec 22 12:54:52 2008	(r186393)
> @@ -248,7 +248,7 @@ ip6_init(void)
> 	if (pr == 0)
> 		panic("ip6_init");
>
> -	/* Initialize the entire ip_protox[] array to IPPROTO_RAW. */
> +	/* Initialize the entire ip6_protox[] array to IPPROTO_RAW. */
> 	for (i = 0; i < IPPROTO_MAX; i++)
> 		ip6_protox[i] = pr - inet6sw;
> 	/*
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.1.10.0812231201150.90302>