diff options
author | Cong Wang <xiyou.wangcong@gmail.com> | 2013-11-08 18:47:50 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2013-11-09 00:15:31 (GMT) |
commit | 9073aaf67eecc6353ea9f2c77b771e01e3693eaa (patch) | |
tree | 721a98f8aed8a2279f29b40ab8776062f63b090a /include/netlink | |
parent | d6cfd04799d69e9c8eea6c5823007bf626c4b90c (diff) | |
download | libnl-9073aaf67eecc6353ea9f2c77b771e01e3693eaa.zip libnl-9073aaf67eecc6353ea9f2c77b771e01e3693eaa.tar.gz libnl-9073aaf67eecc6353ea9f2c77b771e01e3693eaa.tar.bz2 |
add mirred tc action
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Diffstat (limited to 'include/netlink')
-rw-r--r-- | include/netlink/route/act/mirred.h | 31 | ||||
-rw-r--r-- | include/netlink/route/action.h | 1 |
2 files changed, 32 insertions, 0 deletions
diff --git a/include/netlink/route/act/mirred.h b/include/netlink/route/act/mirred.h new file mode 100644 index 0000000..20a777c --- /dev/null +++ b/include/netlink/route/act/mirred.h @@ -0,0 +1,31 @@ +/* + * netlink/route/cls/mirred.h mirred action + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation version 2.1 + * of the License. + * + * Copyright (c) 2013 Cong Wang <xiyou.wangcong@gmail.com> + */ + +#ifndef NETLINK_MIRRED_H_ +#define NETLINK_MIRRED_H_ + +#include <netlink/netlink.h> +#include <netlink/cache.h> +#include <netlink/route/action.h> + +#ifdef __cplusplus +extern "C" { +#endif + +extern int rtnl_mirred_set_action(struct rtnl_act *, int); +extern int rtnl_mirred_set_index(struct rtnl_act *, uint32_t); +extern int rtnl_mirred_set_policy(struct rtnl_act *, int); + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/include/netlink/route/action.h b/include/netlink/route/action.h index be52767..8e265ea 100644 --- a/include/netlink/route/action.h +++ b/include/netlink/route/action.h @@ -16,6 +16,7 @@ #include <netlink/cache.h> #include <netlink/route/tc.h> #include <netlink/utils.h> +#include <linux/pkt_act.h> #ifdef __cplusplus extern "C" { |