]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Add an example for bpf_get_listener_sock
authorMartin KaFai Lau <kafai@fb.com>
Tue, 12 Mar 2019 17:23:11 +0000 (10:23 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 13 Mar 2019 19:04:35 +0000 (12:04 -0700)
commit06d8a2c278116605dc8389d4a4f80f8729c410a7
tree31578584bffd05a9c77b22211ec37e648f113a40
parent59db11c26669d33e743dc7f15d325f121dada582
bpf: Add an example for bpf_get_listener_sock

This patch adds an example in using the new helper
bpf_get_listener_sock().

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/bpf_helpers.h
tools/testing/selftests/bpf/progs/test_sock_fields_kern.c
tools/testing/selftests/bpf/test_sock_fields.c