]> git.ipfire.org Git - thirdparty/nftables.git/commit
src: Allow list stateful objects in a table
authorElise Lennion <elise.lennion@gmail.com>
Thu, 26 Jan 2017 17:15:44 +0000 (15:15 -0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 27 Jan 2017 12:33:20 +0000 (13:33 +0100)
commitf32c90da056aacfb24db1c67a6283e2ecdbe6602
tree952739af6a48e822cc52423e1b94cee83175ca13
parent1b5dc09f718ee27b95cc1153599cd72b2076929c
src: Allow list stateful objects in a table

Currently, stateful objects can be listed by: listing all objects in
all tables; listing a single object in a table. Now it's allowed to
list all objects in a table.

$ nft list counters table filter
table ip filter {
counter https-traffic {
packets 14825 bytes 950063
}
counter http-traffic {
packets 117 bytes 9340
}
}

$ nft list quotas table filter
table ip filter {
quota https-quota {
25 mbytes used 2 mbytes
}
quota http-quota {
25 mbytes used 10 kbytes
}
}

Signed-off-by: Elise Lennion <elise.lennion@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/evaluate.c
src/parser_bison.y