]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Fix bpf-iter-tcp4 test to print correctly the dest IP
authorJose Blanquicet <josebl@microsoft.com>
Thu, 5 Aug 2021 16:40:36 +0000 (18:40 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 6 Aug 2021 15:16:33 +0000 (17:16 +0200)
commit97fb91be7d7437042044648e49a661c214b1a543
treebcc8cdfb109f38b87bfc6516b3feb801eaced8c0
parentaaff6ccdeec4eece93958fac7a2f1ae4b3441f0c
selftests/bpf: Fix bpf-iter-tcp4 test to print correctly the dest IP

Currently, this test is incorrectly printing the destination port in
place of the destination IP.

Fixes: 3e899629eb11 ("selftests/bpf: Implement sample tcp/tcp6 bpf_iter programs")
Signed-off-by: Jose Blanquicet <josebl@microsoft.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210805164044.527903-1-josebl@microsoft.com
tools/testing/selftests/bpf/progs/bpf_iter_tcp4.c