aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/vty/vty.c
AgeCommit message (Collapse)AuthorFilesLines
2010-05-25Migrate VTY code to libosmovtyHarald Welte1-1685/+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 Welte1-2/+8
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: 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 Welte1-0/+4
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-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 Freyther1-1/+1
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-03-29[misc] Remove whitespace from the end of the line.Holger Hans Peter Freyther1-1/+1
2010-02-20split 'libosmocore' from openbsc codebaseHarald Welte1-1/+1
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 Welte1-0/+2
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-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-08the actual config file code (not just config files)Harald Welte1-31/+1
this was missing from commit a08a9acdb6bff0ee4fdf0f58b78b6525017a1f9f
2009-08-07add support for reading of configuration file to VTYHarald Welte1-2/+47
2009-08-07use one talloc context for entire vty codeHarald Welte1-3/+4
2009-08-07switch vty implementation over to tallocHarald Welte1-25/+41
2009-06-26add FIXME about memory leak every time we close telnetHarald Welte1-0/+3
2009-06-10move openbsc into its own subdirectoryHarald Welte1-0/+1634