diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-05-12 17:19:53 +0000 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-05-12 20:22:55 +0200 |
commit | ea4647d264d45e7090f3bc2f12f209b2db7cd90b (patch) | |
tree | bb21b011d177ca3fef5e5b42ea641a371b826137 /openbsc/include/openbsc/gprs_ns.h | |
parent | 995a2d36da9d526de812461977933e3d2238030f (diff) |
NS: Make all timers configurable from VTY
Diffstat (limited to 'openbsc/include/openbsc/gprs_ns.h')
-rw-r--r-- | openbsc/include/openbsc/gprs_ns.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/gprs_ns.h b/openbsc/include/openbsc/gprs_ns.h index 60051d13b..847e8f9cc 100644 --- a/openbsc/include/openbsc/gprs_ns.h +++ b/openbsc/include/openbsc/gprs_ns.h @@ -75,7 +75,6 @@ enum ns_cause { NS_CAUSE_UNKN_IP_TEST_FAILED = 0x14, }; - /* Our Implementation */ #include <netinet/in.h> #include <osmocore/linuxlist.h> @@ -83,6 +82,25 @@ enum ns_cause { #include <osmocore/timer.h> #include <osmocore/select.h> +#define NS_TIMERS_COUNT 7 +#define NS_TIMERS "(tns-block|tns-block-retries|tns-reset|tns-reset-retries|tns-test|tns-alive|tns-alive-retries)" +#define NS_TIMERS_HELP \ + "(un)blocking Timer (Tns-block) timeout\n" \ + "(un)blocking Timer (Tns-block) number of retries\n" \ + "Reset Timer (Tns-reset) timeout\n" \ + "Reset Timer (Tns-reset) number of retries\n" \ + "Test Timer (Tns-test) timeout\n" \ + +enum ns_timeout { + NS_TOUT_TNS_BLOCK, + NS_TOUT_TNS_BLOCK_RETRIES, + NS_TOUT_TNS_RESET, + NS_TOUT_TNS_RESET_RETRIES, + NS_TOUT_TNS_TEST, + NS_TOUT_TNS_ALIVE, + NS_TOUT_TNS_ALIVE_RETRIES, +}; + #define NSE_S_BLOCKED 0x0001 #define NSE_S_ALIVE 0x0002 @@ -107,6 +125,8 @@ struct gprs_ns_inst { /* linked lists of all NSVC in this instance */ struct llist_head gprs_nsvcs; + uint16_t timeout[NS_TIMERS_COUNT]; + /* which link-layer are we based on? */ enum gprs_ns_ll ll; |