]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/shared/ipvlan-util.c
json: add helpers for dealing with id128 + strv
[thirdparty/systemd.git] / src / shared / ipvlan-util.c
CommitLineData
35072050
SS
1/* SPDX-License-Identifier: LGPL-2.1+ */
2
3#include <net/if.h>
4
5#include "ipvlan-util.h"
6#include "string-table.h"
7
8static const char* const ipvlan_mode_table[_NETDEV_IPVLAN_MODE_MAX] = {
9 [NETDEV_IPVLAN_MODE_L2] = "L2",
10 [NETDEV_IPVLAN_MODE_L3] = "L3",
11 [NETDEV_IPVLAN_MODE_L3S] = "L3S",
12};
13
14DEFINE_STRING_TABLE_LOOKUP(ipvlan_mode, IPVlanMode);
15
16static const char* const ipvlan_flags_table[_NETDEV_IPVLAN_FLAGS_MAX] = {
17 [NETDEV_IPVLAN_FLAGS_BRIGDE] = "bridge",
18 [NETDEV_IPVLAN_FLAGS_PRIVATE] = "private",
19 [NETDEV_IPVLAN_FLAGS_VEPA] = "vepa",
20};
21
22DEFINE_STRING_TABLE_LOOKUP(ipvlan_flags, IPVlanFlags);