aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libbsc/bsc_vty.c
AgeCommit message (Collapse)AuthorFilesLines
2012-10-18Allow setting of Control Channel Description parameters via VTYAndreas Eversberg1-0/+59
2012-08-17VTY: improve VTY prompt and make sure exit/end works everywhereHarald Welte1-4/+4
Some nodes below 'config' didn't have ournode_exit / ournode_end, and thus were not able to properly perform this function. exit should always only go back one level, while end drops us back to ENABLE_NODE. The prompt now represents the nesting level, and there's one consistent space after the final prompt character (typically #).
2012-08-17VTY: dynamically create BTS "type" command syntaxHarald Welte1-1/+13
2012-08-17BSC VTY: use numeric ranges for bts/trx/timeslot numbersHarald Welte1-8/+8
This effectively limits the number of BTSs to 256, but I think that's acceptable for now. Unfortuantely there's no decent way to dynamically update the valid number range depending on how many BTSs are actually configured in the system :/
2012-08-17dynamically generate a proper VTY reference for phys_chan_configHarald Welte1-0/+34
this uses vty_cmd_string_from_valstr() from _very_ recent libosmocore, so you have to update the library, sorry.
2012-08-17... and more VTY help fixesHarald Welte1-4/+7
2012-08-17Some more VTY documentation / help fixesHarald Welte1-6/+12
2012-08-16complete the VTY help messages so we don't get "null" in the manualHarald Welte1-41/+159
2012-07-21libbsc: Add documentation to MM INFO, LAC, TSC, CIHolger Hans Peter Freyther1-4/+6
2012-07-12move BTS-specific timezone override into sub-structureHarald Welte1-6/+8
Group all three structure members involved in bts-specific timezone handling into a sub-structure.
2012-07-04BSC VTY: Allow encryption to be set to A5/3Harald Welte1-2/+3
We are currently not checking if the BTS actually suports that cipher, and we particularly don't have any hack for ip.access which apparently seems to re-use the RSL algorithm identifier for A5/2.
2012-07-02BSC: introduce new "sysmobts" BTS modelHarald Welte1-0/+1
so far, osmo-bts/sysmobts used to be entered as "sysmobts" type in the configuration file. However, there are some differences in the protocol/behaviour and we should reflect that by a new BTS plugin (with lots of code reuse from the nanobts driver).
2012-06-16split libgb into a separate library for outside useHarald Welte1-1/+1
This also removes the dependency to osmo_sock() inside libcommon and replaces it with osmo_sock_* from libosmocore
2012-06-03Allow VTY-based configuration of T3105Harald Welte1-1/+1
This timer will only be forwarded to BS11 and Ericsson Abis so far, not to Nokia and ip.access BTS yet.
2012-05-31vty / cfg_bts_tsc: TSC range is 0..7, not 0..255Harald Welte1-6/+1
2012-03-16bsc: Create a osmo_bsc_data and embed osmo_msc_dataHolger Hans Peter Freyther1-2/+2
We want to have multiple MSCs but we also have some data that is only present on a per BSC basis. Right now the MSC data is not allocated with talloc, so we have some change in the talloc contexts.
2012-01-29ARFCNs are in the range of 0..1023, not 0..1024Harald Welte1-3/+3
I'm sure I read somewhere that it actually was 0..1024, as I kept wondering how stupid it was to use 10bit+1. However, that source was incorrect, as GSM TS 05.05 quite clearly states 0..1023
2012-01-15bsc: Fix "show lchan" for partially provided informationHolger Hans Peter Freyther1-13/+53
show lchan should be capable of showing all allocated lchans, all of a given bts, a given trx, a given ts. This feature was broken when I added the ability to show a more simple summary. Restore the initial behavior by splitting out the for loops for the bts/trx/ts and check if we have parsed all parameters and then call and return the subroutine.
2011-12-02Add NITZ (timezone) support as part of MM INFOGus Bourg1-0/+29
The UTC offset from the operating system will be used by default to calculate the NITZ in MM INFO. However, a "timezone" vty command is added at the BTS level, allowing BTS-specific overrides, e.g. in case BTSs are distributed accross multiple timezones.
2011-11-13bsc_vty: Fix usage of deprecated osmo_osmo_hexdump_nospcSylvain Munaut1-1/+1
The typo was fixed upstream Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-10-18libbsc/nokia_site: Fix reset procedure and add option to skip it.Sylvain Munaut1-0/+24
do_reset was not initialized anywhere anymore, so the reset was never triggered. It's now fixed and we add an option to skip it in the config so that when in production, you can restart without config changes quickly. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-10-12vty: Document more VTY parameters of a commandHolger Hans Peter Freyther1-33/+55
The below is used to identify commands that need proper documentation diff --git a/src/vty/command.c b/src/vty/command.c index ab1eaca..bcf72d0 100644 --- a/src/vty/command.c +++ b/src/vty/command.c @@ -426,6 +426,20 @@ void install_element(enum node_type ntype, struct cmd_element *cmd) cmd->strvec = cmd_make_descvec(cmd->string, cmd->doc); cmd->cmdsize = cmd_cmdsize(cmd->strvec); + + printf("NODE: %d\n", ntype); + + int j; + for (j = 0; j < vector_count(cmd->strvec); ++j) { + vector descvec = vector_slot(cmd->strvec, j); + int i; + for (i = 0; i < vector_active(descvec); i++) { + struct desc *desc = vector_slot(descvec, i); + if (desc == NULL) + continue; + printf(" %s %s\n", desc->cmd, desc->str); + } + } }
2011-08-23Revert "we don't have openbsc/ipaccess.h anymore"Harald Welte1-1/+1
This reverts commit 8697e43bb2b9d6f217090ca93057d9d4ab6942a9.
2011-08-20we don't have openbsc/ipaccess.h anymoreHarald Welte1-1/+1
2011-08-19src: port openBSC over libosmo-abis0.9.15Pablo Neira Ayuso1-4/+29
This is a big patch that ports openBSC over libosmo-abis. Sorry, the changes that are included here are all dependent of libosmo-abis, splitting them into smaller pieces would leave the repository in some intermediate state, which is not desired. The main changes are: - The directory libabis/ has been removed as it now lives in libosmo-abis. - new configuration file format for nanoBTS and HSL femto, we need to define the virtual e1_line and attach it to the OML link. - all the existing BTS drivers (nanoBTS, hsl femto, Nokia site, BS11 and rbs2000) now use the new libosmo-abis framework. - use r232 input driver available in libosmo-abis for bs11_config. - use ipa_msg_recv instead of old ipaccess_read_msg function. - delete definition of gsm_e1_subslot and input_signal_data. These structures now lives in libosmo-abis. Most of this patch are deletions of libabis/ which has been moved to libosmo-abis. This patch also modifies openBSC to use all the new definitions available in libosmocore and libosmo-abis. In order to do that, we have replaced the following: - DINP, DMI, DMIB and DMUX by their respective DL* correspondences. - SS_GLOBAL by SS_L_GLOBAL - SS_INPUT by SS_L_INPUT - S_GLOBAL_SHUTDOWN by S_L_GLOBAL_SHUTDOWN - SS_INPUT by SS_L_INPUT - S_INP_* by S_L_INP_* sub-signals - E1INP_NODE by L_E1INP_NODE vty node This patch has been tested with: - one nanoBTS - the HSL femto with the examples available under libosmo-abis - BS11 with both dahdi and misdn drivers.
2011-08-11libbsc: Only skip lchans with state AND type set to NONE in show lchanJan Luebbe1-1/+1
The function lchan_alloc only considers lchans to be available if both the type and state are NONE. So change show lchan to list all lchans that are not considered available.
2011-08-11E1 Input: Move 'show e1_*' command to e1_input_vty.cHarald Welte1-117/+0
2011-07-27BSC VTY: Accept MNC of 0-999, as 0 is a valid MNCDieter Spaar1-1/+1
2011-07-19bsc: Call the RF Control interface ctrl all the wayHolger Hans Peter Freyther1-2/+2
We had the rf_ctrl_name and the rf_ctl pointer, make both use the word ctrl.
2011-07-16bsc_vty: Fix some Smatch warningsHarald Welte1-4/+7
/home/laforge/projects/git/openbsc/openbsc/src/libbsc/bsc_vty.c +1062 show_e1ts(25) warn: variable dereferenced before check 'line' /home/laforge/projects/git/openbsc/openbsc/src/libbsc/bsc_vty.c +1075 show_e1ts(38) warn: buffer overflow 'line->ts' 32 <= 32
2011-06-05split gsm_data.c in gsm_data_shared.c and gsm_data.cHarald Welte1-2/+2
This facilitates the use of gsm_data.c from osmo-bts
2011-06-03Introduce per-ts TSCHarald Welte1-2/+17
This allows us to configure a TSC for each timeslot, not just one globally for the entire BTS.
2011-06-03gsm_data_shared: introduce 'struct gsm_abis_mo'Harald Welte1-6/+6
... as a common wrapper around nm_attr and nm_state
2011-05-23abis_nm: Some more fall-out from the abis_nm move to libosmocoreHarald Welte1-0/+1
we want get_string_value(), not the equivalent of get_value_string()
2011-05-23abis_nm: fix some fallout regarding abis_nm migration to libosmocoreHarald Welte1-2/+2
Thanks to Holger for noticing this.
2011-05-07src: use namespace prefix osmo_* for misc utilsPablo Neira Ayuso1-2/+2
Summary of changes: s/bcd2char/osmo_bcd2char/g s/char2bcd/osmo_char2bcd/g s/hexparse/osmo_hexparse/g s/hexdump/osmo_hexdump/g s/hexdump_nospc/osmo_hexdump_nospc/g s/ubit_dump/osmo_ubit_dump/g s/static_assert/osmo_static_assert/g
2011-05-06src: use namespace prefix osmo_counter*Pablo Neira Ayuso1-9/+9
Summary of changes: s/struct counter/struct osmo_counter/g s/counter_inc/osmo_counter_inc/g s/counter_get/osmo_counter_get/g s/counter_reset/osmo_counter_reset/g s/counter_alloc/osmo_counter_alloc/g s/counter_free/osmo_counter_free
2011-05-02paging: Provide the number of pending requestsHolger Hans Peter Freyther1-1/+2
Address the FIXME and take code from the on-waves/bsc-master branch. This will count the number of requests.
2011-04-18misc: Remove sys/types.h includes from the filesHolger Hans Peter Freyther1-1/+0
These are not needed any more. We used them for u_int types but we now use uint which comes from stdint.h
2011-03-23src: use new library libosmogsm and new path to headers in libosmocorePablo Neira Ayuso1-4/+4
libosmogsm is a new library that is distributed in the libosmocore. Now, openbsc depends on it. This patch gets openbsc with this change. This patch also rewrites all include path to the new osmocom/[gsm|core] Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>
2011-03-19bsc: change bsc_vty_init to take logging categories as parameterPablo Neira Ayuso1-2/+2
This change is required to finish the integration of the VTY and the per-application logging categories that provides: "vty: integration with logging framework" in libosmocore. It has been tested with osmo-nitb. The other just compiled tested.
2011-03-08vty: fix segfault if rf_ctl is not setPablo Neira Ayuso1-1/+1
This is the case of osmo-nitb, since it does not call osmo_bsc_rf_create(). term1: $ ./osmo-nitb -c ../openbsc.cfg.nanobts term2: $ telnet localhost 4242 term2: OpenBSC> show network term1: Segmentation fault
2011-03-04fix path of bscconfig.h include fileHarald Welte1-1/+1
2011-03-04[HSL] initial support for the HSL 2.75G FemtocellHarald Welte1-2/+28
The HSL Femtocell seems to be a poor man implementation of the ip.access Abis/IP protocol, but cutting corners wherever possible. We try to workaround those corners wherever possible...
2011-03-04prefix sub-directories containing libraries with 'lib'Harald Welte1-0/+2773
... and make sure tests work again after restructuring