aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/vty_interface.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-05-12 17:19:53 +0000
committerHarald Welte <laforge@gnumonks.org>2010-05-12 20:22:55 +0200
commitea4647d264d45e7090f3bc2f12f209b2db7cd90b (patch)
treebb21b011d177ca3fef5e5b42ea641a371b826137 /openbsc/src/vty_interface.c
parent995a2d36da9d526de812461977933e3d2238030f (diff)
NS: Make all timers configurable from VTY
Diffstat (limited to 'openbsc/src/vty_interface.c')
-rw-r--r--openbsc/src/vty_interface.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/openbsc/src/vty_interface.c b/openbsc/src/vty_interface.c
index acfdd94de..70d2997b2 100644
--- a/openbsc/src/vty_interface.c
+++ b/openbsc/src/vty_interface.c
@@ -42,7 +42,8 @@
static struct gsm_network *gsmnet;
-static struct value_string gprs_ns_timer_strs[] = {
+/* FIXME: this should go to some common file */
+static const struct value_string gprs_ns_timer_strs[] = {
{ 0, "tns-block" },
{ 1, "tns-block-retries" },
{ 2, "tns-reset" },
@@ -53,7 +54,7 @@ static struct value_string gprs_ns_timer_strs[] = {
{ 0, NULL }
};
-static struct value_string gprs_bssgp_cfg_strs[] = {
+static const struct value_string gprs_bssgp_cfg_strs[] = {
{ 0, "blocking-timer" },
{ 1, "blocking-retries" },
{ 2, "unblocking-retries" },
@@ -1626,14 +1627,6 @@ DEFUN(cfg_bts_gprs_nsvc_rip, cfg_bts_gprs_nsvc_rip_cmd,
return CMD_SUCCESS;
}
-#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" \
-
DEFUN(cfg_bts_gprs_ns_timer, cfg_bts_gprs_ns_timer_cmd,
"gprs ns timer " NS_TIMERS " <0-255>",
GPRS_TEXT "Network Service\n"