diff options
author | 2021-06-16 21:14:46 -0700 | |
---|---|---|
committer | 2021-06-17 13:05:10 +0200 | |
commit | f20792d425d2efd2680f2855c1e3fec01c2e569e (patch) | |
tree | d313e444e47989bbd52b5d0b7b125df069cb111c /net/unix/af_unix.c | |
parent | bpf: Fix up register-based shifts in interpreter to silence KUBSAN (diff) | |
download | wireguard-linux-f20792d425d2efd2680f2855c1e3fec01c2e569e.tar.xz wireguard-linux-f20792d425d2efd2680f2855c1e3fec01c2e569e.zip |
selftests/bpf: Fix selftests build with old system-wide headers
migrate_reuseport.c selftest relies on having TCP_FASTOPEN_CONNECT defined in
system-wide netinet/tcp.h. Selftests can use up-to-date uapi/linux/tcp.h, but
that one doesn't have SOL_TCP. So instead of switching everything to uapi
header, add #define for TCP_FASTOPEN_CONNECT to fix the build.
Fixes: c9d0bdef89a6 ("bpf: Test BPF_SK_REUSEPORT_SELECT_OR_MIGRATE.")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Kuniyuki Iwashima <kuniyu@amazon.co.jp>
Link: https://lore.kernel.org/bpf/20210617041446.425283-1-andrii@kernel.org
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions