xref: /aosp_15_r20/external/libnl/include/netlink/route/act/mirred.h (revision 4dc78e53d49367fa8e61b07018507c90983a077d)
1 /* SPDX-License-Identifier: LGPL-2.1-only */
2 /*
3  * Copyright (c) 2013 Cong Wang <[email protected]>
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
15 extern "C" {
16 #endif
17 
18 extern int rtnl_mirred_set_action(struct rtnl_act *, int);
19 extern int rtnl_mirred_get_action(struct rtnl_act *);
20 extern int rtnl_mirred_set_ifindex(struct rtnl_act *, uint32_t);
21 extern uint32_t rtnl_mirred_get_ifindex(struct rtnl_act *);
22 extern int rtnl_mirred_set_policy(struct rtnl_act *, int);
23 extern int rtnl_mirred_get_policy(struct rtnl_act *);
24 
25 #ifdef __cplusplus
26 }
27 #endif
28 
29 #endif
30