svn commit: r186393 - head/sys/netinet6

Robert Watson rwatson at FreeBSD.org
Tue Dec 23 12:03:13 UTC 2008


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;
> 	/*
>


More information about the svn-src-all mailing list