commit | 0d4fad3e57df2bf61e8ffc8d12a34b1caf9b8835 | [log] [tgz] |
---|---|---|
author | Yonghong Song <yhs@fb.com> | Tue Jun 23 16:08:15 2020 -0700 |
committer | Alexei Starovoitov <ast@kernel.org> | Wed Jun 24 18:37:59 2020 -0700 |
tree | a0e1c4d3842e4fcf68b2258de801de5e4a092d1c | |
parent | 5788b3a07fc5863606c3b92fa7b1ffe125e6eb4c [diff] |
bpf: Add bpf_skc_to_udp6_sock() helper The helper is used in tracing programs to cast a socket pointer to a udp6_sock pointer. The return value could be NULL if the casting is illegal. Signed-off-by: Yonghong Song <yhs@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Martin KaFai Lau <kafai@fb.com> Cc: Eric Dumazet <edumazet@google.com> Link: https://lore.kernel.org/bpf/20200623230815.3988481-1-yhs@fb.com