libnl 3.5.0

vlan.h
1 /*
2 * netlink/route/act/vlan.h vlan action
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation version 2.1
7 * of the License.
8 *
9 * Copyright (c) 2018 Volodymyr Bendiuga <volodymyr.bendiuga@gmail.com>
10 */
11
12 #ifndef NETLINK_VLAN_H_
13 #define NETLINK_VLAN_H_
14
15 #include <netlink/netlink.h>
16 #include <netlink/cache.h>
17 #include <netlink/route/action.h>
18
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22
23 extern int rtnl_vlan_set_mode(struct rtnl_act *act, int mode);
24 extern int rtnl_vlan_get_mode(struct rtnl_act *act, int *out_mode);
25 extern int rtnl_vlan_set_action(struct rtnl_act *act, int action);
26 extern int rtnl_vlan_get_action(struct rtnl_act *act, int *out_action);
27 extern int rtnl_vlan_set_protocol(struct rtnl_act *act, uint16_t protocol);
28 extern int rtnl_vlan_get_protocol(struct rtnl_act *act, uint16_t *out_protocol);
29 extern int rtnl_vlan_set_vlan_id(struct rtnl_act *act, uint16_t vid);
30 extern int rtnl_vlan_get_vlan_id(struct rtnl_act *act, uint16_t *out_vid);
31 extern int rtnl_vlan_set_vlan_prio(struct rtnl_act *act, uint8_t prio);
32 extern int rtnl_vlan_get_vlan_prio(struct rtnl_act *act, uint8_t *out_prio);
33
34 #ifdef __cplusplus
35 }
36 #endif
37
38 #endif /* NETLINK_VLAN_H_ */
rtnl_vlan_get_action
int rtnl_vlan_get_action(struct rtnl_act *act, int *out_action)
Get general action.
Definition: vlan.c:263
rtnl_vlan_get_protocol
int rtnl_vlan_get_protocol(struct rtnl_act *act, uint16_t *out_protocol)
Get protocol.
Definition: vlan.c:302
rtnl_vlan_set_action
int rtnl_vlan_set_action(struct rtnl_act *act, int action)
Set general action.
Definition: vlan.c:244
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:386
rtnl_vlan_set_protocol
int rtnl_vlan_set_protocol(struct rtnl_act *act, uint16_t protocol)
Set protocol.
Definition: vlan.c:283
rtnl_vlan_set_vlan_id
int rtnl_vlan_set_vlan_id(struct rtnl_act *act, uint16_t vid)
Set vlan id.
Definition: vlan.c:322
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:344
rtnl_vlan_set_mode
int rtnl_vlan_set_mode(struct rtnl_act *act, int mode)
Set vlan mode.
Definition: vlan.c:202
rtnl_vlan_set_vlan_prio
int rtnl_vlan_set_vlan_prio(struct rtnl_act *act, uint8_t prio)
Set vlan prio.
Definition: vlan.c:364
rtnl_vlan_get_mode
int rtnl_vlan_get_mode(struct rtnl_act *act, int *out_mode)
Get vlan mode.
Definition: vlan.c:224