]> git.baikalelectronics.ru Git - kernel.git/commit
net: bpf: Implement bpf iterator for tcp
authorYonghong Song <yhs@fb.com>
Tue, 23 Jun 2020 23:08:05 +0000 (16:08 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 25 Jun 2020 01:37:58 +0000 (18:37 -0700)
commit0847fad9ee559de19eb121a9d4ca9f3c2cc17bec
tree91abbbf647ebca6ed60aa16de6bd8839dab99984
parente017319a2e4dda5c105251c7c9a16cafa0792e36
net: bpf: Implement bpf iterator for tcp

The bpf iterator for tcp is implemented. Both tcp4 and tcp6
sockets will be traversed. It is up to bpf program to
filter for tcp4 or tcp6 only, or both families of sockets.

Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20200623230805.3987959-1-yhs@fb.com
net/ipv4/tcp_ipv4.c