libosmocore/include/osmocom/vty
Neels Hofmeyr f81eb328b6 vty: add ctrl section for Control interface bind address
This may seem like overkill for a mere const char * config item, but it makes
the Control interface VTY commands reusable in any main() scope (inspired by
libosmo-abis' VTY config).

Add API functions ctrl_vty_init() and ctrl_vty_get_bind_addr(), in new files
src/ctrl/control_vty.c and include/osmocom/ctrl/control_vty.h, compiled and/or
installed dependent on ENABLE_VTY.

Using these functions allows configuring a static const char* with the VTY
commands

    ctrl
     bind A.B.C.D

which callers shall subsequently use to bind the Control interface to a
specific local interface address, by passing the return value of
ctrl_vty_get_bind_addr() to control_interface_setup().

Add CTRL_NODE to enum node_type, "eating" RESERVED4_NODE to heed that comment
on avoiding ABI changes.
2016-02-25 11:02:35 +01:00
..
buffer.h fix FSF address in sources/headers 2015-11-12 13:46:05 +01:00
command.h vty: add ctrl section for Control interface bind address 2016-02-25 11:02:35 +01:00
logging.h include: Switch to #pragma once pattern 2014-06-16 10:17:27 +02:00
misc.h stats/vty: Add selective show stats command 2015-08-22 01:47:55 +00:00
ports.h Add CSCN ctrl port defs 2016-02-15 12:02:02 +01:00
stats.h stats: Add osmo_ name prefix to identifiers 2015-11-02 15:39:01 +01:00
telnet_interface.h include: Switch to #pragma once pattern 2014-06-16 10:17:27 +02:00
vector.h fix FSF address in sources/headers 2015-11-12 13:46:05 +01:00
vty.h vty: add bind command for telnet vty line 2016-02-25 11:02:34 +01:00