From bf371bca68e266ea41805fc3efbb39f82b76e2fe Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Sun, 9 Jun 2013 01:08:47 +0200 Subject: 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 Signed-off-by: Pablo Neira Ayuso --- src/scanner.l | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/scanner.l') 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; } -- cgit v1.2.3