summaryrefslogtreecommitdiffstats
path: root/sys/netipsec
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2009-01-05 20:29:01 +0000
committerbz <bz@FreeBSD.org>2009-01-05 20:29:01 +0000
commit086c4b5b79a4577363e19815ac979062ad79ce48 (patch)
treec8cf8c207fc8f3d5554bda654200fb06dea2b084 /sys/netipsec
parent46249a2f7459b043ea535462ad382781d3bbc556 (diff)
downloadFreeBSD-src-086c4b5b79a4577363e19815ac979062ad79ce48.zip
FreeBSD-src-086c4b5b79a4577363e19815ac979062ad79ce48.tar.gz
Switch the last protosw* structs to C99 initializers.
Reviewed by: ed, julian, Christoph Mallon <christoph.mallon@gmx.de> MFC after: 2 weeks
Diffstat (limited to 'sys/netipsec')
-rw-r--r--sys/netipsec/xform_ipip.c28
1 files changed, 16 insertions, 12 deletions
diff --git a/sys/netipsec/xform_ipip.c b/sys/netipsec/xform_ipip.c
index e7940e4..7b8b92b 100644
--- a/sys/netipsec/xform_ipip.c
+++ b/sys/netipsec/xform_ipip.c
@@ -660,20 +660,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,
- &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,
- &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
OpenPOWER on IntegriCloud