diff options
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r-- | include/net/tcp.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index 88af84306471..cbb2a4889fc9 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -1007,6 +1007,11 @@ static inline int keepalive_time_when(const struct tcp_sock *tp) | |||
1007 | return tp->keepalive_time ? : sysctl_tcp_keepalive_time; | 1007 | return tp->keepalive_time ? : sysctl_tcp_keepalive_time; |
1008 | } | 1008 | } |
1009 | 1009 | ||
1010 | static inline int keepalive_probes(const struct tcp_sock *tp) | ||
1011 | { | ||
1012 | return tp->keepalive_probes ? : sysctl_tcp_keepalive_probes; | ||
1013 | } | ||
1014 | |||
1010 | static inline int tcp_fin_time(const struct sock *sk) | 1015 | static inline int tcp_fin_time(const struct sock *sk) |
1011 | { | 1016 | { |
1012 | int fin_timeout = tcp_sk(sk)->linger2 ? : sysctl_tcp_fin_timeout; | 1017 | int fin_timeout = tcp_sk(sk)->linger2 ? : sysctl_tcp_fin_timeout; |