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

libnl 3.10.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);
40extern void rtnl_link_bridge_set_nf_call_iptables(struct rtnl_link *link,
41 uint8_t call_enabled);
42extern void rtnl_link_bridge_set_nf_call_ip6tables(struct rtnl_link *link,
43 uint8_t call_enabled);
44extern void rtnl_link_bridge_set_nf_call_arptables(struct rtnl_link *link,
45 uint8_t call_enabled);
46
47#ifdef __cplusplus
48}
49#endif
50
51#endif
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:388
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:338
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:415
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:265
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:238
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:288
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:463
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:216
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:501
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:438
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:315
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:482
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:365
rtnl_link
Link object.
Definition nl-route.h:29