Hello,
this patchset adds an SNMP-like control interface to OpenBSC. Currently you can
set and get variables. This interface is enabled in osmo-bsc, osmo-bsc_nat, and
in osmo-nitb. It currently supports querying the counters and rate counters,
setting and querying the rf_locked status, and geographical location.
In osmo-bsc_nat forwarding is implemented to set/query stuff in the actual
osmo-bsc.
The patches are located in the daniel/controlif branch. Please merge them if you
feel they are ready or point me to the problems.
Regards
Daniel Willmann (10):
Add documentation for the control interface protocol
Add example to communicate through the control interface
Add libctrl, an SNMP-like control interface
libctrl: Add macros to help define commands
libctrl: Add commands to query counters and rate_cntr
bsc_hack: Use libctrl, listen on port 4249
osmo_bsc: Use libctrl, handle ctrl cmds on port 4249 or from the nat
osmo_bsc: Add some libctrl commands
libctrl: Add ctrl_cmd_cpy() to copy a command
nat: Use libctrl and add command forwarding to osmo-bsc
openbsc/configure.in | 1 +
openbsc/contrib/bsc_control.py | 100 +++++
openbsc/doc/control-interface.txt | 21 +
openbsc/include/openbsc/bsc_nat.h | 22 +
openbsc/include/openbsc/control_cmd.h | 151 +++++++
openbsc/src/Makefile.am | 2 +-
openbsc/src/libctrl/Makefile.am | 7 +
openbsc/src/libctrl/control_cmd.c | 479 +++++++++++++++++++++++
openbsc/src/libctrl/control_if.c | 627 ++++++++++++++++++++++++++++++
openbsc/src/osmo-bsc/Makefile.am | 1 +
openbsc/src/osmo-bsc/osmo_bsc_main.c | 167 ++++++++
openbsc/src/osmo-bsc/osmo_bsc_msc.c | 34 ++
openbsc/src/osmo-bsc_nat/Makefile.am | 1 +
openbsc/src/osmo-bsc_nat/bsc_nat.c | 279 +++++++++++++
openbsc/src/osmo-bsc_nat/bsc_nat_utils.c | 1 +
openbsc/src/osmo-nitb/Makefile.am | 3 +-
openbsc/src/osmo-nitb/bsc_hack.c | 3 +
17 files changed, 1897 insertions(+), 2 deletions(-)
create mode 100755 openbsc/contrib/bsc_control.py
create mode 100644 openbsc/doc/control-interface.txt
create mode 100644 openbsc/include/openbsc/control_cmd.h
create mode 100644 openbsc/src/libctrl/Makefile.am
create mode 100644 openbsc/src/libctrl/control_cmd.c
create mode 100644 openbsc/src/libctrl/control_if.c
--
1.7.5.rc3