net: bpf: Implement bpf iterator for udp
authorYonghong Song <yhs@fb.com>
Tue, 23 Jun 2020 23:08:13 +0000 (16:08 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 25 Jun 2020 01:37:59 +0000 (18:37 -0700)
commit5788b3a07fc5863606c3b92fa7b1ffe125e6eb4c
treef8f5cf8ee8c208d31acb125e50f69813518ffc40
parent9e8ca27afab6c92477b459f6a5d2af0cd3197c20
net: bpf: Implement bpf iterator for udp

The bpf iterator for udp is implemented. Both udp4 and udp6
sockets will be traversed. It is up to bpf program to
filter for udp4 or udp6 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/20200623230813.3988404-1-yhs@fb.com
net/ipv4/udp.c