Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Apr 2007 02:21:26 GMT
From:      Marko Zec <zec@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 118694 for review
Message-ID:  <200704240221.l3O2LQu8020462@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=118694

Change 118694 by zec@zec_tca51 on 2007/04/24 02:20:26

	Fix in6_gif_protosw bindings, which become broken
	after pr_destroy hook was added to protosw structs.

Affected files ...

.. //depot/projects/vimage/src/sys/netinet6/in6_gif.c#6 edit

Differences ...

==== //depot/projects/vimage/src/sys/netinet6/in6_gif.c#6 (text+ko) ====

@@ -74,12 +74,15 @@
 			 struct ifnet *);
 
 extern  struct domain inet6domain;
-struct ip6protosw in6_gif_protosw =
-{ SOCK_RAW,	&inet6domain,	0/* IPPROTO_IPV[46] */,	PR_ATOMIC|PR_ADDR,
-  in6_gif_input, rip6_output,	0,		rip6_ctloutput,
-  0,
-  0,		0,		0,		0,
-  &rip6_usrreqs
+struct ip6protosw in6_gif_protosw = {
+	.pr_type =		SOCK_RAW,
+	.pr_domain =		&inet6domain,
+	.pr_protocol = 		0/* IPPROTO_IPV[46] */,
+	.pr_flags = 		PR_ATOMIC|PR_ADDR,
+	.pr_input = 		in6_gif_input,
+	.pr_output = 		rip6_output,
+	.pr_ctloutput = 	rip6_ctloutput,
+	.pr_usrreqs = 		&rip6_usrreqs
 };
 
 int



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