aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2010-03-25Merge commit '52b4abdcb351830f5493a50c4181ef3947f3feab'Harald Welte6-136/+122
2010-03-25convert openbsc to use libosmocore-0.1.1 APIHarald Welte4-7/+8
the 0.1.1 API is cleaned up and removes all exported global static arrays (like rlm_cause_strs). There are now proper accessor functions.
2010-03-25replace rsl_rlm_cause_strs with rsl_rlm_cause_name()Harald Welte2-5/+9
2010-03-25current version needs exactly 0.1.0 version of libosmocoreHarald Welte1-1/+1
2010-03-25replace gsm48_cc_msg_names[] with gsm48_cc_msg_name()Harald Welte2-70/+54
and implement the backend using value_string
2010-03-25use more value_string in gsm48 and rslHarald Welte2-61/+54
2010-03-25get_value_string(): return "unknown 0x..." instead of "unknown"Harald Welte1-1/+5
2010-03-25increase the use of 'struct value_string' in abis_nm and gsm_dataHarald Welte2-247/+183
2010-03-25debug: Make the global target loglevel overwrite the category levelHolger Hans Peter Freyther1-1/+1
Together with the previos -e Number option one can easily turn on debugging without needing to remember the category masks for a quick check on what is going on.
2010-03-25bsc_hack: Add other known options to the listHolger Hans Peter Freyther1-1/+3
2010-03-25bsc_hack: Add option to set the global log level.Holger Hans Peter Freyther1-1/+6
2010-03-24rll_establish: When on a TCH always use the SACH for SAPI!=0Holger Hans Peter Freyther1-2/+1
When we are on a TCH/H or TCH/F always use the SACH for SAPI!=0 for the establishment otherwise it will never be answered. This can be tested by starting to page with a traffic channel and then trying to submit the SMS.
2010-03-24ipa: Fix the previous patch and initialize the fds to -1Holger Hans Peter Freyther1-0/+6
The code in 354ef81d8062510765b7280023b3f4ef98d0613a checked for fd >= 0 but on startup the struct is memset to 0 so this test is true. Initialize the fds to -1 to make the code work and be able to handle all ranges of the fd.
2010-03-24Move the version/copyright string to a separate fileHolger Hans Peter Freyther3-15/+33
It didn't really belong into the bsc_init.c... now we could even easily autogenerate this file.
2010-03-24Make the compiler happy and use a putsHolger Hans Peter Freyther1-1/+1
2010-03-24Include bscconfig.h without ../ for the srcdir != build dir caseHolger Hans Peter Freyther2-2/+2
2010-03-24Move the copyright and version header to bsc_init.cHolger Hans Peter Freyther2-10/+16
The copyright/version will be used from within the VTY code which might be linked into binaries even when bsc_hack.c is not linked into it.
2010-03-24ipa: Handle corrupt incoming messages without crashingHolger Hans Peter Freyther1-6/+14
Attempt to read the three byte IPA header. If we read 0 then the socket can be closed otherwise we need to read three bytes, if we don't we do have a failure. After having parsed the header we need to evaluate the length, if the length is bigger than would fit into our buffer we will ignore that and print an error. This is fixing a crash when the BTS is crashing...
2010-03-24ipa: Reduce the throttling of the IPA msgesHolger Hans Peter Freyther1-1/+1
This code used to be a sleep, it was changed to be a timer by Andreas but this timer does not seem to have any use. When doing the sw load this timer is increasing the upload time dramatically, reduce it to make it work faster.
2010-03-24ipa: Make it possible to specify -w and -f in any orderHolger Hans Peter Freyther1-3/+9
Currently one has to put -w in front of -f to really write the firmware file to disk. Change the config handling to first take all parameters and then execute on them. This means -f can now be used with any other parameter.
2010-03-24ipa: Use two defines instead of magic numbersHolger Hans Peter Freyther1-8/+11
We spearate OML/RSL by putting a magic number into the priv_nr. Use a define instead of ordinary integers.
2010-03-24ipaccess: Handle the case of replacing RSL connectionsHolger Hans Peter Freyther1-0/+7
Fix a infinite loop when establishing a new RSL connection and the BSC is identifying itself with a unit id of an already established RSL connection. The infinite loops happens because we are corrupting the the linuxlist inside the bsc_fd when registering the bfd twice. Due the lack of proper authentication favor the new RSL connection as the real one and close the previous one.
2010-03-24Create a dummy m4 directory to make autoreconf --install --force workHolger Hans Peter Freyther1-0/+1
Even when removing AC_CONFIG_MACRO_DIR aclocal insisted that it needs to have a m4 directory. Make it happy by providing one. As git is not tracking directories I needed to add a dummy file.
2010-03-23depend on libosmocore 0.1.0Harald Welte1-1/+1
this creates a hard dependency to a certain base version of the library
2010-03-23Merge commit '4cd3d8a2c7982ba11d05d2500b1bfca44f440d1e'Harald Welte4-3/+168
2010-03-23add git-version-gen magic to automatically generate package versionHarald Welte4-3/+168
2010-03-23bump version to 0.1.0Harald Welte1-1/+1
2010-03-23automatically include program version and print it from vty and --versionHarald Welte8-19/+221
2010-03-22Add 'libosmocore/' from commit '045cc22baeb7f12dcb0022b79a1984d86e922870'openbsc/0.9.0Harald Welte54-0/+9325
git-subtree-dir: libosmocore git-subtree-mainline: e164d29e7f6c86d1f6f047bbf58159e46a11425f git-subtree-split: 045cc22baeb7f12dcb0022b79a1984d86e922870
2010-03-22gprs: remove (the already unused) si13_templateHarald Welte1-16/+0
system_information.c and rest_octets.c don't need a template...
2010-03-22GPRS: make NSEI configurable from VTYHarald Welte3-0/+25
2010-03-22GPRS: don't allow VTY configuration of GPRS parameters if GPRS inactiveHarald Welte1-0/+30
2010-03-22GPRS: remove outdated FIXME about patching CGIHarald Welte1-1/+0
2010-03-22GPRS: set SI3 GPRS indicator dependent on bts->gprs.enabledHarald Welte1-1/+3
2010-03-22GPRS: remove "#define GPRS" compile-time defineHarald Welte1-16/+14
It is now possible to enable/disable GPRS support purely based on the vty / config file.
2010-03-22GPRS: make NSVC parameters VTY-configurableHarald Welte3-10/+88
2010-03-22Create new gprs-conf branch with the non-SGSN part of the gprs branchHarald Welte8-22/+270
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-03-22ipa-firmware: Fix the write out of the firmware partsHolger Hans Peter Freyther2-2/+2
Use the start address inside the header entry, the start is relative to the surrounding SDP record which is located in our base offset, when writing it out also ignore four bytes of something (crc?).
2010-03-22ipa-firmware: Write the firmware parts to a fileHolger Hans Peter Freyther3-5/+61
The first non working version to dump the content of the sdp to the terminal..
2010-03-22ipa-firmware: Add the entry first and then seekHolger Hans Peter Freyther1-3/+4
The sub entry might not be a SDP file so it is best to add the read entry, add it to the list and then attempt to recursively parse this one.
2010-03-22ipa-firmware: Lift the requirement of having a table_offset of zeroHolger Hans Peter Freyther1-8/+4
Make the code work/skip the other table and find the entries at the given offset. This appears to work.
2010-03-22ipa-firmware: Remove the part_length from the struct sdp_firmwareHolger Hans Peter Freyther2-7/+21
* The length of the table is not at a fixed position. We will need to read the offset, seek there, read the data, convert it to the host endianes. * Prepare the code to work with offsets of 0...
2010-03-22ipa-firmware: Look at the table offsetHolger Hans Peter Freyther1-0/+7
* The two dummy bytes appear to be an offset, check that they are zero and refuse to work when they are not.
2010-03-22ipa-firmware: Warn/Exit when the required ids can not be found.Holger Hans Peter Freyther1-5/+13
2010-03-22ipa-firmware: Remove dummy check...Holger Hans Peter Freyther1-3/+0
We have derefenced that way before and would have crashed already.
2010-03-22ipa-firmware: The more_more_magic is to indicate the payloadHolger Hans Peter Freyther1-4/+0
* Ignore the value of the field there is no sematnic change to the content of the file..
2010-03-22debug: Use the right enum value for the ref counting group.Holger Hans Peter Freyther1-1/+1
2010-03-22osmocore: Add a direct l4h to the union of l4h pointersHolger Hans Peter Freyther1-0/+1
This is needed for the BSSAP code of the On Waves/BSC master branch
2010-03-22fix compiler warnings (itsme <itsme@xs4all.nl>)Harald Welte3-3/+3
* added several 'const' for strings. * added 'extern' to declarations of rsl_rlm_cause_strs
2010-03-11gsm48.h: Make the array extern to a silence a linker warningHolger Hans Peter Freyther1-1/+1
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../../i686-pc-linux-gnu/bin/ld: Warning: size of symbol `rsl_rlm_cause_strs' changed from 8 in ./openbsc/src/libbsc.a(abis_rsl.o) to 120 in /usr/local/lib/libosmocore.so spotted and sent to the list by Andreas