diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-05-14 02:35:51 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-15 20:24:18 +0800 |
commit | c89c030b100fc715adb529d2c47fc9d0ff10ba73 (patch) | |
tree | 800b6d7503ceddfaa33894b826a076f4e7986681 | |
parent | 2f2d3428d94aa32bea30c4134bb7bc5c094f9855 (diff) |
[nat] Remove range checks inside the VTY command.
The ranges are enforced by the VTY code.
-rw-r--r-- | openbsc/src/nat/bsc_nat_vty.c | 6 |
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); |