diff options
author | Ana Rey <anarey@gmail.com> | 2014-06-04 13:38:11 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-06-05 15:23:01 +0200 |
commit | c0ff83d7b03222c8c634a80b42883c1aebe8764d (patch) | |
tree | e8827fcaa74455d1127a37120801ffcd56d1d622 /configure.ac | |
parent | 020a53391fb9c86390b802892a3b7486d09b1b2c (diff) |
expr: reject: Do not print unset values in json
It changes the parse and the snprint functions to omit unset values.
If It uses this rule:
nft add rule ip test output input
It gets this json file:
[...] "expr":[{"type":"reject","type":0,"code":0}]}
Now, That rule creates this json file without null values:
[...] "expr":[{"type":"reject"}]}
Signed-off-by: Ana Rey <anarey@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions