]> git.ipfire.org Git - thirdparty/libnftnl.git/commit
chain: json: use string to identify policy
authorÁlvaro Neira Ayuso <alvaroneay@gmail.com>
Mon, 15 Jul 2013 19:31:00 +0000 (21:31 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 15 Jul 2013 22:10:48 +0000 (00:10 +0200)
commit74ccff7386b8577f559fa4158668490a0f48ac70
treed6e1dd1dcc791099d41939919c5d34771fe1f9d7
parent78d773b519a4c3f41b3c515505bb8c3bad686fe1
chain: json: use string to identify policy

* if we don't have hooknum we don't need to print the policy tag
* If we have hooknum, i have used the policy2str function for printing the policy with
"accept" string or "drop" string

Signed-off-by: Alvaro Neira Ayuso <alvaroneay@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/chain.c