selftests/bpf: Rewrite test_sock_addr bind bpf into C
authorStanislav Fomichev <sdf@google.com>
Wed, 2 Dec 2020 17:25:14 +0000 (09:25 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 2 Dec 2020 21:25:11 +0000 (13:25 -0800)
commita999696c547f1a8ef2ddbb9b0e77abc3f6db4ff1
treee0887d96ed88465293b4d6fc45678a2f07fb4d87
parentba0581749fec389e55c9d761f2716f8fcbefced5
selftests/bpf: Rewrite test_sock_addr bind bpf into C

I'm planning to extend it in the next patches. It's much easier to
work with C than BPF assembly.

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20201202172516.3483656-2-sdf@google.com
tools/testing/selftests/bpf/progs/bind4_prog.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/bind6_prog.c [new file with mode: 0644]
tools/testing/selftests/bpf/test_sock_addr.c