History

tcp: add tcp_sock_set_keepintvl

Add a helper to directly set the TCP_KEEPINTVL sockopt from kernel space without going through a fake uaccess.

Christoph Hellwig committed 6 years ago

Commit d41ecaa1 parent 71c48eb4 files · +15 −5Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/tcp.h+1−0
@@ -499,6 +499,7 @@ int tcp_skb_shift(struct sk_buff *to, struct sk_buff *from, int pcount, · 498 unmodified lines
499 499
500void tcp_sock_set_cork(struct sock *sk, bool on);500void tcp_sock_set_cork(struct sock *sk, bool on);
501int tcp_sock_set_keepidle(struct sock *sk, int val);501int tcp_sock_set_keepidle(struct sock *sk, int val);
502int tcp_sock_set_keepintvl(struct sock *sk, int val);
502void tcp_sock_set_nodelay(struct sock *sk);503void tcp_sock_set_nodelay(struct sock *sk);
503void tcp_sock_set_quickack(struct sock *sk, int val);504void tcp_sock_set_quickack(struct sock *sk, int val);
504int tcp_sock_set_syncnt(struct sock *sk, int val);505int tcp_sock_set_syncnt(struct sock *sk, int val);