selftests/bpf: Rewrite recvmsg{4,6} asm progs to c in test_sock_addr
authorStanislav Fomichev <sdf@google.com>
Wed, 27 Jan 2021 23:28:52 +0000 (15:28 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 29 Jan 2021 01:09:05 +0000 (02:09 +0100)
commit357490601621d077c2c90473fec66d7a8badedcc
tree423741aaac9b0ab450e743187865491521e7cabd
parent073f4ec124bb2c431d9e4136e7f583abfea7f290
selftests/bpf: Rewrite recvmsg{4,6} asm progs to c in test_sock_addr

I'll extend them in the next patch. It's easier to work with C
than with asm.

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20210127232853.3753823-4-sdf@google.com
tools/testing/selftests/bpf/progs/recvmsg4_prog.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/recvmsg6_prog.c [new file with mode: 0644]
tools/testing/selftests/bpf/test_sock_addr.c