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

libnl 3.7.0

skbedit.h
1 /* SPDX-License-Identifier: LGPL-2.1-only */
2 /*
3 * Copyright (c) 2015 Cong Wang <xiyou.wangcong@gmail.com>
4 */
5
6 #ifndef NETLINK_SKBEDIT_H_
7 #define NETLINK_SKBEDIT_H_
8
9 #include <netlink/netlink.h>
10 #include <netlink/cache.h>
11 #include <netlink/route/action.h>
12 #include <linux/tc_act/tc_skbedit.h>
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17
18 extern int rtnl_skbedit_set_action(struct rtnl_act *act, int action);
19 extern int rtnl_skbedit_get_action(struct rtnl_act *act);
20 extern int rtnl_skbedit_set_queue_mapping(struct rtnl_act *act, uint16_t index);
21 extern int rtnl_skbedit_get_queue_mapping(struct rtnl_act *act, uint16_t *index);
22 extern int rtnl_skbedit_set_mark(struct rtnl_act *act, uint32_t mark);
23 extern int rtnl_skbedit_get_mark(struct rtnl_act *act, uint32_t *mark);
24 extern int rtnl_skbedit_set_priority(struct rtnl_act *act, uint32_t prio);
25 extern int rtnl_skbedit_get_priority(struct rtnl_act *act, uint32_t *prio);
26
27 #ifdef __cplusplus
28 }
29 #endif
30
31 #endif