diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-08-28 23:48:54 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-28 23:48:54 -0700 |
commit | df19a6267705456f463871ae2aabc44299909d2a (patch) | |
tree | 59654abf9eb5dc58c9f8773dde5738b5bcb18312 /include/net | |
parent | 5e9b2dbfcbc9b180a0064d8a473a4652ee99c9ad (diff) | |
download | kernel_samsung_espresso10-df19a6267705456f463871ae2aabc44299909d2a.zip kernel_samsung_espresso10-df19a6267705456f463871ae2aabc44299909d2a.tar.gz kernel_samsung_espresso10-df19a6267705456f463871ae2aabc44299909d2a.tar.bz2 |
tcp: keepalive cleanups
Introduce keepalive_probes(tp) helper, and use it, like
keepalive_time_when(tp) and keepalive_intvl_when(tp)
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-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 88af843..cbb2a48 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) 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; |