Skip to content

Commit

Permalink
lib/route: merge branch 'ronand-atl:extend-bridge-info-support'
Browse files Browse the repository at this point in the history
  • Loading branch information
thom311 committed Sep 19, 2024
2 parents 014c33a + 20b2d79 commit 1deafd4
Show file tree
Hide file tree
Showing 3 changed files with 483 additions and 1 deletion.
38 changes: 38 additions & 0 deletions include/netlink/route/link/bridge_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#ifndef NETLINK_LINK_BRIDGE_INFO_H_
#define NETLINK_LINK_BRIDGE_INFO_H_

#include <stdbool.h>
#include <netlink/netlink.h>
#include <netlink/route/link.h>

Expand Down Expand Up @@ -37,12 +38,49 @@ extern void rtnl_link_bridge_set_vlan_stats_enabled(struct rtnl_link *link,
uint8_t vlan_stats_enabled);
extern int rtnl_link_bridge_get_vlan_stats_enabled(struct rtnl_link *link,
uint8_t *vlan_stats_enabled);

extern void rtnl_link_bridge_set_nf_call_iptables(struct rtnl_link *link,
uint8_t call_enabled);
extern int rtnl_link_bridge_get_nf_call_iptables(struct rtnl_link *link,
uint8_t *call_enabled);

extern void rtnl_link_bridge_set_nf_call_ip6tables(struct rtnl_link *link,
uint8_t call_enabled);
extern int rtnl_link_bridge_get_nf_call_ip6tables(struct rtnl_link *link,
uint8_t *call_enabled);

extern void rtnl_link_bridge_set_nf_call_arptables(struct rtnl_link *link,
uint8_t call_enabled);
extern int rtnl_link_bridge_get_nf_call_arptables(struct rtnl_link *link,
uint8_t *call_enabled);

extern void rtnl_link_bridge_set_stp_state(struct rtnl_link *link,
uint32_t stp_state);
extern int rtnl_link_bridge_get_stp_state(struct rtnl_link *link,
uint32_t *stp_state);

extern void rtnl_link_bridge_set_mcast_router(struct rtnl_link *link,
uint8_t type);
extern int rtnl_link_bridge_get_mcast_router(struct rtnl_link *link,
uint8_t *type);

extern void rtnl_link_bridge_set_mcast_snooping(struct rtnl_link *link,
uint8_t value);
extern int rtnl_link_bridge_get_mcast_snooping(struct rtnl_link *link,
uint8_t *value);

extern void rtnl_link_bridge_set_no_linklocal_learn(struct rtnl_link *link,
bool value);
extern int rtnl_link_bridge_get_no_linklocal_learn(struct rtnl_link *link,
bool *value);

extern void rtnl_link_bridge_set_mcast_vlan_snooping(struct rtnl_link *link,
bool value);
extern int rtnl_link_bridge_get_mcast_vlan_snooping(struct rtnl_link *link,
bool *value);

extern void rtnl_link_bridge_set_mst_enable(struct rtnl_link *link, bool value);
extern int rtnl_link_bridge_get_mst_enable(struct rtnl_link *link, bool *value);

#ifdef __cplusplus
}
Expand Down
Loading

0 comments on commit 1deafd4

Please sign in to comment.