ipv4: add ip_sock_set_freebind
authorChristoph Hellwig <hch@lst.de>
Thu, 28 May 2020 05:12:27 +0000 (07:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 May 2020 18:11:45 +0000 (11:11 -0700)
commitc4e446bf5a06a1db24b4f0115a89f0380a495c62
treea559ebc107bcfa1200b5f6120c99f9ce1163ad3d
parent6ebf71bab9fb476fc8132be4c12b88201278f0ca
ipv4: add ip_sock_set_freebind

Add a helper to directly set the IP_FREEBIND 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>
drivers/target/iscsi/iscsi_target_login.c
include/net/ip.h
net/ipv4/ip_sockglue.c