PERFORCE change 118694 for review

Marko Zec zec at FreeBSD.org
Tue Apr 24 02:21:27 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=118694

Change 118694 by zec at 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


More information about the p4-projects mailing list