libnl 3.7.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_vlan_filtering(struct rtnl_link *link,
17 uint8_t vlan_filtering);
19 uint8_t *vlan_filtering);
20
21extern void rtnl_link_bridge_set_vlan_protocol(struct rtnl_link *link,
22 uint16_t vlan_protocol);
23extern int rtnl_link_bridge_get_vlan_protocol(struct rtnl_link *link,
24 uint16_t *vlan_protocol);
25
27 uint8_t vlan_stats_enabled);
29 uint8_t *vlan_stats_enabled);
30
31#ifdef __cplusplus
32}
33#endif
34
35#endif
int rtnl_link_bridge_get_vlan_protocol(struct rtnl_link *link, uint16_t *vlan_protocol)
Get VLAN protocol.
Definition: bridge_info.c:225
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:252
void rtnl_link_bridge_set_vlan_filtering(struct rtnl_link *link, uint8_t vlan_filtering)
Set VLAN filtering flag.
Definition: bridge_info.c:152
int rtnl_link_bridge_get_vlan_filtering(struct rtnl_link *link, uint8_t *vlan_filtering)
Get VLAN filtering flag.
Definition: bridge_info.c:175
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:275
void rtnl_link_bridge_set_vlan_protocol(struct rtnl_link *link, uint16_t vlan_protocol)
Set VLAN protocol.
Definition: bridge_info.c:202