aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/vty_interface.c
AgeCommit message (Collapse)AuthorFilesLines
2010-05-16VTY: rename vty_interface.c to bsc_vty.cHarald Welte1-2116/+0
This should reflect the fact that it contains BSC-specific VTY commands.
2010-05-16VTY: Move BSC specific openbsc_vty_print_statistics() to vty_interface.cHarald Welte1-0/+17
2010-05-16VTY: decouple telnet_interface from 'struct gsmnet'Harald Welte1-17/+47
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: pass program name, version and copyright to vty_init()Harald Welte1-1/+4
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-14VTY: More interactive helpHarald Welte1-3/+17
2010-05-14[VTY] Introduce "end" command that works from any level in configHarald Welte1-0/+4
Using "end" you can always return to the "enable" level, and from there the "show" commands are available. So no more need for exit/exit/exit/exit/disable.
2010-05-14[BSC] ARFCN 0 is legal in E-GSMHarald Welte1-1/+1
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-05-14VTY: Introduce common code to add 'description' to objects like BTSHarald Welte1-0/+15
There is now an option to add a human-readable description to objects that are configured in the VTY.
2010-05-14[vty] Add power measurements to the one line summary.Holger Hans Peter Freyther1-1/+13
2010-05-14[vty] Add a one line show lchan summary command.Holger Hans Peter Freyther1-0/+19
2010-05-14[vty] Move "show lchan" into a parameterized methodHolger Hans Peter Freyther1-9/+17
I want to have a shorter lchan summary but with the same config parameters. Change the current code to be a method that takes a dump routine as parameter.
2010-05-14[vty] Remove unfinished code from the VTY...Holger Hans Peter Freyther1-27/+0
2010-05-14rach: Allow to set the emergency call bitHolger Hans Peter Freyther1-0/+17
Add the rach emergency call allowed (0|1) setting and implement it by directly manipulating the t2 value. It is the third bit which is set to 0 when emergency calls are enabled and to one if it is only enabled for access classes 11 to 15.
2010-05-12Fix missing #include preventing compilation of vty_interface.cHarald Welte1-0/+1
2010-05-12NS: Make all timers configurable from VTYHarald Welte1-10/+3
2010-05-12Ensure all 'view' commands are availalbe from 'enable' tooHarald Welte1-9/+9
2010-05-11[gprs] NS/BSSGP: Make all timers configurable from VTYHarald Welte1-26/+125
2010-05-11VTY: More context sensitive help messagesHarald Welte1-16/+87
2010-04-25[vty] Allow to set the RACH NM attributes on a per BTS basisHolger Hans Peter Freyther1-0/+29
Be able to tune the RACH settings of the BTS via the vty interface, by default they are initialized to -1 which means we will use the content of the static array (BTS default) and can be changed via the VTY interface. I have verified the setting on the nanoBTS with wireshark and I have tested writing the config file.
2010-04-18GPRS: change 'gprs enabled <0-1>' to 'gprs mode (none|gprs|egprs)'Harald Welte1-14/+15
This causes some config file breakage but sounds like a much cleaner approach than to have two separate config variables for this.
2010-04-18GPRS: BVCI 0 and 1 are not permitted.Harald Welte1-1/+1
According to TS 08.18, BVCI=0 is for the SIGNALLING entity, and BVCI=1 is for the PTM entity. Both should not be used by the PTP entity that we're configuring here.
2010-04-18BVCI 0 is not within the permitted rangeHarald Welte1-1/+1
2010-04-17Add rf_locked to the configuration writing.Holger Hans Peter Freyther1-0/+3
2010-04-15[vty] Separate BSC and MSC statistics. Make it easy to print them.Holger Hans Peter Freyther1-41/+0
Move the statistics command into the MSC part and move the BSC statistics printing into a subroutine.
2010-04-10[vty] Remove unused variables due them only being used in the layer3Holger Hans Peter Freyther1-4/+0
I moved the extra code to the layer3 VTY implementation but didn't remove the variables while doign so, silent compiler warnings.
2010-04-10[vty] Forward declare the extra init function the base is callingHolger Hans Peter Freyther1-0/+2
2010-04-07vty: Fix the byteorder... of the bound_ipHolger Hans Peter Freyther1-1/+1
We are storing the bound_ip in host byteorder but when using ntohl we need to convert it back to to network byte order.
2010-04-06[vty] Move the VTY logging commands to a new fileHolger Hans Peter Freyther1-207/+2
Currently vty_interface.c is used for the BSC config, in case of the MGCP Gateway or the BSC Nat process these logging commands are not available. Move the commands to a new vty_interface_cmds.c file to allow to share basic commands across different programs.
2010-03-29[misc] Remove whitespace from the end of the line.Holger Hans Peter Freyther1-5/+5
2010-03-26move log/debug codebase to libosmocoreHarald Welte1-16/+16
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-25lchan: Create a structure for MSC data of the lchanHolger Hans Peter Freyther1-3/+3
Prepare to split the BSC and the MSC part by putting the MSC data for a connection into a "gsm_subscriber_connection" struct and renaming the macros.
2010-03-22GPRS: make NSEI configurable from VTYHarald Welte1-0/+20
2010-03-22GPRS: don't allow VTY configuration of GPRS parameters if GPRS inactiveHarald Welte1-0/+30
2010-03-22GPRS: make NSVC parameters VTY-configurableHarald Welte1-8/+77
2010-03-22Create new gprs-conf branch with the non-SGSN part of the gprs branchHarald Welte1-1/+44
This new gprs-conf branch is intended to contain everything needed to configure GPRS in the nanoBTS, but without implementing the SGSN/GGSN functionality. The SGSN/GGSN development will happen in a branch based on this branch called "gprs-sgsn"
2010-02-20split 'libosmocore' from openbsc codebaseHarald Welte1-3/+3
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-14[vty_interface.c]: Warn if no BTS could be allocatedDaniel Willmann1-1/+4
2010-01-10[OML] parse attributes depending on BTS typeHarald Welte1-1/+4
Some NM attributes are defined differently depending on the BTS type. Having one big nm_att_tlvdef[] table for all BTS types is no longer sufficient. This patch * introduces 'struct gsm_bts_model' to describe a BTS model * adds definitions of gsm_bts_model for BS-11 and nanoBTS * changes the abis_nm_tlv_parse() function: include a bts pointer
2010-01-07[vty] In case of handover only warn about the proxy mode when it is enabledHolger Hans Peter Freyther1-2/+4
Do not warn if the user has put "handover 0" in his configuration as this will not enable handover, only warn if it is going to be enabled.
2010-01-06[vty] Move db usage out of the libbsc (fork dumping of subscr) (2nd part)Holger Hans Peter Freyther1-26/+0
Follow up on 424c4f0e2927d5a7538b31c69113c6e4f861d2c9. As pointed out by Sylvain on the mailinglist I need to remove this here as well. Do not call db.c code from code that is located in libbsc.a
2010-01-06[vty] Move db usage out of the libbsc (fork dumping of subscr)Holger Hans Peter Freyther1-1/+1
vty_interface.c is part of libbsc.a but it started to use code which is found in db.c recently. Fork the subscriber dumping and provide more information on the layer3+ (MSC) commands. This is restoring the separation again.
2010-01-03vty: dump subscriber authentication (a3/a8) infos if availableSylvain Munaut1-0/+31
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03vty: Register logging_set_log_level_cmdSylvain Munaut1-0/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-29Introduce gsm_lchans_name() for human readable lchan state nameHarald Welte1-1/+2
Also, use this new function to dump lchan state on VTY and to improve readability of RSL log messages.
2009-12-28vty: replace'logging level' numeric value with human readable stringHarald Welte (local)1-2/+10
2009-12-28set the TRX nominal power by default and/or VTYHarald Welte (local)1-6/+15
2009-12-28rename gsm_lchan_name() to gsm_lchant_name()Harald Welte (local)1-1/+1
2009-12-26[debug] add new 'logging level' command to set loglevel more user friendlyHarald Welte (local)1-2/+29
2009-12-22Import the new logging architectureHolger Hans Peter Freyther1-0/+173
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