summaryrefslogtreecommitdiffstats
path: root/sys/netmpls
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2017-03-02 08:58:24 +0000
committermpi <mpi@openbsd.org>2017-03-02 08:58:24 +0000
commit57e8cdb94997c826a0c69d6bf8b589b35993840d (patch)
tree04339429d98709df496ecfabfa6a90911a86c21c /sys/netmpls
parentAdd "locked lladdr" option to prevent VMs from spoofing MAC addresses. (diff)
downloadwireguard-openbsd-57e8cdb94997c826a0c69d6bf8b589b35993840d.tar.xz
wireguard-openbsd-57e8cdb94997c826a0c69d6bf8b589b35993840d.zip
Convert domain declarations to C99 initializers.
ok dhill@, florian@, bluhm@
Diffstat (limited to 'sys/netmpls')
-rw-r--r--sys/netmpls/mpls_proto.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/netmpls/mpls_proto.c b/sys/netmpls/mpls_proto.c
index 078ad2b42fe..80f0ea8bdb1 100644
--- a/sys/netmpls/mpls_proto.c
+++ b/sys/netmpls/mpls_proto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpls_proto.c,v 1.15 2017/02/27 19:16:56 claudio Exp $ */
+/* $OpenBSD: mpls_proto.c,v 1.16 2017/03/02 08:58:24 mpi Exp $ */
/*
* Copyright (C) 1999, 2000 and 2001 AYAME Project, WIDE Project.
@@ -46,9 +46,9 @@
* MPLS address family: needed for the routing table
*/
struct domain mplsdomain = {
- AF_MPLS, "mpls", NULL, 0, 0,
- NULL,
- 0,
- sizeof(struct sockaddr_mpls),
- offsetof(struct sockaddr_mpls, smpls_label), 32
+ .dom_family = AF_MPLS,
+ .dom_name = "mpls",
+ .dom_rtkeylen = sizeof(struct sockaddr_mpls),
+ .dom_rtoffset = offsetof(struct sockaddr_mpls, smpls_label),
+ .dom_maxplen = 32
};