| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
#pragma once |
| 3 |
|
| 4 |
|
| 5 |
#include "ipvlan-util.h" |
| 6 |
#include "netdev.h" |
| 7 |
|
| 8 |
typedef struct IPVlan { |
| 9 |
NetDev meta; |
| 10 |
|
| 11 |
IPVlanMode mode; |
| 12 |
IPVlanFlags flags; |
| 13 |
} IPVlan; |
| 14 |
|
| 15 |
DEFINE_NETDEV_CAST(IPVLAN, IPVlan); |
| 16 |
DEFINE_NETDEV_CAST(IPVTAP, IPVlan); |
| 17 |
extern const NetDevVTable ipvlan_vtable; |
| 18 |
extern const NetDevVTable ipvtap_vtable; |
| 19 |
|
| 20 |
CONFIG_PARSER_PROTOTYPE(config_parse_ipvlan_mode); |
| 21 |
CONFIG_PARSER_PROTOTYPE(config_parse_ipvlan_flags); |
| 22 |
|
| 23 |
IPVlanMode link_get_ipvlan_mode(Link *link); |