]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc4a801c28699480eca2fc00b562c0651c4c067bb
tree70ec43dbef51bfe6b0b7799abbc866dcb11cbcca
parent091af9c6bbeee3ce4c43d792ade180d1754425ae
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