diff options
author | Phil Sutter <phil@nwl.cc> | 2018-05-09 16:03:42 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-05-09 18:29:21 +0200 |
commit | 816d8c7659c1d90ce6827baaa939820a3bae2ae0 (patch) | |
tree | fca73c0fcee84c77dfd27a4067dd3f27aa25e79d /include | |
parent | 5a7775a1d699ced8a0c760d4849c4e84bac9268a (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 <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/rule.h | 1 |
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; }; |