diff options
author | Ana Rey <anarey@gmail.com> | 2014-06-04 13:38:09 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-06-05 15:23:01 +0200 |
commit | ee673abc6cb7ff8d0b4d2d96548f4234c501b148 (patch) | |
tree | 8c31ebf18d9bc9649b5d13b2b65dff3c52d3bdd7 /examples/nft-table-add.c | |
parent | ca4b919937684d8367842b1ec757bf9948a2c8c6 (diff) |
expr: reject: Do not print unset values in xml
It changes the parse and the snprint functions to omit unset values.
If we used this rule:
nft add rule ip test output reject
It gets this xml file:
[...]
<expr type="reject">
<type>0</type>
<code>0</code>
</expr>
</rule></nftables>
Now, That rule creates this xml file without null values:
[...]
<expr type="reject">
</expr>
</rule></nftables>
Signed-off-by: Ana Rey <anarey@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'examples/nft-table-add.c')
0 files changed, 0 insertions, 0 deletions