summaryrefslogtreecommitdiffstats
path: root/src/internal.h
diff options
context:
space:
mode:
authorAna Rey <anarey@gmail.com>2014-06-11 17:50:49 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2014-06-11 19:43:36 +0200
commit5e90b0df344b9b57f841b312893791c066ba382a (patch)
treee3f883ff92aab99b29514466fbafc85496b60dec /src/internal.h
parentcbb40e407ed32c91a4d1d84eb7ad83401ce569c9 (diff)
src: set: Do not print unset values in json
It changes the parse and the snprint functions to omit unset values. This json file is gotten for a set: { "set": { "name": "mi6set3", "table": "test6", "flags": "0", "family": "unknown", "key_type": "0", "key_len": "0", "set_elem": [ { "flags": "0", "key": { "data_reg": { "type": "value", "len": "16", "data0": "0x000080fe", "data1": "0x00000000", "data2": "0xffb30202", "data3": "0x89001efe" Now, This json file is gotten for a set without unset elements. { "set": { "name": "mi6set3", "table": "test6", "family": "unknown", "set_elem": [ { "key": { "data_reg": { "type": "value", "len": "16", "data0": "0x000080fe", "data1": "0x00000000", "data2": "0xffb30202", "data3": "0x89001efe" [ Note: These fields are unset when they are obtained from the set element information --pablo. ] Signed-off-by: Ana Rey <anarey@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/internal.h')
0 files changed, 0 insertions, 0 deletions