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