]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/macvlan-util.c
Merge pull request #16145 from poettering/qrcode-dlopen
[thirdparty/systemd.git] / src / shared / macvlan-util.c
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2
3 #include "conf-parser.h"
4 #include "macvlan-util.h"
5 #include "string-table.h"
6
7 static const char* const macvlan_mode_table[_NETDEV_MACVLAN_MODE_MAX] = {
8 [NETDEV_MACVLAN_MODE_PRIVATE] = "private",
9 [NETDEV_MACVLAN_MODE_VEPA] = "vepa",
10 [NETDEV_MACVLAN_MODE_BRIDGE] = "bridge",
11 [NETDEV_MACVLAN_MODE_PASSTHRU] = "passthru",
12 [NETDEV_MACVLAN_MODE_SOURCE] = "source",
13 };
14
15 DEFINE_STRING_TABLE_LOOKUP(macvlan_mode, MacVlanMode);