]> git.ipfire.org Git - thirdparty/nftables.git/commit
expression: fix output of verdict maps
authorPablo Neira <pablo@netfilter.org>
Mon, 13 Jan 2014 12:39:16 +0000 (13:39 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 16 Jan 2014 17:04:15 +0000 (18:04 +0100)
commit734eed347ff1b648b57940af482452d09337282c
tree464c0b31a22e6eb03599fa0134a4afba800e1ef7
parent3bbc269d4acc803b82190ad5f0c6de06609f51b3
expression: fix output of verdict maps

% nft list table filter
table ip filter {
...
chain output {
...
ip saddr map { 1.1.1.1 => accept}
}
}

It displays 'map' instead of 'vmap'. Fix it by checking the mapping
type in map_expr_print().

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/expression.c