diff options
author | Jozsef Kadlecsik <kadlec@netfilter.org> | 2023-12-12 09:24:43 +0100 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@netfilter.org> | 2023-12-12 09:24:43 +0100 |
commit | ca62c0e1640e5d112679044434227024690b53bc (patch) | |
tree | 7203fc52711aa458c1107646bc27be1269cd5a68 /include | |
parent | b15dd2752a2d666358a42285528805bf2835f6c6 (diff) |
Fix hex literals in json output
Json does not allow 0x prefixes in hex numbers, so output hex numbers
as quoted strings instead.
Fixes bugzilla #1726, reported by Mark.
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/libipset/session.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libipset/session.h b/include/libipset/session.h index f0da10f..365e17e 100644 --- a/include/libipset/session.h +++ b/include/libipset/session.h @@ -84,6 +84,8 @@ enum ipset_envopt { IPSET_ENV_LIST_SETNAME = (1 << IPSET_ENV_BIT_LIST_SETNAME), IPSET_ENV_BIT_LIST_HEADER = 5, IPSET_ENV_LIST_HEADER = (1 << IPSET_ENV_BIT_LIST_HEADER), + IPSET_ENV_BIT_QUOTED = 6, + IPSET_ENV_QUOTED = (1 << IPSET_ENV_BIT_QUOTED), }; extern bool ipset_envopt_test(struct ipset_session *session, |