path: root/include
diff options
authorPhil Sutter <>2018-05-09 16:03:42 +0200
committerPablo Neira Ayuso <>2018-05-09 18:29:21 +0200
commit816d8c7659c1d90ce6827baaa939820a3bae2ae0 (patch)
treefca73c0fcee84c77dfd27a4067dd3f27aa25e79d /include
parent5a7775a1d699ced8a0c760d4849c4e84bac9268a (diff)
Support 'add/insert rule index <IDX>'
Allow to specify an absolute rule position in add/insert commands like with iptables. The translation to rule handle takes place in userspace, so no kernel support for this is needed. Possible undesired effects are pointed out in man page to make users aware that this way of specifying a rule location might not be ideal. Signed-off-by: Phil Sutter <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include')
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rule.h b/include/rule.h
index b265690d..a3764bda 100644
--- a/include/rule.h
+++ b/include/rule.h
@@ -69,6 +69,7 @@ struct handle {
const char *flowtable;
struct handle_spec handle;
struct position_spec position;
+ struct position_spec index;
uint32_t set_id;