tcp: add tcp_sock_set_user_timeout
Add a helper to directly set the TCP_USER_TIMEOUT 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
557eadfcc5
commit
c488aeadcb
@@ -501,5 +501,6 @@ void tcp_sock_set_cork(struct sock *sk, bool on);
|
||||
void tcp_sock_set_nodelay(struct sock *sk);
|
||||
void tcp_sock_set_quickack(struct sock *sk, int val);
|
||||
int tcp_sock_set_syncnt(struct sock *sk, int val);
|
||||
void tcp_sock_set_user_timeout(struct sock *sk, u32 val);
|
||||
|
||||
#endif /* _LINUX_TCP_H */
|
||||
|
Reference in New Issue
Block a user