]> git.baikalelectronics.ru Git - kernel.git/commit
handle the group_source_req options directly
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 27 Apr 2020 15:37:02 +0000 (11:37 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 21 May 2020 00:31:32 +0000 (20:31 -0400)
commitbe478131f80fc2b9538dc6c8c6b8f07e0820f301
tree272780e6e031ecfa31201677c4789b240646a643
parentf7f4c37c0e6d9c6eec9ab6cbed306b017ac487fe
handle the group_source_req options directly

Native ->setsockopt() handling of these options (MCAST_..._SOURCE_GROUP
and MCAST_{,UN}BLOCK_SOURCE) consists of copyin + call of a helper that
does the actual work.  The only change needed for ->compat_setsockopt()
is a slightly different copyin - the helpers can be reused as-is.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
net/ipv4/ip_sockglue.c
net/ipv6/ipv6_sockglue.c