summaryrefslogtreecommitdiffstats
path: root/include/misc
diff options
context:
space:
mode:
authorIlya Leoshkevich <iii@linux.ibm.com>2019-07-19 11:06:11 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2019-07-22 16:19:06 +0200
commitc8eee4135a456bc031d67cadc454e76880d1afd8 (patch)
tree3ef0a666cd0c14b5bfd86aa5a60917998722f20f /include/misc
parent4be6e05c4d4c2ff87750d3242f69999245d119f8 (diff)
downloadlinux-c8eee4135a456bc031d67cadc454e76880d1afd8.tar.bz2
selftests/bpf: fix sendmsg6_prog on s390
"sendmsg6: rewrite IP & port (C)" fails on s390, because the code in sendmsg_v6_prog() assumes that (ctx->user_ip6[0] & 0xFFFF) refers to leading IPv6 address digits, which is not the case on big-endian machines. Since checking bitwise operations doesn't seem to be the point of the test, replace two short comparisons with a single int comparison. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> Acked-by: Andrey Ignatov <rdna@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'include/misc')
0 files changed, 0 insertions, 0 deletions