svn commit: r189984 - in stable/7/sys: . contrib/pf dev/cxgb
netinet6 netipsec
Bjoern A. Zeeb
bz at FreeBSD.org
Wed Mar 18 13:18:24 PDT 2009
Author: bz
Date: Wed Mar 18 20:18:23 2009
New Revision: 189984
URL: http://svn.freebsd.org/changeset/base/189984
Log:
MFC r186791:
Switch protosw* structs to C99 initializers.
Modified:
stable/7/sys/ (props changed)
stable/7/sys/contrib/pf/ (props changed)
stable/7/sys/dev/cxgb/ (props changed)
stable/7/sys/netinet6/in6_gif.c
stable/7/sys/netipsec/xform_ipip.c
Modified: stable/7/sys/netinet6/in6_gif.c
==============================================================================
--- stable/7/sys/netinet6/in6_gif.c Wed Mar 18 20:03:33 2009 (r189983)
+++ stable/7/sys/netinet6/in6_gif.c Wed Mar 18 20:18:23 2009 (r189984)
@@ -74,12 +74,15 @@ static int gif_validate6(const struct ip
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
Modified: stable/7/sys/netipsec/xform_ipip.c
==============================================================================
--- stable/7/sys/netipsec/xform_ipip.c Wed Mar 18 20:03:33 2009 (r189983)
+++ stable/7/sys/netipsec/xform_ipip.c Wed Mar 18 20:18:23 2009 (r189984)
@@ -652,22 +652,24 @@ static struct xformsw ipe4_xformsw = {
};
extern struct domain inetdomain;
-static struct protosw ipe4_protosw =
-{ SOCK_RAW, &inetdomain, IPPROTO_IPV4, PR_ATOMIC|PR_ADDR|PR_LASTHDR,
- ip4_input,
- 0, 0, rip_ctloutput,
- 0,
- 0, 0, 0, 0,
- &rip_usrreqs
+static struct protosw ipe4_protosw = {
+ .pr_type = SOCK_RAW,
+ .pr_domain = &inetdomain,
+ .pr_protocol = IPPROTO_IPV4,
+ .pr_flags = PR_ATOMIC|PR_ADDR|PR_LASTHDR,
+ .pr_input = ip4_input,
+ .pr_ctloutput = rip_ctloutput,
+ .pr_usrreqs = &rip_usrreqs
};
#ifdef INET6
-static struct ip6protosw ipe6_protosw =
-{ SOCK_RAW, &inetdomain, IPPROTO_IPV6, PR_ATOMIC|PR_ADDR|PR_LASTHDR,
- ip4_input6,
- 0, 0, rip_ctloutput,
- 0,
- 0, 0, 0, 0,
- &rip_usrreqs
+static struct ip6protosw ipe6_protosw = {
+ .pr_type = SOCK_RAW,
+ .pr_domain = &inetdomain,
+ .pr_protocol = IPPROTO_IPV6,
+ .pr_flags = PR_ATOMIC|PR_ADDR|PR_LASTHDR,
+ .pr_input = ip4_input6,
+ .pr_ctloutput = rip_ctloutput,
+ .pr_usrreqs = &rip_usrreqs
};
#endif
More information about the svn-src-stable
mailing list