• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_ */
39