summaryrefslogtreecommitdiffstats
path: root/src/scanner.l
diff options
context:
space:
mode:
authorEric Leblond <eric@regit.org>2013-06-09 01:08:47 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-06-12 11:41:39 +0200
commitbf371bca68e266ea41805fc3efbb39f82b76e2fe (patch)
tree3775819809be262762ba21c8e679622dcaf81ac9 /src/scanner.l
parent856789c1546c6356e9b61289db6c5c5f92213145 (diff)
src: fix counter restoration
It was not possible to restore a ruleset countaining counter. The packets and bytes fields were not known from the parser but they were in the output of the list command. This patch fixes the issue by restoring correctly the counters if they are present in the command. Signed-off-by: Eric Leblond <eric@regit.org> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/scanner.l')
-rw-r--r--src/scanner.l2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/scanner.l b/src/scanner.l
index edecf7b6..fe7b86c4 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -250,6 +250,8 @@ addrstring ({macaddr}|{ip4addr}|{ip6addr})
"rename" { return RENAME; }
"counter" { return COUNTER; }
+"packets" { return PACKETS; }
+"bytes" { return BYTES; }
"log" { return LOG; }
"prefix" { return PREFIX; }