libosmocore/src/vty
Pau Espin c3b904a87d vty: Allow using hex representations in cmd numeric ranges
Ranges can now be specified in hexadecimal notation. In this case, only
hexadecimal values are accepted (prefixed with "0x").

In order to allow using a hexadecimal value as an input argument, the
command must specify the range in hexadecimal form.
This way all existing commands (decimal) won't get an hexadecimal value
unless they are further extended in the future, avoiding hard to notice
breakage due to use of stroul() without using base=0 or even worse,
using atoi() directly (which only understands decimal and provides no
error checking mechanism).

A command argument can be expanded to accept both decimal and hex in a
range by means of specifying both, example:
"mycmd (<0-255>|<0x0-0xff>)".

Related: OS#5631
Change-Id: Ia2b7fbbf5502c28374c21dbff548232680da27d4
2022-09-15 16:25:56 +02:00
..
Makefile.am Bump version: 1.6.0.132-0239-dirty → 1.7.0 2022-06-28 17:00:51 +02:00
buffer.c Fix/Update copyright notices; Add SPDX annotation 2017-11-13 01:35:12 +09:00
command.c vty: Allow using hex representations in cmd numeric ranges 2022-09-15 16:25:56 +02:00
cpu_sched_vty.c vty: Support platforms that don't support pthread_getname_np() 2022-03-29 12:58:01 +00:00
fsm_vty.c fsm_vty: use unsigned int when left-shifting 31 bits! 2022-05-17 09:09:19 +00:00
logging_vty.c VTY: implement 'no log gsmtap [HOSTNAME]' command 2022-01-05 09:51:34 +00:00
stats_vty.c stats: don't try to save unknown stats reporter types 2022-05-08 10:02:43 +02:00
talloc_ctx_vty.c Use internal <osmocom/core/talloc.h> everywhere 2022-04-27 12:42:15 +00:00
tdef_vty.c tests/tdef: rename the binaries to end with '_test' 2021-11-17 20:17:59 +00:00
telnet_interface.c treewide: remove FSF address 2021-12-14 12:44:03 +01:00
utils.c vty: Add a 'skip-zero' version of 'show stats' and 'show rate-counters' 2022-04-28 06:05:29 +00:00
vector.c treewide: remove FSF address 2021-12-14 12:44:03 +01:00
vty.c vty: add vty_out_uptime() print the uptime to the vty 2021-09-23 13:12:34 +02:00