]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/network/netdev/ipvlan.h
license: LGPL-2.1+ -> LGPL-2.1-or-later
[thirdparty/systemd.git] / src / network / netdev / ipvlan.h
CommitLineData
db9ecf05 1/* SPDX-License-Identifier: LGPL-2.1-or-later */
0ef6f454
LP
2#pragma once
3
9aa5d8ba 4#include <netinet/in.h>
d384826f
SS
5#include <linux/if_link.h>
6
35072050 7#include "ipvlan-util.h"
737f1405 8#include "netdev.h"
c4a5ddc9 9
634f0f98 10typedef struct IPVlan {
c4a5ddc9
TG
11 NetDev meta;
12
13 IPVlanMode mode;
d384826f 14 IPVlanFlags flags;
634f0f98 15} IPVlan;
c4a5ddc9 16
634f0f98 17DEFINE_NETDEV_CAST(IPVLAN, IPVlan);
69c317a0 18DEFINE_NETDEV_CAST(IPVTAP, IPVlan);
c4a5ddc9 19extern const NetDevVTable ipvlan_vtable;
69c317a0 20extern const NetDevVTable ipvtap_vtable;
c4a5ddc9 21
538f15cf
YW
22CONFIG_PARSER_PROTOTYPE(config_parse_ipvlan_mode);
23CONFIG_PARSER_PROTOTYPE(config_parse_ipvlan_flags);
f410d463
YW
24
25IPVlanMode link_get_ipvlan_mode(Link *link);