aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-bsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-09-30 16:43:30 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-10-02 12:08:29 +0200
commit47c624b561b18953e31be30fa12ef53bca3d8142 (patch)
tree8a6c47845b38999190c9f3297363121246153b2f /openbsc/src/osmo-bsc
parentf8070f4793a748cad6deefeb1e38fe7f8a193293 (diff)
bsc: Let the VTY verify that the timeout is a number
Before the old code allowed to specify "timeout-ping bla" which would be parsed as '0' which would trigger a flood of pings. Use the VTY code to parse it as a number.
Diffstat (limited to 'openbsc/src/osmo-bsc')
-rw-r--r--openbsc/src/osmo-bsc/osmo_bsc_vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_vty.c b/openbsc/src/osmo-bsc/osmo_bsc_vty.c
index b1d09f35d..ed4b05e93 100644
--- a/openbsc/src/osmo-bsc/osmo_bsc_vty.c
+++ b/openbsc/src/osmo-bsc/osmo_bsc_vty.c
@@ -357,7 +357,7 @@ DEFUN(cfg_net_msc_no_dest,
DEFUN(cfg_net_msc_ping_time,
cfg_net_msc_ping_time_cmd,
- "timeout-ping NR",
+ "timeout-ping <1-2147483647>",
"Set the PING interval, negative for not sending PING\n"
"Timeout in seconds\n")
{
@@ -368,7 +368,7 @@ DEFUN(cfg_net_msc_ping_time,
DEFUN(cfg_net_msc_pong_time,
cfg_net_msc_pong_time_cmd,
- "timeout-pong NR",
+ "timeout-pong <1-2147483647>",
"Set the time to wait for a PONG\n" "Timeout in seconds\n")
{
struct osmo_msc_data *data = osmo_msc_data(vty);