mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 09:49:58 -04:00
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>
This commit is contained in:
committed by
David S. Miller
parent
6ebf71bab9
commit
c4e446bf5a
@@ -765,6 +765,7 @@ static inline bool inetdev_valid_mtu(unsigned int mtu)
|
||||
return likely(mtu >= IPV4_MIN_MTU);
|
||||
}
|
||||
|
||||
void ip_sock_set_freebind(struct sock *sk);
|
||||
void ip_sock_set_tos(struct sock *sk, int val);
|
||||
|
||||
#endif /* _IP_H */
|
||||
|
||||
Reference in New Issue
Block a user