aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/telnet_interface.c
AgeCommit message (Collapse)AuthorFilesLines
2010-05-25Migrate VTY code to libosmovtyHarald Welte1-203/+0
2010-05-16VTY: decouple telnet_interface from 'struct gsmnet'Harald Welte1-28/+26
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-16telnet: cosmetic coding style changesHarald Welte1-4/+8
2010-05-16telnet: remove dead codeHarald Welte1-7/+0
2010-05-16VTY: pass program name, version and copyright to vty_init()Harald Welte1-1/+0
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-03-26move log/debug codebase to libosmocoreHarald Welte1-1/+1
The logging/debugging code is generic enough to move it into libosmocore while keeping OpenBSC specific definitions in openbsc itself. This commit uses the logging support present in libosmocore-0.1.2, you will have to update your library to this version.
2010-03-23automatically include program version and print it from vty and --versionHarald Welte1-10/+5
2010-02-20split 'libosmocore' from openbsc codebaseHarald Welte1-2/+2
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
2010-01-12update copyright statementsHarald Welte1-2/+2
* include 2010 * add Andreas Eversberg and Sylvain
2009-12-22Import the new logging architectureHolger Hans Peter Freyther1-0/+6
This is the new logging architecture, including * support for multiuple logging targets like stderr and vty * log levels in addition to categories/subsystems * filtering based on imsi, i.e. only see events for one subscriber * dynamically change log level for each category for each vty
2009-12-21it's LOGL_ERROR, not LOG_ERRORHarald Welte1-2/+2
2009-12-17logging: introduce log levels at caller siteHarald Welte1-5/+8
This introduces a new LOGP() macro together with LOGL_* definition to support multiple log levels (severities) throughout the codebase. Please note that the actual logging system does not use them yet, in this patch we simply introduce the new macros at the caller site.
2009-11-17[telnet] Remove unused variables from the telnet interfaceHolger Hans Peter Freyther1-1/+0
These became unused when the interface was switched to use the vty module. It is about time to remove these.
2009-08-20[cleanup] Remove old and dead code from the telnet_interface.cHolger Hans Peter Freyther1-47/+0
2009-08-07telnet: deal gracefully with vty being closed by vty layerHarald Welte1-0/+12
also: ignore vty's that are not terminals (e.g. VTY_FILE)
2009-06-26use taloc_zero() rather than talloc() and explisit memset()Harald Welte1-2/+1
2009-06-22fix various talloc / dynamic bts/trx related bugsHarald Welte1-1/+1
Prior to this patch, nanobts was not able to operate after recent changes
2009-06-20introduce talloc all over OpenBSCHarald Welte1-1/+7
2009-06-10move openbsc into its own subdirectoryHarald Welte1-0/+236