| 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 "networkd-forward.h" |
| 9 |
#include "vlan-util.h" |
| 10 |
|
| 11 |
#define BRIDGE_VLAN_BITMAP_MAX 4096 |
| 12 |
#define BRIDGE_VLAN_BITMAP_LEN (BRIDGE_VLAN_BITMAP_MAX / 32) |
| 13 |
|
| 14 |
#define BRIDGE_VLAN_KEEP_PVID UINT16_MAX |
| 15 |
#define BRIDGE_VLAN_REMOVE_PVID (UINT16_MAX - 1) |
| 16 |
assert_cc(BRIDGE_VLAN_REMOVE_PVID > VLANID_MAX); |
| 17 |
|
| 18 |
void network_adjust_bridge_vlan(Network *network); |
| 19 |
|
| 20 |
int bridge_vlan_set_message(Link *link, sd_netlink_message *m, bool is_set); |
| 21 |
|
| 22 |
int link_update_bridge_vlan(Link *link, sd_netlink_message *m); |
| 23 |
|
| 24 |
CONFIG_PARSER_PROTOTYPE(config_parse_bridge_vlan_id); |
| 25 |
CONFIG_PARSER_PROTOTYPE(config_parse_bridge_vlan_id_range); |