aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/gprs_ns.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-05-03 20:16:13 +0200
committerHarald Welte <laforge@gnumonks.org>2010-05-04 07:20:45 +0200
commit05b320a4e36fd5ea64e4362b7a497f84e1d5cff7 (patch)
tree06263d53126d5e0ba694ad5555fddebae2d5e17d /openbsc/include/openbsc/gprs_ns.h
parent96f71f28ebc169ae6ea684371b0cc1961a65189e (diff)
[gprs] NS: replace nsvc->timer_is_tns_alive with nsvc->timer_mode
This will allow to use the timer in more than 2 modes
Diffstat (limited to 'openbsc/include/openbsc/gprs_ns.h')
-rw-r--r--openbsc/include/openbsc/gprs_ns.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/openbsc/include/openbsc/gprs_ns.h b/openbsc/include/openbsc/gprs_ns.h
index 573536d11..407840491 100644
--- a/openbsc/include/openbsc/gprs_ns.h
+++ b/openbsc/include/openbsc/gprs_ns.h
@@ -118,6 +118,14 @@ struct gprs_ns_inst {
};
};
+enum nsvc_timer_mode {
+ /* standard timers */
+ NSVC_TIMER_TNS_TEST,
+ NSVC_TIMER_TNS_ALIVE,
+ /* custom timer */
+ NSVC_TIMER_RESET,
+};
+
struct gprs_nsvc {
struct llist_head list;
struct gprs_ns_inst *nsi;
@@ -128,8 +136,8 @@ struct gprs_nsvc {
uint32_t state;
uint32_t remote_state;
- struct timer_list alive_timer;
- int timer_is_tns_alive;
+ struct timer_list timer;
+ enum nsvc_timer_mode timer_mode;
int alive_retries;
int remote_end_is_sgsn;