diff options
author | Ilya Leoshkevich <iii@linux.ibm.com> | 2019-08-14 13:41:09 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-08-14 23:51:35 +0300 |
commit | 27df5c7068bf23cab282dc64b1c9894429b3b8a0 (patch) | |
tree | e754082f14e604d5869e7439b064b515565ed7ad /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 91b4db5313a2c793aabc2143efb8ed0cf0fdd097 (diff) | |
download | linux-27df5c7068bf23cab282dc64b1c9894429b3b8a0.tar.xz |
selftests/bpf: fix "bind{4, 6} deny specific IP & port" on s390
"bind4 allow specific IP & port" and "bind6 deny specific IP & port"
fail on s390 because of endianness issue: the 4 IP address bytes are
loaded as a word and compared with a constant, but the value of this
constant should be different on big- and little- endian machines, which
is not the case right now.
Use __bpf_constant_ntohl to generate proper value based on machine
endianness.
Fixes: 1d436885b23b ("selftests/bpf: Selftest for sys_bind post-hooks.")
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions