2017-11-18 17:09:20 +01:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1+ */
|
2016-06-01 15:18:21 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
/***
|
2018-06-12 17:15:23 +02:00
|
|
|
Copyright © 2016 BISDN GmbH. All rights reserved.
|
2016-06-01 15:18:21 +02:00
|
|
|
***/
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2018-05-22 13:10:17 +02:00
|
|
|
#include "conf-parser.h"
|
|
|
|
|
2019-06-29 20:57:47 +02:00
|
|
|
#define BRIDGE_VLAN_BITMAP_MAX 4096
|
|
|
|
#define BRIDGE_VLAN_BITMAP_LEN (BRIDGE_VLAN_BITMAP_MAX / 32)
|
|
|
|
|
2016-06-01 15:18:21 +02:00
|
|
|
typedef struct Link Link;
|
|
|
|
|
|
|
|
int br_vlan_configure(Link *link, uint16_t pvid, uint32_t *br_vid_bitmap, uint32_t *br_untagged_bitmap);
|
|
|
|
|
2018-05-22 13:10:17 +02:00
|
|
|
CONFIG_PARSER_PROTOTYPE(config_parse_brvlan_pvid);
|
|
|
|
CONFIG_PARSER_PROTOTYPE(config_parse_brvlan_vlan);
|
|
|
|
CONFIG_PARSER_PROTOTYPE(config_parse_brvlan_untagged);
|