aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2011-05-06src: use namespace prefix osmo_timer* for timer functionsPablo Neira Ayuso42-157/+157
Summary of changes: s/struct timer_list/struct osmo_timer_list/g s/bsc_add_timer/osmo_timer_add/g s/bsc_schedule_timer/osmo_timer_schedule/g s/bsc_del_timer/osmo_timer_del/g s/bsc_timer_pending/osmo_timer_pending/g s/bsc_nearest_timer/osmo_timers_nearest/g s/bsc_prepare_timers/osmo_timers_prepare/g s/bsc_update_timers/osmo_timers_update/g s/bsc_timer_check/osmo_timers_check/g
2011-05-04bsc: Provide a show statistics commandHolger Hans Peter Freyther1-0/+11
2011-05-04nat: Keep track of the error message.Holger Hans Peter Freyther1-3/+4
2011-05-04msc: bail out if subscriber VTY command failsPablo Neira Ayuso1-1/+10
This patch adds several messages that would be displayed if: * the Ki argument is missing. * you pass an invalid Ki. * the database fails to perform the operation (add/delete/update). Before this patch, no messages were spotted on this errors. I noticed this while adding Ki to the existing subscribers in the nanoBTS setup: I introduced a wrong Ki but the VTY command line did not report any error. A quick look at the database via sqlite command confirmed that the new authkey information was not added.
2011-05-02nat: Create a Paging Group that BSCs can refer toHolger Hans Peter Freyther5-20/+191
Introduce a paging group that a BSC can refer to and is used during the LAC lookup. This way paging can be flooded through the network and just filtered at the last element in the core.
2011-05-02nat: Introduce the concept of a paging group and use itHolger Hans Peter Freyther2-0/+38
A paging group is a list of LACs, different BSCs can point to a paging group and use it for the LAC lookup.
2011-05-02nat: Rewrite the paging handling.Holger Hans Peter Freyther4-57/+59
The current code tries to find _one_ bsc for a paging message and then continues. The new code will try to find multiple BSCs for each LAC. This is done in preparation of having two BSCs handle the same LAC. This code right now is O(m*n) but it will be worse once paging groups are landed. The code to test the function was reduced to just test the lac lookup code as the other part can not be tested in a standalone setup anymore.
2011-05-02paging: Provide the number of pending requestsHolger Hans Peter Freyther3-1/+18
Address the FIXME and take code from the on-waves/bsc-master branch. This will count the number of requests.
2011-05-02paging: Initialize structs internally to avoid a crashHolger Hans Peter Freyther3-6/+11
The code to create the struct gsm_bts is in libcommon right now and we can not call paging_init from there. Right now it appears to be the easiest of doing the init internally.
2011-04-26bsc: Allow to have a list of MSCs/MUXs to connect toHolger Hans Peter Freyther10-64/+112
Be able to configure a list of destinations (duplicates allowed) that will be tried in a round robin fashion. The change is in the bsc_msc_connection to operate on a list. We achieve the round robin nature with the same trick used in the paging code to delete and append the current entry. The nat code was updated to compile but one can only configure one destination.
2011-04-26bsc: Allow the NAT to query the list of LACsHolger Hans Peter Freyther2-4/+39
Right now the code assumes that any request coming from the NAT is a query and the code responds to with a list of configured LACs.
2011-04-26bsc: Handle MGCP coming from Osmo Extensions headerHolger Hans Peter Freyther1-0/+20
Start using the new Osmo Extension header and forward MGCP to the MGCP GW.
2011-04-26bsc: Point back from struct osmo_msc_data to struct gsm_networkDaniel Willmann2-0/+6
2011-04-26nat: Introduce a block on the NAT to slowly get rid of BSCsHolger Hans Peter Freyther3-0/+50
For restarting the NAT we can now block it, it will not accept new connections and for existing connections it will attempt to drop them over time. A blocked NAT will end up with no BSC connections left and then can be safely restarted.
2011-04-26ipa: Reserve two new values for the Osmo IPA extensionsHolger Hans Peter Freyther1-0/+14
We want to send MGCP through the Osmo Extension and also want to send the list of local LACs to it.
2011-04-26abis: Use LOGL_ERROR for the Failure Event ReportHolger Hans Peter Freyther1-6/+6
It is not an error of the BSC but we will treat a BTS error like an error of the BSC for now.
2011-04-21ussd: Ignore connection release/clear from the MSCHolger Hans Peter Freyther1-0/+9
In case this is a local USSD connection we will ignore the clear command and respond with a RLC to any RLSD but will never forward that to the BSC. This way the external USSD is fully in charge of the connection. There are theoretical issues if there are multiple transactions on the same SCCP Connection but this can not be solved properly right now.
2011-04-19crc24: Include stdint.h as a possible compile fixHolger Hans Peter Freyther1-0/+2
2011-04-19ussd: Keep track of used TIs for USSD and forward messagesHolger Hans Peter Freyther3-23/+68
Keep track of the used transaction identifier and always forward messages to the USSD provider. E.g. this can be used to have a dialogue going. Right now it is still possible that the MSC will close down the connection.
2011-04-18nat: Inform the USSD Provider about lost connectionsHolger Hans Peter Freyther3-15/+44
2011-04-18nat: Remove magic numbers, use enum values for conn classificationHolger Hans Peter Freyther2-4/+14
Remove the usage of 0, 1, 2 and start using enum values. We can still assume con_local is a number.
2011-04-18nat: Clarify the documentation of the allow/deny regexpHolger Hans Peter Freyther1-3/+3
2011-04-18ho: Initialize nmp_worst as it was not initializedHolger Hans Peter Freyther1-2/+2
The compiler can't know that on the first iteration we will assign nmp_worst as we have used a high average value.
2011-04-18bsc: Move transaction.c from the libbsc to the libmscHolger Hans Peter Freyther3-2/+1
The BSC code does not use transactions, move it to the libmsc.
2011-04-18misc: Fix possible crash with setting an extensionHolger Hans Peter Freyther1-3/+3
2011-04-18misc: Remove sys/types.h includes from the filesHolger Hans Peter Freyther48-48/+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-04-18misc: Move from u_int to uint types of stdint.hHolger Hans Peter Freyther73-958/+960
This was done with sed on the files.
2011-04-13nat: And out the skip_indicator/transaction id from the gsm48 headerHolger Hans Peter Freyther3-11/+17
We need to and out the protocol discriminator as call control might have use transactions. This has only failed for the USSD filter so far as this must deal with transactions.
2011-04-13bsc: Remove the handling of the RTP option from the switch/case stmtHolger Hans Peter Freyther1-3/+0
The 'P' code was not present in the getopt call anyway.
2011-04-13bsc: Use the new name in the usage statementHolger Hans Peter Freyther1-1/+1
2011-04-12ipaccess-proxy: get rid of make_gprs_sock()Pablo Neira Ayuso1-33/+7
It is similar to make_sock() available in openbsc/libcommon.
2011-04-12ipaccess-proxy: remove leftover option `--udp'Pablo Neira Ayuso1-1/+0
It seems it remains unimplemented, remove it.
2011-04-12ipaccess-proxy: more robust option parsing and checkingPablo Neira Ayuso1-0/+15
With this patch, ipaccess-proxy makes more robust option checking: $ ./ipaccess-proxy -l 1.1.1.1 -b 2.2.2.2 -e ERROR: missing mandatory argument for `-e' option And we return to shell to enforce the user to try again with the appropriate invocation. Before this patch, the default getopt_long() error handling was enabled which displayed this message: ./ipaccess-proxy: option requires an argument -- 'e' and ipaccess-proxy continued working. This is generic enough to cover other option that require mandatory arguments like `--bsc' and `--listen'.
2011-04-12ipaccess-find: get rid of ipac_idtag_name()Pablo Neira Ayuso2-21/+7
Use generic ipaccess_idtag_name() available in libabis instead.
2011-04-12libabis: ipaccess: use log instead of debug under errors in ipaccess_send()Pablo Neira Ayuso1-1/+1
This patch was suggested by Zecke.
2011-04-12src: more robust ipaccess_idtag_parse()Pablo Neira Ayuso3-7/+23
Now ipaccess_idtag_parse() returns -EINVAL instead of -1. We also check for the return value of this function in every invocation to skip further processing in case of messages with malformed TLVs. This idea was suggested by Zecke.
2011-04-12libabis: ipaccess: more robust ipaccess_idtag_name()Pablo Neira Ayuso2-2/+2
ipaccess_idtag_name() now takes a uint8_t as parameter which is the length of the type tag. This patch was suggested by Zecke.
2011-04-12db: The forward declaration of the enum does not work with C++Holger Hans Peter Freyther1-2/+1
We need to include this directly to help LCR in building.
2011-04-12mncc: Do not permanently disable the listening socket in case of errorHolger Hans Peter Freyther1-1/+0
When we have no other MNCC connection but the registeration of the new fd is failing we should not disable reading from the listen_fd for ever as the situation might not be permanent.
2011-04-12nitb: Listen for incoming MNCC connections only onceHolger Hans Peter Freyther1-1/+0
There is no point in creating the MNCC socket twice. Only create it if the user requested this when starting the nitb.
2011-04-11ipaccess-config: Allow to invoke tests by names.Holger Hans Peter Freyther1-1/+45
Allow to invoke tests by name.
2011-04-11ipaccess-config: Add option to list possible NVRAM settingsHolger Hans Peter Freyther1-1/+24
We can handle NVRAM settings via names but there is no way to discover these names. This commits adds the unusual -H option to show these values.
2011-04-11ipaccess-config: Allow to automatically loop a testHolger Hans Peter Freyther1-9/+15
This makes the commented out code an option that might or might not work reliable.
2011-04-11nat: Fix a crash due the refactoring and pass the nat again.Holger Hans Peter Freyther1-1/+1
2011-04-08wireshark: update extension of RSL dissector with ip.access nanoBTS supportPablo Neira Ayuso1-94/+134
This patch removes the C99 structure initialization which is not allowed by the wireshark project (since it has to compile with non-C99 compliant compilers). It also adds a new option to enable/disable the dissection of vendor specific ip.access nanoBTS RSL messages. Tested with file: ipaccess-startup-mo_to_mo_call-proxy.pcap
2011-04-07misc: Fix compiler warnings in the codeHolger Hans Peter Freyther1-2/+1
2011-04-07ipaccess: Add a function to prepend the osmocom ext headerHolger Hans Peter Freyther2-0/+14
* include/openbsc/ipaccess.h: Reserve a protocol number for control commands * input/ipaccess.c: New function ipaccess_prepend_header_ext prepends the extension header
2011-04-07Merge branch 'pablo/cleanups'Holger Hans Peter Freyther4-179/+94
2011-04-07ipaccess-proxy: remove hardcoded IP for options `-l' and `-b'Pablo Neira Ayuso1-4/+19
This patch removes the hardcoded IP addresses for options `-l' and `-b'.
2011-04-07libabis: ipaccess: export ipaccess_parse_unitidPablo Neira Ayuso3-42/+6
Now this is used by ipaccess-proxy, remove redundant implementation in it.