src/network/netdev/vlan.h
raw| 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 | #pragma once |
| 3 | |
| 4 | #include "shared-forward.h" |
| 5 | #include "netdev.h" |
| 6 | |
| 7 | typedef struct VLan { |
| 8 | NetDev meta; |
| 9 | |
| 10 | uint16_t id; |
| 11 | int protocol; |
| 12 | |
| 13 | int gvrp; |
| 14 | int mvrp; |
| 15 | int loose_binding; |
| 16 | int reorder_hdr; |
| 17 | |
| 18 | Set *egress_qos_maps; |
| 19 | Set *ingress_qos_maps; |
| 20 | } VLan; |
| 21 | |
| 22 | DEFINE_NETDEV_CAST(VLAN, VLan); |
| 23 | extern const NetDevVTable vlan_vtable; |
| 24 | |
| 25 | CONFIG_PARSER_PROTOTYPE(config_parse_vlan_qos_maps); |