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 --- src/scanner.l | 1 + 1 file changed, 1 insertion(+) (limited to 'src/scanner.l') diff --git a/src/scanner.l b/src/scanner.l index bd641345..6a861cf2 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -285,6 +285,7 @@ addrstring ({macaddr}|{ip4addr}|{ip6addr}) "monitor" { return MONITOR; } "position" { return POSITION; } +"index" { return INDEX; } "comment" { return COMMENT; } "constant" { return CONSTANT; } -- cgit v1.2.3