diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-03-02 08:58:25 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-03-02 08:58:25 +0000 |
commit | 90af7a467abd85b4959c7db57e355b8d4d0e214c (patch) | |
tree | 111d3f8dc3c66c845cc5554464db7885aa1e7fc7 /sys/netinet6/in6_proto.c | |
parent | 1acf00433c7be385637f18636bc0135962b70af0 (diff) |
Convert domain declarations to C99 initializers.
ok dhill@, florian@, bluhm@
Diffstat (limited to 'sys/netinet6/in6_proto.c')
-rw-r--r-- | sys/netinet6/in6_proto.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/sys/netinet6/in6_proto.c b/sys/netinet6/in6_proto.c index 73d1bdadcfe..dd3c74713f5 100644 --- a/sys/netinet6/in6_proto.c +++ b/sys/netinet6/in6_proto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in6_proto.c,v 1.89 2017/02/22 19:34:42 dhill Exp $ */ +/* $OpenBSD: in6_proto.c,v 1.90 2017/03/02 08:58:24 mpi Exp $ */ /* $KAME: in6_proto.c,v 1.66 2000/10/10 15:35:47 itojun Exp $ */ /* @@ -340,13 +340,17 @@ struct protosw inet6sw[] = { } }; -struct domain inet6domain = - { AF_INET6, "internet6", 0, 0, 0, - (struct protosw *)inet6sw, - (struct protosw *)&inet6sw[nitems(inet6sw)], - sizeof(struct sockaddr_in6), - offsetof(struct sockaddr_in6, sin6_addr), 128, - in6_domifattach, in6_domifdetach, }; +struct domain inet6domain = { + .dom_family = AF_INET6, + .dom_name = "internet6", + .dom_protosw = inet6sw, + .dom_protoswNPROTOSW = &inet6sw[nitems(inet6sw)], + .dom_rtkeylen = sizeof(struct sockaddr_in6), + .dom_rtoffset = offsetof(struct sockaddr_in6, sin6_addr), + .dom_maxplen = 128, + .dom_ifattach = in6_domifattach, + .dom_ifdetach = in6_domifdetach +}; /* * Internet configuration info |