libnl: /data/src/libnl3/include/netlink/route/act/vlan.h Source File

libnl 3.7.0

vlan.h
1 /* SPDX-License-Identifier: LGPL-2.1-only */
2 /*
3 * Copyright (c) 2018 Volodymyr Bendiuga <volodymyr.bendiuga@gmail.com>
4 */
5
6 #ifndef NETLINK_VLAN_H_
7 #define NETLINK_VLAN_H_
8
9 #include <netlink/netlink.h>
10 #include <netlink/cache.h>
11 #include <netlink/route/action.h>
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 extern int rtnl_vlan_set_mode(struct rtnl_act *act, int mode);
18 extern int rtnl_vlan_get_mode(struct rtnl_act *act, int *out_mode);
19 extern int rtnl_vlan_set_action(struct rtnl_act *act, int action);
20 extern int rtnl_vlan_get_action(struct rtnl_act *act, int *out_action);
21 extern int rtnl_vlan_set_protocol(struct rtnl_act *act, uint16_t protocol);
22 extern int rtnl_vlan_get_protocol(struct rtnl_act *act, uint16_t *out_protocol);
23 extern int rtnl_vlan_set_vlan_id(struct rtnl_act *act, uint16_t vid);
24 extern int rtnl_vlan_get_vlan_id(struct rtnl_act *act, uint16_t *out_vid);
25 extern int rtnl_vlan_set_vlan_prio(struct rtnl_act *act, uint8_t prio);
26 extern int rtnl_vlan_get_vlan_prio(struct rtnl_act *act, uint8_t *out_prio);
27
28 #ifdef __cplusplus
29 }
30 #endif
31
32 #endif /* NETLINK_VLAN_H_ */
rtnl_vlan_get_vlan_prio
int rtnl_vlan_get_vlan_prio(struct rtnl_act *act, uint8_t *out_prio)
Get vlan prio.
Definition: vlan.c:372
rtnl_vlan_set_mode
int rtnl_vlan_set_mode(struct rtnl_act *act, int mode)
Set vlan mode.
Definition: vlan.c:188
rtnl_vlan_set_protocol
int rtnl_vlan_set_protocol(struct rtnl_act *act, uint16_t protocol)
Set protocol.
Definition: vlan.c:269
rtnl_vlan_set_vlan_prio
int rtnl_vlan_set_vlan_prio(struct rtnl_act *act, uint8_t prio)
Set vlan prio.
Definition: vlan.c:350
rtnl_vlan_set_action
int rtnl_vlan_set_action(struct rtnl_act *act, int action)
Set general action.
Definition: vlan.c:230
rtnl_vlan_set_vlan_id
int rtnl_vlan_set_vlan_id(struct rtnl_act *act, uint16_t vid)
Set vlan id.
Definition: vlan.c:308
rtnl_vlan_get_protocol
int rtnl_vlan_get_protocol(struct rtnl_act *act, uint16_t *out_protocol)
Get protocol.
Definition: vlan.c:288
rtnl_vlan_get_vlan_id
int rtnl_vlan_get_vlan_id(struct rtnl_act *act, uint16_t *out_vid)
Get vlan id.
Definition: vlan.c:330
rtnl_vlan_get_mode
int rtnl_vlan_get_mode(struct rtnl_act *act, int *out_mode)
Get vlan mode.
Definition: vlan.c:210
rtnl_vlan_get_action
int rtnl_vlan_get_action(struct rtnl_act *act, int *out_action)
Get general action.
Definition: vlan.c:249