aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/test_offload.py
diff options
context:
space:
mode:
authorPetar Penkov <ppenkov@google.com>2019-08-27 16:46:22 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2019-08-31 00:58:06 +0200
commit0741be358d5adc266244f909e4434fe17fe1a109 (patch)
tree74e69cb50b03bafee5c53ec616a60938b7a0cfd3 /tools/testing/selftests/bpf/test_offload.py
parentMerge branch 'bpf-nfp-map-op-cache' (diff)
downloadlinux-dev-0741be358d5adc266244f909e4434fe17fe1a109.tar.xz
linux-dev-0741be358d5adc266244f909e4434fe17fe1a109.zip
bpf: fix error check in bpf_tcp_gen_syncookie
If a SYN cookie is not issued by tcp_v#_gen_syncookie, then the return value will be exactly 0, rather than <= 0. Let's change the check to reflect that, especially since mss is an unsigned value and cannot be negative. Fixes: 70d66244317e ("bpf: add bpf_tcp_gen_syncookie helper") Reported-by: Stanislav Fomichev <sdf@google.com> Signed-off-by: Petar Penkov <ppenkov@google.com> Acked-by: Song Liu <songliubraving@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions