]>
Commit | Line | Data |
---|---|---|
53e1b683 | 1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
13b498f9 TJ |
2 | #pragma once |
3 | ||
4 | /*** | |
810adae9 | 5 | Copyright © 2016 BISDN GmbH. All rights reserved. |
13b498f9 TJ |
6 | ***/ |
7 | ||
8 | #include <stdint.h> | |
9 | ||
a2106925 LP |
10 | #include "conf-parser.h" |
11 | ||
ca5ad760 YW |
12 | #define BRIDGE_VLAN_BITMAP_MAX 4096 |
13 | #define BRIDGE_VLAN_BITMAP_LEN (BRIDGE_VLAN_BITMAP_MAX / 32) | |
14 | ||
13b498f9 TJ |
15 | typedef struct Link Link; |
16 | ||
17 | int br_vlan_configure(Link *link, uint16_t pvid, uint32_t *br_vid_bitmap, uint32_t *br_untagged_bitmap); | |
18 | ||
a2106925 LP |
19 | CONFIG_PARSER_PROTOTYPE(config_parse_brvlan_pvid); |
20 | CONFIG_PARSER_PROTOTYPE(config_parse_brvlan_vlan); | |
21 | CONFIG_PARSER_PROTOTYPE(config_parse_brvlan_untagged); |