Add a helper to directly set the TCP_KEEPINTVL sockopt from kernel space without going through a fake uaccess.
Showing the changes to include/linux (1 of 4 files). Show all
Unified · Split
| @@ -499,6 +499,7 @@ int tcp_skb_shift(struct sk_buff *to, struct sk_buff *from, int pcount, · 498 unmodified lines | |||
| 499 | 499 | ||
| 500 | void tcp_sock_set_cork(struct sock *sk, bool on); | 500 | void tcp_sock_set_cork(struct sock *sk, bool on); |
| 501 | int tcp_sock_set_keepidle(struct sock *sk, int val); | 501 | int tcp_sock_set_keepidle(struct sock *sk, int val); |
| 502 | int tcp_sock_set_keepintvl(struct sock *sk, int val); | ||
| 502 | void tcp_sock_set_nodelay(struct sock *sk); | 503 | void tcp_sock_set_nodelay(struct sock *sk); |
| 503 | void tcp_sock_set_quickack(struct sock *sk, int val); | 504 | void tcp_sock_set_quickack(struct sock *sk, int val); |
| 504 | int tcp_sock_set_syncnt(struct sock *sk, int val); | 505 | int tcp_sock_set_syncnt(struct sock *sk, int val); |