Skip to content

Commit

Permalink
lib/route: add support for bridge msti
Browse files Browse the repository at this point in the history
  • Loading branch information
ronand-atl committed Oct 8, 2024
1 parent 8a73b24 commit c2d80bb
Show file tree
Hide file tree
Showing 4 changed files with 466 additions and 28 deletions.
7 changes: 7 additions & 0 deletions include/netlink/route/link/bridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,13 @@ extern int rtnl_link_bridge_pvid(struct rtnl_link *link);
extern int rtnl_link_bridge_has_vlan(struct rtnl_link *link);

extern struct rtnl_link_bridge_vlan *rtnl_link_bridge_get_port_vlan(struct rtnl_link *link);

extern int rtnl_link_bridge_set_mst_port_state(struct rtnl_link *link, uint16_t instance, uint8_t state);
extern int rtnl_link_bridge_get_mst_port_state(struct rtnl_link *link, uint16_t instance);
extern int rtnl_link_bridge_del_mst_port_state(struct rtnl_link *link, uint16_t instance);
extern int rtnl_link_bridge_clear_mst_port_state_info(struct rtnl_link *link);
extern int rtnl_link_bridge_foreach_mst_entry(struct rtnl_link *link, void (*cb)(uint16_t instance, uint8_t state, void *arg), void *arg);

#ifdef __cplusplus
}
#endif
Expand Down
3 changes: 2 additions & 1 deletion lib/route/link.c
Original file line number Diff line number Diff line change
Expand Up @@ -1397,7 +1397,8 @@ int rtnl_link_build_get_request(int ifindex, const char *name,
{
_nl_auto_nl_msg struct nl_msg *msg = NULL;
struct ifinfomsg ifi;
__u32 vf_mask = RTEXT_FILTER_VF;
__u32 vf_mask = RTEXT_FILTER_VF; // Shouldn't we also fill this in like
// link_request_update does?

if (ifindex <= 0 && !name) {
APPBUG("ifindex or name must be specified");
Expand Down
Loading

0 comments on commit c2d80bb

Please sign in to comment.