tcp: add tcp_sock_set_keepidle
Add a helper to directly set the TCP_KEEP_IDLE 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
c488aeadcb
commit
71c48eb81c
@@ -498,6 +498,7 @@ int tcp_skb_shift(struct sk_buff *to, struct sk_buff *from, int pcount,
|
||||
int shiftlen);
|
||||
|
||||
void tcp_sock_set_cork(struct sock *sk, bool on);
|
||||
int tcp_sock_set_keepidle(struct sock *sk, int val);
|
||||
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);
|
||||
|
Reference in New Issue
Block a user