aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src
AgeCommit message (Collapse)AuthorFilesLines
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[si] Go through the system_information structs and add static_assertsHolger Hans Peter Freyther1-0/+16
The structs are correct, the problem is coming from the rest octets
2010-01-06[vty] Move db usage out of the libbsc (fork dumping of subscr)Holger Hans Peter Freyther2-6/+53
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-03print full lchan name when recycling itHarald Welte (local)1-1/+1
2010-01-03encryption: Import a GPL comp128 implementationSylvain Munaut2-1/+231
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03gsm_04_08: Add RAND debug output in gsm48_tx_mm_auth_reqSylvain Munaut1-1/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03gsm_04_08: Specify key_seq when calling gsm48_tx_mm_auth_reqSylvain Munaut2-5/+4
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03vty: Add command to set auth algo & Ki for a subscriberSylvain Munaut1-0/+62
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03vty: dump subscriber authentication (a3/a8) infos if availableSylvain Munaut1-0/+31
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03db: Add methods to set auth{info,tuple} for a subscriberSylvain Munaut1-0/+125
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03db: Fix bad size comparison when retrieving KiSylvain Munaut1-1/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03db: Add issued/use_count/key_seq fields to AuthTuplesSylvain Munaut1-3/+9
Theses will be useful to know if we can reuse the tuples or if we should renew. The 'issued' is currently purely informative. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03db: Fix type of algorithm_id (NUMERIC -> INTEGER)Sylvain Munaut1-2/+2
This fixes a DB warning and no need for NUMERIC here. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03db: Fix missing commas in AuthTuples table creationSylvain Munaut1-3/+3
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03abis_nm: Introduce & use a nm_is_running function to test gsm_nm_stateSylvain Munaut2-9/+13
This returns true if the gsm_nm_state can be considered 'running'. Note that we also accept availability==0xff (which is a code for no value) because according to 12.21 it is perfectly valid. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03silent_call: Add option to choose channel typeSylvain Munaut2-18/+48
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>
2010-01-03[bsc_init] Send OPSTART if SITE_MANAGER reports off-lineSylvain Munaut1-2/+4
The exact sequence the states the BTS goes through is slightly different for one of the nanoBTS 139 I have and it needs this to start. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-01introduce and implement silent_call_reroute() and silent_call_rx()Harald Welte2-0/+48
Thise two functions are interfacing with the 04.08 layer 3 to determine if a particular message should be handled inside the OpenBSC layer 3, or if it should be handled in the silent call handler.
2010-01-01keep 'silent call' state in struct lchanHarald Welte2-1/+7
This enables us to reliably detect if a lchan is part of a silent call or not.
2009-12-31[misc] Utilize rf_locking by setting the nm_state.administrativeHolger Hans Peter Freyther3-5/+10
* On start the vty code will call the abis_nm method and this will set the administrative state to unlock/lock * During startup the BTS will report its state as well and would possible overwrite the set administrative. We are only going to update the administrative if it was 0 before. This appears to work on all of my tests. In case this will not be the case for others we will have to split the administrative into two sets one for the BTS and one for the BSC.
2009-12-30[ipaccess] Remove some code duplication in the recently added firmware flashing.Holger Hans Peter Freyther1-14/+17
Share the creation of the sw_load.
2009-12-30[abis] Refactor sw descr generation to a new methodsHolger Hans Peter Freyther1-25/+18
* This is used in sw_load_init and sw_load_end and both needs to be touche for every BTS. Move it into a common method. * This was only verified on the nanoBTS.
2009-12-30[abis] Dispatch a IPAC restart ACK/NACK signalHolger Hans Peter Freyther2-0/+14
* Add the NACK version to the list * Dispatch the signal when we receive the message * Handle it in ipaccess-config by exiting the application
2009-12-30[ipaccess] Restart only after setting the OML IP, software loadHolger Hans Peter Freyther2-10/+29
* Do not issue the restart right aways if we have OML IP or software load in the queue (hint, we need a real queue of operations to carry out... with one big state machine) * Change the signal_data of ipacc ACK/NACK to contain the msg type and the bts pointer. * Issue a restart for software load and OML and use the BTS pointer we got out of the new signal data.
2009-12-30[ipaccess] Make SW activation work by filling out sw_load1 and sw_load2Holger Hans Peter Freyther1-0/+55
We are filling sw_load1 with the information found with type 0x1000 and sw_load2 with type 0x2001. It appears from the protocol traces that these information is not extracted from them. We also need to include the \0 from the string. With this firmware flashing seems to work.
2009-12-30[ipaccess] Close the firmware file as wellHolger Hans Peter Freyther1-0/+4
2009-12-30[ipaccess] Move firmware analysis into the ipaccess-config utilityHolger Hans Peter Freyther3-78/+73
* This turns ipaccess-firmware.c into a plain helper, fix the ipaccess name...
2009-12-30[ipaccess] Document the software argument for firmware loadingHolger Hans Peter Freyther1-0/+1
2009-12-30[ipaccess] Start using talloc in the firmware codeHolger Hans Peter Freyther2-8/+15
* We are not leaking anything... *yeah*, talloc rocks
2009-12-30[ipaccess] Change the name to be slightly better..Holger Hans Peter Freyther1-2/+2
2009-12-30[ipaccess] Expose the sub header list as well..Holger Hans Peter Freyther1-15/+25
2009-12-30[ipaccess] Turn firmware parsing into a routine so it can be usedHolger Hans Peter Freyther1-71/+39
* text3 seems to be a version as the text content starts with a 'v' * move the sdp_firmware into the ipaccess.h and declare the function. The headers are returned through a list.
2009-12-30[ipaccess] Add return values to the analyze_fileHolger Hans Peter Freyther1-12/+14
2009-12-30[ipaccess] There is only one second magic numberHolger Hans Peter Freyther1-36/+23
* The second magic number is only a short and it is the same for all of my cases * This also means that the first and second header are the same which means the unknown 8 byte are header and file size... and the 122 bytes are actually multiple strings (just all empty on the outermost SDP). Adding the strings left us with 120 bytes so we have two bytes of unknown usage.. * This is now capable of parsing outer and inner SDP files and print their header.
2009-12-30[ipaccess] Allow to parse the second magic2 as wellHolger Hans Peter Freyther1-10/+42
* The internal SDP appears to have a different magic number than the first entry and a slightly different packet format * There are 8 byte of binary for at the beginning and the header ends with a table pointing to some strings and then the actual firmware follows. * We currently only parse the strings of that header.
2009-12-30[ipaccess] Start the parser recursively...Holger Hans Peter Freyther1-7/+3
* Start parsing the sub SDPs with the same analyze method
2009-12-30[ipaccess] Read the " SDP" and version first and then the rest of the headerHolger Hans Peter Freyther1-7/+23
Read everything we need to determine the version first and then the rest. This will allow to be able to poke into the other SDP bits.
2009-12-30[ipaccess] The firmware format is recursive...Holger Hans Peter Freyther1-15/+30
The something3 points to the next start of the SDP entry. The four bytes in front of the " SDP" are not known and just discarded. Prepare to be able to recursively parse the SDP header...
2009-12-30[abis] Add ACK signal and send it on SET NVATTR ACKHolger Hans Peter Freyther2-0/+16
* Add the signal definition to signal.h * Dispatch the signal from abis_nm.c * Handle it in ipaccess-config.c and say we are done with work
2009-12-30[ipaccess] Use the right variable... *sigh*Holger Hans Peter Freyther1-1/+1
* I will refactor all this in the future..
2009-12-29ipaccess-config: re-enable DNM logging, add support for multi-TRXHarald Welte (local)1-0/+6
2009-12-29rsl: add new 'gsm_trx_name()' function and use itHarald Welte (local)2-6/+15
2009-12-29ipaccess input: Print BTS number that has disappearedHarald Welte (local)1-4/+7
2009-12-29rsl_sendmsg: Print message in case trx == NULLHarald Welte (local)1-2/+8
2009-12-29export the 'trx_is_usable() function and use it from pagingHarald Welte (local)2-1/+6
this ensures we don't send paging requests to currently inactive transceivers.
2009-12-29Introduce gsm_lchans_name() for human readable lchan state nameHarald Welte3-6/+24
Also, use this new function to dump lchan state on VTY and to improve readability of RSL log messages.
2009-12-29RSL: Introduce LCHAN_S_REL_REQ stateHarald Welte1-1/+16
This state will help us to differentiate between channels where we have requested the release, and channels that are actually released.
2009-12-29[ipaccess] Start reading the header entryHolger Hans Peter Freyther1-1/+25
* Read the entry and print it out
2009-12-29[ipaccess] Start figuring out what the header entry is meaning..Holger Hans Peter Freyther1-2/+17