tcp: keepalive cleanups
[firefly-linux-kernel-4.4.55.git] / include / net / tcp.h
index 88af843064710bf43e25cb6932aa40479c19e07e..cbb2a4889fc95b572737f79c819007a3cb32ae68 100644 (file)
@@ -1007,6 +1007,11 @@ static inline int keepalive_time_when(const struct tcp_sock *tp)
        return tp->keepalive_time ? : sysctl_tcp_keepalive_time;
 }
 
+static inline int keepalive_probes(const struct tcp_sock *tp)
+{
+       return tp->keepalive_probes ? : sysctl_tcp_keepalive_probes;
+}
+
 static inline int tcp_fin_time(const struct sock *sk)
 {
        int fin_timeout = tcp_sk(sk)->linger2 ? : sysctl_tcp_fin_timeout;