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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Sep 2021 07:50:37 +0000 (09:50 +0200)
commit416929eaf44e94351e458f4e7aa484977a11abd2
treefdfebb464366d7a15635b01349e2280188c80dd3
parentd6337dfd1e772660102316ec04c5a2d3ef7bf7d1
selftests/bpf: Fix bpf-iter-tcp4 test to print correctly the dest IP

[ Upstream commit 277b134057036df8c657079ca92c3e5e7d10aeaf ]

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

Fixes: 2767c97765cb ("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
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/bpf/progs/bpf_iter_tcp4.c