OSDN Git Service

bpf: Extend bind v4/v6 selftests for mark/prio/bindtoifindex
authorDaniel Borkmann <daniel@iogearbox.net>
Mon, 11 Jan 2021 23:09:40 +0000 (00:09 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 12 Jan 2021 22:44:53 +0000 (14:44 -0800)
commit3218231dbb16cd85d94831759b6c78e6feb54b58
tree073a763e335ea9a75815aba01e34e8c6d96ff764
parentbcd6f4a8bedabac6949d05e418e73a0a1b309e84
bpf: Extend bind v4/v6 selftests for mark/prio/bindtoifindex

Extend existing cgroup bind4/bind6 tests to add coverage for setting and
retrieving SO_MARK, SO_PRIORITY and SO_BINDTOIFINDEX at the bind hook.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/384fdc90e5fa83f8335a37aa90fa2f5f3661929c.1610406333.git.daniel@iogearbox.net
tools/testing/selftests/bpf/progs/bind4_prog.c
tools/testing/selftests/bpf/progs/bind6_prog.c