aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-05-14 02:35:51 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-05-14 02:35:51 +0800
commit5d645bf984bedec2a2d1c57b33b8893c2e34cbcf (patch)
tree0a7a48764e49e855c815a3b646e0bf7f714026af /openbsc
parent723fb87a6cad72c05fbbbf6a0a5329b9cc77de23 (diff)
[nat] Remove range checks inside the VTY command.
The ranges are enforced by the VTY code.
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/nat/bsc_nat_vty.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/openbsc/src/nat/bsc_nat_vty.c b/openbsc/src/nat/bsc_nat_vty.c
index 79b784998..696a47c1e 100644
--- a/openbsc/src/nat/bsc_nat_vty.c
+++ b/openbsc/src/nat/bsc_nat_vty.c
@@ -346,12 +346,6 @@ DEFUN(cfg_bsc_lac, cfg_bsc_lac_cmd, "location_area_code <0-65535>",
int lac = atoi(argv[0]);
- if (lac < 0 || lac > 0xffff) {
- vty_out(vty, "%% LAC %d is not in the valid range (0-65535)%s",
- lac, VTY_NEWLINE);
- return CMD_WARNING;
- }
-
if (lac == GSM_LAC_RESERVED_DETACHED || lac == GSM_LAC_RESERVED_ALL_BTS) {
vty_out(vty, "%% LAC %d is reserved by GSM 04.08%s",
lac, VTY_NEWLINE);