diff options
author | Sushma Sitaram <sushma.sitaram@intel.com> | 2016-11-10 22:47:53 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-12-02 12:43:36 (GMT) |
commit | 993a62d4501a9b40461d9f1276a63246268b4a3a (patch) | |
tree | 657a7363228f421a873b33dc18f54f29ba1b05fc /include/netlink | |
parent | 7e88d00c095dba3513e15f9ca387df47cfcb0ab0 (diff) | |
download | libnl-993a62d4501a9b40461d9f1276a63246268b4a3a.zip libnl-993a62d4501a9b40461d9f1276a63246268b4a3a.tar.gz libnl-993a62d4501a9b40461d9f1276a63246268b4a3a.tar.bz2 |
route/act: add gact tc action
Signed-off-by: Sushma Sitaram <sushma.sitaram@intel.com>
Signed-off-by: Thomas Haller <thaller@redhat.com>
http://lists.infradead.org/pipermail/libnl/2016-November/002249.html
Diffstat (limited to 'include/netlink')
-rw-r--r-- | include/netlink/route/act/gact.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/netlink/route/act/gact.h b/include/netlink/route/act/gact.h new file mode 100644 index 0000000..9538711 --- /dev/null +++ b/include/netlink/route/act/gact.h @@ -0,0 +1,31 @@ +/* + * netlink/route/act/gact.h gact 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) 2016 Sushma Sitaram <sushma.sitaram@intel.com> + */ + +#ifndef NETLINK_GACT_H_ +#define NETLINK_GACT_H_ + +#include <netlink/netlink.h> +#include <netlink/cache.h> +#include <netlink/route/action.h> +#include <linux/tc_act/tc_gact.h> + +#ifdef __cplusplus +extern "C" { +#endif + +extern int rtnl_gact_set_action(struct rtnl_act *act, int action); +extern int rtnl_gact_get_action(struct rtnl_act *act); + +#ifdef __cplusplus +} +#endif + +#endif |