]>
Commit | Line | Data |
---|---|---|
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 | ||
8 | static 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 | ||
14 | DEFINE_STRING_TABLE_LOOKUP(ipvlan_mode, IPVlanMode); | |
15 | ||
16 | static 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 | ||
22 | DEFINE_STRING_TABLE_LOOKUP(ipvlan_flags, IPVlanFlags); |