aboutsummaryrefslogtreecommitdiff
path: root/slirp/tcp_input.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2018-11-14 16:36:28 +0400
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2019-01-14 00:43:30 +0100
commit987d3a51d56530a298ab343a6aefe340c4495422 (patch)
tree06b7ab66c3b7ccafa8ac8e9803adbcf7f561be16 /slirp/tcp_input.c
parent0826c2400d98a0c35dc4d223e6833b3e2f6d929e (diff)
downloadqemu-987d3a51d56530a298ab343a6aefe340c4495422.zip
qemu-987d3a51d56530a298ab343a6aefe340c4495422.tar.gz
qemu-987d3a51d56530a298ab343a6aefe340c4495422.tar.bz2
slirp: replace compile time DO_KEEPALIVE
Use a global variable instead (similar to slirp_debug) Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'slirp/tcp_input.c')
-rw-r--r--slirp/tcp_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/slirp/tcp_input.c b/slirp/tcp_input.c
index 09bdf9b..6af6346 100644
--- a/slirp/tcp_input.c
+++ b/slirp/tcp_input.c
@@ -481,7 +481,7 @@ findso:
* Reset idle time and keep-alive timer.
*/
tp->t_idle = 0;
- if (SO_OPTIONS)
+ if (slirp_do_keepalive)
tp->t_timer[TCPT_KEEP] = TCPTV_KEEPINTVL;
else
tp->t_timer[TCPT_KEEP] = TCPTV_KEEP_IDLE;