summaryrefslogtreecommitdiffstats
path: root/include/libnftnl/common.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-06-22 14:18:57 +0200
committerFlorian Westphal <fw@strlen.de>2018-06-26 20:19:28 +0200
commit9737856067b97cbb869e04fc6b6e65c1d859f521 (patch)
tree12ffbb13658b842ddfb3090380d953e3efbb63f2 /include/libnftnl/common.h
parentd1eeae816d39cb426654a721188428fd6d27959b (diff)
utils: Fix nftnl_get_value() on big endian
This function basically did: | memcpy(out, val, <len of requested type>); which works only for little endian integer types. Fix this by assigning the 64bit input value to a variable of the right size and use that as input for above memcpy() call. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'include/libnftnl/common.h')
0 files changed, 0 insertions, 0 deletions