summaryrefslogtreecommitdiffstats
path: root/include/libnftnl
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-06-22 14:18:58 +0200
committerFlorian Westphal <fw@strlen.de>2018-06-26 20:19:40 +0200
commit5d592ce6c4596b25d5779a224d03c096bc25db54 (patch)
tree59aaa78e46c57bf10b6c36a4652f89eca57f9582 /include/libnftnl
parent9737856067b97cbb869e04fc6b6e65c1d859f521 (diff)
expr/data_reg: Fix JSON parsing on big endian
Since reg->len is a 32bit variable, one needs to pass NFTNL_TYPE_U32 to nftnl_jansson_parse_val(). Otherwise, only the most significant byte in that variable is being written to. Since the value could potentially be larger than 255, increase node_name buffer to avoid a compiler warning. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'include/libnftnl')
0 files changed, 0 insertions, 0 deletions