OSDN Git Service

selftests/bpf: Add a test case for udp sockmap
authorCong Wang <cong.wang@bytedance.com>
Wed, 31 Mar 2021 02:32:36 +0000 (19:32 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 1 Apr 2021 17:56:14 +0000 (10:56 -0700)
commitd6378af615275435ce6e390a538c980ac19b6659
tree6722b1ed1b638250e04dcfe1a1a18def2d9aab26
parent122e6c79efe1c25816118aca9cfabe54e99c2432
selftests/bpf: Add a test case for udp sockmap

Add a test case to ensure redirection between two UDP sockets work.

Signed-off-by: Cong Wang <cong.wang@bytedance.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210331023237.41094-16-xiyou.wangcong@gmail.com
tools/testing/selftests/bpf/prog_tests/sockmap_listen.c
tools/testing/selftests/bpf/progs/test_sockmap_listen.c