net: add sock_bindtoindex
authorChristoph Hellwig <hch@lst.de>
Thu, 28 May 2020 05:12:13 +0000 (07:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 May 2020 18:11:44 +0000 (11:11 -0700)
commit7594888c782e735f8a7b110094307a4dbe7b3f03
tree70ec43dbef51bfe6b0b7799abbc866dcb11cbcca
parent76ee0785f42afbc0418072b7179d95f450d3c9a8
net: add sock_bindtoindex

Add a helper to directly set the SO_BINDTOIFINDEX 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/sock.h
net/core/sock.c
net/ipv4/udp_tunnel.c
net/ipv6/ip6_udp_tunnel.c