1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
4 #include "conf-parser.h"
7 #define LINK_BRIDGE_PORT_PRIORITY_INVALID 128U
8 #define LINK_BRIDGE_PORT_PRIORITY_MAX 63U
10 typedef struct Bridge
{
19 uint16_t group_fwd_mask
;
20 uint16_t default_pvid
;
29 typedef enum MulticastRouter
{
30 MULTICAST_ROUTER_NONE
,
31 MULTICAST_ROUTER_TEMPORARY_QUERY
,
32 MULTICAST_ROUTER_PERMANENT
,
33 MULTICAST_ROUTER_TEMPORARY
,
34 _MULTICAST_ROUTER_MAX
,
35 _MULTICAST_ROUTER_INVALID
= -EINVAL
,
38 DEFINE_NETDEV_CAST(BRIDGE
, Bridge
);
39 extern const NetDevVTable bridge_vtable
;
41 const char* multicast_router_to_string(MulticastRouter i
) _const_
;
42 MulticastRouter
multicast_router_from_string(const char *s
) _pure_
;
44 CONFIG_PARSER_PROTOTYPE(config_parse_multicast_router
);
45 CONFIG_PARSER_PROTOTYPE(config_parse_bridge_igmp_version
);
46 CONFIG_PARSER_PROTOTYPE(config_parse_bridge_port_priority
);