• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * netlink/route/act/skbedit.h	skbedit 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) 2015 Cong Wang <xiyou.wangcong@gmail.com>
10  */
11 
12 #ifndef NETLINK_SKBEDIT_H_
13 #define NETLINK_SKBEDIT_H_
14 
15 #include <netlink/netlink.h>
16 #include <netlink/cache.h>
17 #include <netlink/route/action.h>
18 #include <linux/tc_act/tc_skbedit.h>
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 extern int rtnl_skbedit_set_action(struct rtnl_act *act, int action);
25 extern int rtnl_skbedit_get_action(struct rtnl_act *act);
26 extern int rtnl_skbedit_set_queue_mapping(struct rtnl_act *act, uint16_t index);
27 extern int rtnl_skbedit_get_queue_mapping(struct rtnl_act *act, uint16_t *index);
28 extern int rtnl_skbedit_set_mark(struct rtnl_act *act, uint32_t mark);
29 extern int rtnl_skbedit_get_mark(struct rtnl_act *act, uint32_t *mark);
30 extern int rtnl_skbedit_set_priority(struct rtnl_act *act, uint32_t prio);
31 extern int rtnl_skbedit_get_priority(struct rtnl_act *act, uint32_t *prio);
32 
33 #ifdef __cplusplus
34 }
35 #endif
36 
37 #endif
38