e1_input: enable tcp keepalive by default
Set the keepalive parameters to E1INP_USE_DEFAULT initially instead
of 0. Do this independent of the driver (the only driver making use of
this is ipaccess).
Closes: OS#5785
Change-Id: Ia7659c209aea0d26eb37d31e771adc91b17ae668
diff --git a/src/e1_input_vty.c b/src/e1_input_vty.c
index af30ed9..f6781d1 100644
--- a/src/e1_input_vty.c
+++ b/src/e1_input_vty.c
@@ -379,12 +379,9 @@
if (!line->keepalive_num_probes)
vty_out(vty, " no e1_line %u keepalive%s", line->num,
VTY_NEWLINE);
- else if (line->keepalive_idle_timeout == E1INP_USE_DEFAULT &&
- line->keepalive_num_probes == E1INP_USE_DEFAULT &&
- line->keepalive_probe_interval == E1INP_USE_DEFAULT)
- vty_out(vty, " e1_line %u keepalive%s", line->num,
- VTY_NEWLINE);
- else
+ else if (line->keepalive_idle_timeout != E1INP_USE_DEFAULT ||
+ line->keepalive_num_probes != E1INP_USE_DEFAULT ||
+ line->keepalive_probe_interval != E1INP_USE_DEFAULT)
vty_out(vty, " e1_line %u keepalive %d %d %d%s",
line->num,
line->keepalive_idle_timeout,