]> 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)
commite43410c37cdb1b7086ea4d489804c3f32651394c
tree70ec43dbef51bfe6b0b7799abbc866dcb11cbcca
parent029fc5a6acb55a6cacbc0e67b40232b93fa8d41b
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