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