uqmid: osmocom/fsm: add member N
authorAlexander Couzens <[email protected]>
Thu, 6 Feb 2025 17:28:27 +0000 (18:28 +0100)
committerDavid Bauer <[email protected]>
Sat, 31 May 2025 20:41:00 +0000 (22:41 +0200)
The N variable counts how often a timer timed out.
It is used in many 3gpp specs to trigger a failure case
when 3x times the timer timed out.

Signed-off-by: Alexander Couzens <[email protected]>
uqmid/osmocom/fsm.h

index a4ca562ba8c11a9238cfb491781f21503d466963..2fcdb8637c934b56a6d791bba25ce4ac022cef7d 100644 (file)
@@ -102,6 +102,8 @@ struct osmo_fsm_inst {
 
        /*! timer number for states with time-out */
        int T;
+       /*! number for time the timer timed out */
+       int N;
        /*! timer back-end for states with time-out */
        struct osmo_timer_list timer;