From ca62c0e1640e5d112679044434227024690b53bc Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Tue, 12 Dec 2023 09:24:43 +0100 Subject: 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 --- include/libipset/session.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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, -- cgit v1.2.3