Martin KaFai Lau 8a3feed90e bpf, selftest: Fix flaky tcp_hdr_options test when adding addr to lo
The tcp_hdr_options test adds a "::eB9F" addr to the lo dev.
However, this non loopback address will have a race on ipv6 dad
which may lead to EADDRNOTAVAIL error from time to time.

Even nodad is used in the iproute2 command, there is still a race in
when the route will be added.  This will then lead to ENETUNREACH from
time to time.

To avoid the above, this patch uses the default loopback address "::1"
to do the test.

Fixes: ad2f8eb0095e ("bpf: selftests: Tcp header options")
Reported-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20201012234940.1707941-1-kafai@fb.com
2020-10-15 20:53:15 +02:00
..
2020-04-03 13:12:26 -07:00
2020-08-05 10:28:25 -07:00
2020-06-17 00:07:38 +02:00
2020-06-29 10:02:23 +02:00
2020-08-05 11:52:17 -07:00
2020-08-07 11:33:27 -07:00
2020-08-05 10:28:25 -07:00
2020-04-03 13:12:26 -07:00
2020-06-09 10:03:12 -07:00
2020-04-03 13:12:26 -07:00
2020-08-05 10:28:25 -07:00
2020-07-07 14:11:31 -06:00
2020-08-07 11:33:27 -07:00