Change in libosmocore[master]: gprs_ns2_vc_fsm: reset the alive elapsed timeout everytime

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

lynxis lazus gerrit-no-reply at lists.osmocom.org
Fri Feb 12 01:58:27 UTC 2021


lynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/22870 )


Change subject: gprs_ns2_vc_fsm: reset the alive elapsed timeout everytime
......................................................................

gprs_ns2_vc_fsm: reset the alive elapsed timeout everytime

The alive elapsed timeout was only set it once on the start of the
test procedure but not every time an ALIVE PDU was sent.

Change-Id: I029696dfff21919f97ac4c33cdd82162b5ab1555
---
M src/gb/gprs_ns2_vc_fsm.c
1 file changed, 1 insertion(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/70/22870/1

diff --git a/src/gb/gprs_ns2_vc_fsm.c b/src/gb/gprs_ns2_vc_fsm.c
index 88ce8ae..31cfb51 100644
--- a/src/gb/gprs_ns2_vc_fsm.c
+++ b/src/gb/gprs_ns2_vc_fsm.c
@@ -205,6 +205,7 @@
 	case NS_TOUT_TNS_TEST:
 		priv->alive.mode = NS_TOUT_TNS_ALIVE;
 		priv->alive.N = 0;
+		osmo_clock_gettime(CLOCK_MONOTONIC, &priv->alive.timer_started);
 		ns2_tx_alive(priv->nsvc);
 		osmo_timer_schedule(&priv->alive.timer, nsi->timeout[NS_TOUT_TNS_ALIVE], 0);
 		break;

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/22870
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I029696dfff21919f97ac4c33cdd82162b5ab1555
Gerrit-Change-Number: 22870
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210212/49f89a57/attachment.htm>


More information about the gerrit-log mailing list