diff options
author | mpi <mpi@openbsd.org> | 2017-03-02 08:58:24 +0000 |
---|---|---|
committer | mpi <mpi@openbsd.org> | 2017-03-02 08:58:24 +0000 |
commit | 57e8cdb94997c826a0c69d6bf8b589b35993840d (patch) | |
tree | 04339429d98709df496ecfabfa6a90911a86c21c /sys/netmpls | |
parent | Add "locked lladdr" option to prevent VMs from spoofing MAC addresses. (diff) | |
download | wireguard-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.c | 12 |
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 }; |