summaryrefslogtreecommitdiff
path: root/regress/sys
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2018-12-03 18:39:43 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2018-12-03 18:39:43 +0000
commitd0d2272014c4c17f94de8fe927288bceb094fba7 (patch)
tree4487eeac64edb33426e70878215e779892c7d77d /regress/sys
parent70d691601de6fee02f8e02f47d895fa1fdc1259e (diff)
The field dom_rtkeylen has been removed from struct domain. Convert
to designated initializers and adapt the test. Fix white space.
Diffstat (limited to 'regress/sys')
-rw-r--r--regress/sys/net/rtable/util.c31
1 files changed, 23 insertions, 8 deletions
diff --git a/regress/sys/net/rtable/util.c b/regress/sys/net/rtable/util.c
index ea037b9409f..50756a1c2b5 100644
--- a/regress/sys/net/rtable/util.c
+++ b/regress/sys/net/rtable/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.7 2018/06/23 09:54:16 denis Exp $ */
+/* $OpenBSD: util.c,v 1.8 2018/12/03 18:39:42 bluhm Exp $ */
/*
* Copyright (c) 2015 Martin Pieuchot
@@ -69,15 +69,31 @@
struct sockaddr *rt_plen2mask(struct rtentry *, struct sockaddr_in6 *);
struct domain inetdomain = {
- AF_INET, "inet", NULL, NULL, NULL, NULL, NULL,
- sizeof(struct sockaddr_in), offsetof(struct sockaddr_in, sin_addr),
- 32,
+ .dom_family = AF_INET,
+ .dom_name = "inet",
+ .dom_init = NULL,
+ .dom_externalize = NULL,
+ .dom_dispose = NULL,
+ .dom_protosw = NULL,
+ .dom_protoswNPROTOSW = NULL,
+ .dom_rtoffset = offsetof(struct sockaddr_in, sin_addr),
+ .dom_maxplen = 32,
+ .dom_ifattach = NULL,
+ .dom_ifdetach = NULL,
};
struct domain inet6domain = {
- AF_INET6, "inet6", NULL, NULL, NULL, NULL, NULL,
- sizeof(struct sockaddr_in6), offsetof(struct sockaddr_in6, sin6_addr),
- 128,
+ .dom_family = AF_INET6,
+ .dom_name = "inet6",
+ .dom_init = NULL,
+ .dom_externalize = NULL,
+ .dom_dispose = NULL,
+ .dom_protosw = NULL,
+ .dom_protoswNPROTOSW = NULL,
+ .dom_rtoffset = offsetof(struct sockaddr_in6, sin6_addr),
+ .dom_maxplen = 128,
+ .dom_ifattach = NULL,
+ .dom_ifdetach = NULL,
};
struct domain *domains[] = { &inetdomain, &inet6domain, NULL };
@@ -500,4 +516,3 @@ rt_hash(struct rtentry *rt, struct sockaddr *dst, uint32_t *src)
return (c & 0xffff);
}
-