diff options
author | 2022-09-01 17:28:53 -0700 | |
---|---|---|
committer | 2022-09-02 20:34:31 -0700 | |
commit | 6dadbe4bac68309eb46ab0f30e8ff47a789df49a (patch) | |
tree | 9bc4341200aac48e114bda425e8afeda531cbab3 /net/core/sock.c | |
parent | net: Add a len argument to compat_ipv6_get_msfilter() (diff) | |
download | wireguard-linux-6dadbe4bac68309eb46ab0f30e8ff47a789df49a.tar.xz wireguard-linux-6dadbe4bac68309eb46ab0f30e8ff47a789df49a.zip |
bpf: net: Change do_ipv6_getsockopt() to take the sockptr_t argument
Similar to the earlier patch that changes sk_getsockopt() to
take the sockptr_t argument . This patch also changes
do_ipv6_getsockopt() to take the sockptr_t argument such that
a latter patch can make bpf_getsockopt(SOL_IPV6) to reuse
do_ipv6_getsockopt().
Note on the change in ip6_mc_msfget(). This function is to
return an array of sockaddr_storage in optval. This function
is shared between ipv6_get_msfilter() and compat_ipv6_get_msfilter().
However, the sockaddr_storage is stored at different offset of the
optval because of the difference between group_filter and
compat_group_filter. Thus, a new 'ss_offset' argument is
added to ip6_mc_msfget().
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://lore.kernel.org/r/20220902002853.2892532-1-kafai@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'net/core/sock.c')
0 files changed, 0 insertions, 0 deletions