1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3 
4 #include <inttypes.h>
5 
6 #include "conf-parser.h"
7 #include "in-addr-util.h"
8 #include "networkd-util.h"
9 
10 typedef struct Link Link;
11 typedef struct Network Network;
12 
13 typedef struct BridgeMDB {
14         Network *network;
15         ConfigSection *section;
16 
17         int family;
18         union in_addr_union group_addr;
19         uint16_t vlan_id;
20 } BridgeMDB;
21 
22 BridgeMDB *bridge_mdb_free(BridgeMDB *mdb);
23 
24 void network_drop_invalid_bridge_mdb_entries(Network *network);
25 
26 int link_request_static_bridge_mdb(Link *link);
27 
28 CONFIG_PARSER_PROTOTYPE(config_parse_mdb_group_address);
29 CONFIG_PARSER_PROTOTYPE(config_parse_mdb_vlan_id);
30