From 816d8c7659c1d90ce6827baaa939820a3bae2ae0 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Wed, 9 May 2018 16:03:42 +0200 Subject: Support 'add/insert rule index ' 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 --- include/rule.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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; }; -- cgit v1.2.3