diff options
author | Álvaro Neira Ayuso <alvaroneay@gmail.com> | 2014-03-13 22:31:51 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-03-17 12:50:50 +0100 |
commit | acf8d66df40e29dea1f8fcd652248556a85459f1 (patch) | |
tree | 19ec0c4dc397cffb00e8c997b2cb8cc9d7904f2b /src/set_elem.c | |
parent | bebd736e6091bdba4eff12419f3d041a21cd95be (diff) |
rule: don't print unset attributes
We print some attribute that maybe the user hasn't defined
for printing. We can't assume that the user want to print
some attribute that we have put mandatory in the rules.
Example:
If we have defined family, the output is like that:
{"rule":{"family":"ip","handle":4...
<rule><family>ip</family><handle>4</handle>...
And this if we unset the family.
{"rule":{"handle":4...
<rule><handle>4</handle>...
Signed-off-by: Alvaro Neira Ayuso <alvaroneay@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/set_elem.c')
0 files changed, 0 insertions, 0 deletions