ipv6: add ip6_sock_set_v6only
authorChristoph Hellwig <hch@lst.de>
Thu, 28 May 2020 05:12:31 +0000 (07:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 May 2020 18:11:45 +0000 (11:11 -0700)
commit9b115749acb24d11083ded4fe947ddd654a940e3
tree8667571df0465bf10b1d72a641df77ac916dd773
parentc1f9ec5776dd05eaf62cf6788ecdfc905dc8ec2b
ipv6: add ip6_sock_set_v6only

Add a helper to directly set the IPV6_V6ONLY sockopt from kernel space
without going through a fake uaccess.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ipv6.h
net/ipv6/ip6_udp_tunnel.c
net/sunrpc/svcsock.c