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

libnl 3.12.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
15extern "C" {
16#endif
17
18extern int rtnl_skbedit_set_action(struct rtnl_act *act, int action);
19extern int rtnl_skbedit_get_action(struct rtnl_act *act);
20extern int rtnl_skbedit_set_queue_mapping(struct rtnl_act *act, uint16_t index);
21extern int rtnl_skbedit_get_queue_mapping(struct rtnl_act *act, uint16_t *index);
22extern int rtnl_skbedit_set_mark(struct rtnl_act *act, uint32_t mark);
23extern int rtnl_skbedit_get_mark(struct rtnl_act *act, uint32_t *mark);
24extern int rtnl_skbedit_set_priority(struct rtnl_act *act, uint32_t prio);
25extern int rtnl_skbedit_get_priority(struct rtnl_act *act, uint32_t *prio);
26
27#ifdef __cplusplus
28}
29#endif
30
31#endif
rtnl_act
Definition nl-route.h:123