Home | History | Annotate | Download | only in act
      1 /*
      2  * netlink/route/cls/mirred.h	mirred 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) 2013 Cong Wang <xiyou.wangcong (at) gmail.com>
     10  */
     11 
     12 #ifndef NETLINK_MIRRED_H_
     13 #define NETLINK_MIRRED_H_
     14 
     15 #include <netlink/netlink.h>
     16 #include <netlink/cache.h>
     17 #include <netlink/route/action.h>
     18 #include <linux/tc_act/tc_mirred.h>
     19 
     20 #ifdef __cplusplus
     21 extern "C" {
     22 #endif
     23 
     24 extern int rtnl_mirred_set_action(struct rtnl_act *, int);
     25 extern int rtnl_mirred_get_action(struct rtnl_act *);
     26 extern int rtnl_mirred_set_ifindex(struct rtnl_act *, uint32_t);
     27 extern uint32_t rtnl_mirred_get_ifindex(struct rtnl_act *);
     28 extern int rtnl_mirred_set_policy(struct rtnl_act *, int);
     29 extern int rtnl_mirred_get_policy(struct rtnl_act *);
     30 
     31 #ifdef __cplusplus
     32 }
     33 #endif
     34 
     35 #endif
     36