Debian Codegraph @

src/network/netdev/macvlan.h

raw
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #include "macvlan-util.h"
5 #include "netdev.h"
6
7 typedef struct MacVlan {
8 NetDev meta;
9
10 MacVlanMode mode;
11 Set *match_source_mac;
12
13 uint32_t bc_queue_length;
14 int32_t bc_queue_threshold;
15 } MacVlan;
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);
23 CONFIG_PARSER_PROTOTYPE(config_parse_macvlan_broadcast_queue_size);
24 CONFIG_PARSER_PROTOTYPE(config_parse_macvlan_broadcast_queue_threshold);