OSDN Git Service

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)
commitb212c322c8d73c48062340dc4cbe150c4ce97fb8
tree272780e6e031ecfa31201677c4789b240646a643
parentfcfa0b09d3f794af66cf8bcee03ddb7055934742
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