aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/vty
AgeCommit message (Collapse)AuthorFilesLines
2010-05-25Migrate VTY code to libosmovtyHarald Welte5-5601/+0
2010-05-16VTY: decouple telnet_interface from 'struct gsmnet'Harald Welte1-7/+10
We want the VTY and telnet code to be independent from the BSC application(s). As a side note, we also like to eliminate static global variables for 'struct gsm_network' all over the code. As such, telnet_init() is now passed along a "private" pointer, which getst stored in telnet_connection.priv. This telnet_connection is then stored in vty->priv, which in turn gets dereferenced if anyone needs a reference to 'struct gsm_network' from the BSC vty code. Also: * vty_init() now calls cmd_init() * the ugliness that telnet_init() calls back into the application by means of bsc_vty_init() function has been removed. * telnet_init() now returns any errors, so the main program can exit e.g. if the port is already in use.
2010-05-16VTY: remove accidentially enabled TELNET option debuggingHarald Welte1-1/+0
2010-05-16VTY: pass program name, version and copyright to vty_init()Harald Welte3-20/+19
This enables us to make the VTY completely independent of any compile-time program-specific information, i.e. one step closer to using VTY as a shared library from multiple programs.
2010-05-16VTY: remove dead codeHarald Welte1-168/+1
2010-05-16vty: use install_node_ve() instead of separate ENABLE and VIEW node installsHarald Welte1-4/+2
2010-05-14[VTY] Remove OpenBSC specific node-exit handling from src/vtyHarald Welte2-47/+6
The idea is to move the VTY code into libosmocore at some point, and for that we need to eliminate OpenBSC specifics from it
2010-05-13Add missing file vty/utils.cHarald Welte1-0/+50
2010-05-12Ensure all 'view' commands are availalbe from 'enable' tooHarald Welte1-0/+7
2010-05-12NS: Add support for persistent NS-VC configurationHarald Welte1-0/+1
With persistent NS-VC configuration (configured through VTY), we can respond properly to BSS with a somewhat strange NS implementation Such as the BSplus. It enables us to respond with a proper NS-RESET (including NSVCI/NSEI) when receiving a NS-ALIVE or other PDU for a BLOCKED/DEAD NS-VC after our end of the connection is rebooted.
2010-05-04[gpprs] Add VTY node for SGSNHarald Welte1-0/+1
2010-05-04gbproxy: add VTY nodeHarald Welte1-0/+1
2010-05-01VTY: ensure all cmd_elements are declared 'static'Harald Welte1-5/+5
While doing 'nm' on a VTY-using object file I noticed that all cmd_elements are global symbols, which is not good. Unfortuantely there are some vty-internal cmd_elements that need to span across object files, so I had to introduce gDEFUN() and gALIAS(). The old macros now all declare static structures.
2010-04-30[vty] Free the matched at the end of the routine.Holger Hans Peter Freyther1-4/+0
Remove the return from the case labels and cleanup at the end matched array at the end of the routine.
2010-04-30[vty] Plug memory leak on auto completion.Holger Hans Peter Freyther1-1/+3
I assume the original code crashed with a double free as we have a cleanup at the end of the method. Return from the routine like the case label below. This is fixing a memory leak I am experimenting.
2010-04-30[vty] Allow to create a buffer in a given context.Holger Hans Peter Freyther2-4/+4
Stop using the global vty context for all allocations and allow to embed the buffer into a given context, and allocate sub buffers with the context of its parent.
2010-04-30[vty] Move some allocations into the context of the vty.Holger Hans Peter Freyther1-5/+5
2010-04-30[vty] Remove FIXME as it appears to do the right thing.Holger Hans Peter Freyther1-2/+1
2010-04-07[mgcp] Fix navigation in the vty hierachy (make exit work)Holger Hans Peter Freyther1-0/+3
Make exit from the MGCP node work properly.
2010-03-29[misc] Remove whitespace from the end of the line.Holger Hans Peter Freyther1-1/+1
2010-03-23automatically include program version and print it from vty and --versionHarald Welte1-2/+3
2010-02-20split 'libosmocore' from openbsc codebaseHarald Welte4-4/+4
This library is intended to collect all generic/common funcitionality of all Osmocom.org projects, including OpenBSC but also OsmocomBB The library currently includes the following modules: bitvec, comp128, gsm_utils, msgb, select, signal, statistics, talloc, timer, tlv_parse, linuxlist msgb allocation error debugging had to be temporarily disabled as it depends on 'debug.c' functionality which at the moment remains in OpenBSC
2009-12-24vty: sub-divide talloc contexts and include them in talloc reportHarald Welte3-26/+32
The VTY code makes so many allocations that a full report is simply too long to provide any useful information. So we sub-divide it in multiple contexts, and report only one level deep at SIGURS1. We also introduce SIGUSR2 for the full detailed VTY report.
2009-12-17[vty] ensure we mark fd in writefd once we vty_out() somethingHarald Welte1-0/+2
2009-08-15move talloc context creation out of on_dso / constructorsHarald Welte (local)1-1/+1
the various constructors get called in a non-obvious, linker determined order, which makes certain objects disappear from the talloc report. This change moves the talloc context creation into a new talloc_ctx.c file
2009-08-12vty/command: Use CONFIGFILE_MASK as mask in chmod and not as mode.Stefan Schmidt1-1/+1
2009-08-10vty: Avoid implicit declaration warning and check result codeHolger Hans Peter Freyther1-3/+8
2009-08-10vty: Fix format string issueHolger Hans Peter Freyther1-1/+1
2009-08-10vty: Make the argument constHolger Hans Peter Freyther1-1/+1
2009-08-08the actual config file code (not just config files)Harald Welte2-89/+47
this was missing from commit a08a9acdb6bff0ee4fdf0f58b78b6525017a1f9f
2009-08-07introduce new GSMNET node for the GSM networkHarald Welte1-2/+10
2009-08-07add support for reading of configuration file to VTYHarald Welte2-5/+49
2009-08-07ensure vty code uses talloc_strdup() rather than regular strdupHarald Welte1-22/+15
2009-08-07use one talloc context for entire vty codeHarald Welte4-40/+21
2009-08-07switch vty implementation over to tallocHarald Welte4-88/+138
2009-08-06don't define zencrypt function if VTY_CRYPT is not definedHarald Welte1-0/+2
2009-08-06re-enable config file handling of vty layerHarald Welte1-9/+4
2009-07-29vty/command.c: Fix compile warning by including gsm_subsriber.hHolger Hans Peter Freyther1-0/+1
2009-06-26add FIXME about memory leak every time we close telnetHarald Welte1-0/+3
2009-06-10move openbsc into its own subdirectoryHarald Welte5-0/+5701