1 /* SPDX-License-Identifier: LGPL-2.1-or-later */ 2 #pragma once 3 4 /*** 5 Copyright © 2016 BISDN GmbH. All rights reserved. 6 ***/ 7 8 #include <inttypes.h> 9 10 #include "sd-netlink.h" 11 12 #include "conf-parser.h" 13 14 #define BRIDGE_VLAN_BITMAP_MAX 4096 15 #define BRIDGE_VLAN_BITMAP_LEN (BRIDGE_VLAN_BITMAP_MAX / 32) 16 17 typedef struct Link Link; 18 typedef struct Network Network; 19 20 void network_adjust_bridge_vlan(Network *network); 21 22 int bridge_vlan_append_info( 23 const Link * link, 24 sd_netlink_message *req, 25 uint16_t pvid, 26 const uint32_t *br_vid_bitmap, 27 const uint32_t *br_untagged_bitmap); 28 29 CONFIG_PARSER_PROTOTYPE(config_parse_brvlan_pvid); 30 CONFIG_PARSER_PROTOTYPE(config_parse_brvlan_vlan); 31 CONFIG_PARSER_PROTOTYPE(config_parse_brvlan_untagged); 32