libnl 3.7.0
mirred.h
1/* SPDX-License-Identifier: LGPL-2.1-only */
2/*
3 * Copyright (c) 2013 Cong Wang <xiyou.wangcong@gmail.com>
4 */
5
6#ifndef NETLINK_MIRRED_H_
7#define NETLINK_MIRRED_H_
8
9#include <netlink/netlink.h>
10#include <netlink/cache.h>
11#include <netlink/route/action.h>
12#include <linux/tc_act/tc_mirred.h>
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18extern int rtnl_mirred_set_action(struct rtnl_act *, int);
19extern int rtnl_mirred_get_action(struct rtnl_act *);
20extern int rtnl_mirred_set_ifindex(struct rtnl_act *, uint32_t);
21extern uint32_t rtnl_mirred_get_ifindex(struct rtnl_act *);
22extern int rtnl_mirred_set_policy(struct rtnl_act *, int);
23extern int rtnl_mirred_get_policy(struct rtnl_act *);
24
25#ifdef __cplusplus
26}
27#endif
28
29#endif