summaryrefslogtreecommitdiffstats
path: root/examples/nft-ruleset-parse-file.c
diff options
context:
space:
mode:
authorJeremy Sowden <jeremy@azazel.net>2022-08-27 18:17:17 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2022-08-29 09:54:41 +0200
commit212479ad2c9200fa858a37de14a2e5e996f10105 (patch)
tree4eebe26d00bd47d1570d2a0f55d6409029d823bd /examples/nft-ruleset-parse-file.c
parent817c8b66f1ea8c223b7513d4cd7bff525d8a0a9f (diff)
rule, set_elem: fix printing of user data
Hitherto, alphanumeric characters have been printed as-is, but anything else was replaced by '\0'. However, this effectively truncates the output. Instead, print any printable character as-is and print anything else as a hexadecimal escape sequence: userdata = { \x01\x04\x01\x00\x00\x00 } Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'examples/nft-ruleset-parse-file.c')
0 files changed, 0 insertions, 0 deletions