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)
commit52d87d5f6418ba1b8b449ed5eea1532664896851
tree91abbbf647ebca6ed60aa16de6bd8839dab99984
parentb08d4d3b6c0460306e8a0608413b201705200d33
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