]> git.ipfire.org Git - thirdparty/nftables.git/commit
src: fix counter restoration
authorEric Leblond <eric@regit.org>
Sat, 8 Jun 2013 23:08:47 +0000 (01:08 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 12 Jun 2013 09:41:39 +0000 (11:41 +0200)
commitbf371bca68e266ea41805fc3efbb39f82b76e2fe
tree3775819809be262762ba21c8e679622dcaf81ac9
parent856789c1546c6356e9b61289db6c5c5f92213145
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>
src/netlink_linearize.c
src/parser.y
src/scanner.l