]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/network/netdev/macvlan.h
license: LGPL-2.1+ -> LGPL-2.1-or-later
[thirdparty/systemd.git] / src / network / netdev / macvlan.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 typedef struct MacVlan MacVlan;
5
6 #include "macvlan-util.h"
7 #include "netdev.h"
8 #include "set.h"
9
10 struct MacVlan {
11 NetDev meta;
12
13 MacVlanMode mode;
14 Set *match_source_mac;
15 };
16
17 DEFINE_NETDEV_CAST(MACVLAN, MacVlan);
18 DEFINE_NETDEV_CAST(MACVTAP, MacVlan);
19 extern const NetDevVTable macvlan_vtable;
20 extern const NetDevVTable macvtap_vtable;
21
22 CONFIG_PARSER_PROTOTYPE(config_parse_macvlan_mode);