]>
Commit | Line | Data |
---|---|---|
db9ecf05 | 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
0ef6f454 LP |
2 | #pragma once |
3 | ||
aa9f1140 TG |
4 | typedef struct VLan VLan; |
5 | ||
737f1405 | 6 | #include "netdev.h" |
0d9b8913 | 7 | #include "set.h" |
3be1d7e0 | 8 | |
aa9f1140 TG |
9 | struct VLan { |
10 | NetDev meta; | |
11 | ||
267fabd2 | 12 | uint16_t id; |
2d453f35 | 13 | int protocol; |
c8b21184 SS |
14 | |
15 | int gvrp; | |
6c1ff21b SS |
16 | int mvrp; |
17 | int loose_binding; | |
18 | int reorder_hdr; | |
0d9b8913 SS |
19 | |
20 | Set *egress_qos_maps; | |
ea070862 | 21 | Set *ingress_qos_maps; |
aa9f1140 TG |
22 | }; |
23 | ||
634f0f98 | 24 | DEFINE_NETDEV_CAST(VLAN, VLan); |
3be1d7e0 | 25 | extern const NetDevVTable vlan_vtable; |
0d9b8913 SS |
26 | |
27 | CONFIG_PARSER_PROTOTYPE(config_parse_vlan_qos_maps); |