libosmocore/src/vty
Neels Hofmeyr 96172f0100 vty: add bind command for telnet vty line
Add VTY command
    line vty
     bind A.B.C.D

The command merely stores the configured IP-address, which can then be used by
the calling main program to set the telnet port of the VTY line. (Commits in
openbsc and osmo-iuh will follow up on this.)

Add function vty_get_bind_addr() to publish the address in the vty.h API.

Add static vty_bind_addr to store.

For allocation/freeing reasons, a NULL address defaults to 127.0.0.1.

BTW, I decided against allowing keywords 'any' and 'localhost' in place of an
actual IP address to make sure a written config is always identical to the
parsed config.
2016-02-25 11:02:34 +01:00
..
Makefile.am remove our internal copy of talloc, use system libtalloc 2015-12-05 23:38:18 +01:00
buffer.c fix FSF address in sources/headers 2015-11-12 13:46:05 +01:00
command.c vty: Don't call exit() but rather use OSMO_ASSERT() 2015-11-12 13:48:23 +01:00
logging_vty.c vty: Fix writing the logging of category 2015-03-20 15:31:30 +01:00
stats_vty.c stats: Document the level in show stats level options 2015-11-07 21:11:14 +01:00
telnet_interface.c write_queue: Use EBADF instead of EBABDFD for portability 2014-07-01 19:42:49 +02:00
utils.c stat: Explicitly support stat_items without unit 2015-12-08 10:33:04 +01:00
vector.c fix FSF address in sources/headers 2015-11-12 13:46:05 +01:00
vty.c vty: add bind command for telnet vty line 2016-02-25 11:02:34 +01:00