libnl: /data/src/libnl/include/netlink/route/link/bridge_info.h Source File

libnl 3.12.0

bridge_info.h
1/* SPDX-License-Identifier: LGPL-2.1-only */
2/*
3 * Copyright (c) 2022 MaxLinear, Inc.
4 */
5
6#ifndef NETLINK_LINK_BRIDGE_INFO_H_
7#define NETLINK_LINK_BRIDGE_INFO_H_
8
9#include <netlink/netlink.h>
10#include <netlink/route/link.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16extern void rtnl_link_bridge_set_ageing_time(struct rtnl_link *link,
17 uint32_t ageing_time);
18extern int rtnl_link_bridge_get_ageing_time(struct rtnl_link *link,
19 uint32_t *ageing_time);
20
21extern void rtnl_link_bridge_set_vlan_filtering(struct rtnl_link *link,
22 uint8_t vlan_filtering);
23extern int rtnl_link_bridge_get_vlan_filtering(struct rtnl_link *link,
24 uint8_t *vlan_filtering);
25
26extern void rtnl_link_bridge_set_vlan_protocol(struct rtnl_link *link,
27 uint16_t vlan_protocol);
28extern int rtnl_link_bridge_get_vlan_protocol(struct rtnl_link *link,
29 uint16_t *vlan_protocol);
30
31extern void rtnl_link_bridge_set_vlan_default_pvid(struct rtnl_link *link,
32 uint16_t default_pvid);
33extern int rtnl_link_bridge_get_vlan_default_pvid(struct rtnl_link *link,
34 uint16_t *default_pvid);
35
36extern void rtnl_link_bridge_set_vlan_stats_enabled(struct rtnl_link *link,
37 uint8_t vlan_stats_enabled);
38extern int rtnl_link_bridge_get_vlan_stats_enabled(struct rtnl_link *link,
39 uint8_t *vlan_stats_enabled);
40
41extern void rtnl_link_bridge_set_nf_call_iptables(struct rtnl_link *link,
42 uint8_t call_enabled);
43extern int rtnl_link_bridge_get_nf_call_iptables(struct rtnl_link *link,
44 uint8_t *call_enabled);
45
46extern void rtnl_link_bridge_set_nf_call_ip6tables(struct rtnl_link *link,
47 uint8_t call_enabled);
48extern int rtnl_link_bridge_get_nf_call_ip6tables(struct rtnl_link *link,
49 uint8_t *call_enabled);
50
51extern void rtnl_link_bridge_set_nf_call_arptables(struct rtnl_link *link,
52 uint8_t call_enabled);
53extern int rtnl_link_bridge_get_nf_call_arptables(struct rtnl_link *link,
54 uint8_t *call_enabled);
55
56extern void rtnl_link_bridge_set_stp_state(struct rtnl_link *link,
57 uint32_t stp_state);
58extern int rtnl_link_bridge_get_stp_state(struct rtnl_link *link,
59 uint32_t *stp_state);
60
61extern void rtnl_link_bridge_set_mcast_router(struct rtnl_link *link,
62 uint8_t type);
63extern int rtnl_link_bridge_get_mcast_router(struct rtnl_link *link,
64 uint8_t *type);
65
66extern void rtnl_link_bridge_set_mcast_snooping(struct rtnl_link *link,
67 uint8_t value);
68extern int rtnl_link_bridge_get_mcast_snooping(struct rtnl_link *link,
69 uint8_t *value);
70
71extern int rtnl_link_bridge_set_boolopt(struct rtnl_link *link, int opt,
72 int value);
73
74extern int rtnl_link_bridge_get_boolopt(struct rtnl_link *link, int opt);
75
76#ifdef __cplusplus
77}
78#endif
79
80#endif
rtnl_link_bridge_get_nf_call_arptables
int rtnl_link_bridge_get_nf_call_arptables(struct rtnl_link *link, uint8_t *call_enabled)
Get call enabled flag for passing ARP traffic to arptables.
Definition bridge_info.c:709
rtnl_link_bridge_set_stp_state
void rtnl_link_bridge_set_stp_state(struct rtnl_link *link, uint32_t stp_state)
Set STP state.
Definition bridge_info.c:736
rtnl_link_bridge_get_vlan_default_pvid
int rtnl_link_bridge_get_vlan_default_pvid(struct rtnl_link *link, uint16_t *default_pvid)
Get VLAN default pvid.
Definition bridge_info.c:509
rtnl_link_bridge_get_vlan_protocol
int rtnl_link_bridge_get_vlan_protocol(struct rtnl_link *link, uint16_t *vlan_protocol)
Get VLAN protocol.
Definition bridge_info.c:459
rtnl_link_bridge_set_vlan_stats_enabled
void rtnl_link_bridge_set_vlan_stats_enabled(struct rtnl_link *link, uint8_t vlan_stats_enabled)
Set VLAN stats enabled flag.
Definition bridge_info.c:536
rtnl_link_bridge_set_vlan_filtering
void rtnl_link_bridge_set_vlan_filtering(struct rtnl_link *link, uint8_t vlan_filtering)
Set VLAN filtering flag.
Definition bridge_info.c:386
rtnl_link_bridge_set_mcast_snooping
void rtnl_link_bridge_set_mcast_snooping(struct rtnl_link *link, uint8_t value)
Set multicast snooping.
Definition bridge_info.c:830
rtnl_link_bridge_get_stp_state
int rtnl_link_bridge_get_stp_state(struct rtnl_link *link, uint32_t *stp_state)
Get STP state.
Definition bridge_info.c:758
rtnl_link_bridge_get_ageing_time
int rtnl_link_bridge_get_ageing_time(struct rtnl_link *link, uint32_t *ageing_time)
Get ageing time for dynamic forwarding entries.
Definition bridge_info.c:359
rtnl_link_bridge_get_vlan_filtering
int rtnl_link_bridge_get_vlan_filtering(struct rtnl_link *link, uint8_t *vlan_filtering)
Get VLAN filtering flag.
Definition bridge_info.c:409
rtnl_link_bridge_set_mcast_router
void rtnl_link_bridge_set_mcast_router(struct rtnl_link *link, uint8_t type)
Set multicast router type.
Definition bridge_info.c:783
rtnl_link_bridge_set_nf_call_iptables
void rtnl_link_bridge_set_nf_call_iptables(struct rtnl_link *link, uint8_t call_enabled)
Set call enabled flag for passing IPv4 traffic to iptables.
Definition bridge_info.c:586
rtnl_link_bridge_get_mcast_snooping
int rtnl_link_bridge_get_mcast_snooping(struct rtnl_link *link, uint8_t *value)
Get multicast snooping value.
Definition bridge_info.c:852
rtnl_link_bridge_set_ageing_time
void rtnl_link_bridge_set_ageing_time(struct rtnl_link *link, uint32_t ageing_time)
Set ageing time for dynamic forwarding entries.
Definition bridge_info.c:337
rtnl_link_bridge_get_boolopt
int rtnl_link_bridge_get_boolopt(struct rtnl_link *link, int opt)
Get the value of a boolopt.
Definition bridge_info.c:913
rtnl_link_bridge_set_nf_call_arptables
void rtnl_link_bridge_set_nf_call_arptables(struct rtnl_link *link, uint8_t call_enabled)
Set call enabled flag for passing ARP traffic to arptables.
Definition bridge_info.c:686
rtnl_link_bridge_get_vlan_stats_enabled
int rtnl_link_bridge_get_vlan_stats_enabled(struct rtnl_link *link, uint8_t *vlan_stats_enabled)
Get VLAN stats enabled flag.
Definition bridge_info.c:559
rtnl_link_bridge_set_boolopt
int rtnl_link_bridge_set_boolopt(struct rtnl_link *link, int opt, int value)
Set a the value of a boolopt.
Definition bridge_info.c:879
rtnl_link_bridge_set_vlan_protocol
void rtnl_link_bridge_set_vlan_protocol(struct rtnl_link *link, uint16_t vlan_protocol)
Set VLAN protocol.
Definition bridge_info.c:436
rtnl_link_bridge_get_mcast_router
int rtnl_link_bridge_get_mcast_router(struct rtnl_link *link, uint8_t *type)
Get multicast router type.
Definition bridge_info.c:805
rtnl_link_bridge_get_nf_call_iptables
int rtnl_link_bridge_get_nf_call_iptables(struct rtnl_link *link, uint8_t *call_enabled)
Get call enabled flag for passing IPv4 traffic to iptables.
Definition bridge_info.c:609
rtnl_link_bridge_set_nf_call_ip6tables
void rtnl_link_bridge_set_nf_call_ip6tables(struct rtnl_link *link, uint8_t call_enabled)
Set call enabled flag for passing IPv6 traffic to ip6tables.
Definition bridge_info.c:636
rtnl_link_bridge_get_nf_call_ip6tables
int rtnl_link_bridge_get_nf_call_ip6tables(struct rtnl_link *link, uint8_t *call_enabled)
Get call enabled flag for passing IPv6 traffic to iptables.
Definition bridge_info.c:659
rtnl_link_bridge_set_vlan_default_pvid
void rtnl_link_bridge_set_vlan_default_pvid(struct rtnl_link *link, uint16_t default_pvid)
Set VLAN default pvid.
Definition bridge_info.c:486
rtnl_link
Link object.
Definition nl-route.h:29