aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2011-04-17msc: Start compiling a MSC only applicationzecke/osmo-mscHolger Hans Peter Freyther5-0/+344
This application has no support for Abis but will use the A-link to communicate with a BSC. Right now a lot of symbols are stubbed out.
2011-04-16nat: Inform the USSD Provider about lost connectionsHolger Hans Peter Freyther3-15/+44
2011-04-16nat: Remove magic numbers, use enum values for conn classificationHolger Hans Peter Freyther2-5/+15
Remove the usage of 0, 1, 2 and start using enum values. We can still assume con_local is a number.
2011-04-16ussd: 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-13nat: Clarify the documentation of the allow/deny regexpHolger Hans Peter Freyther1-3/+3
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.
2011-04-07ipaccess-proxy: get rid of ipac_idtag_parse()Pablo Neira Ayuso1-22/+2
Use ipaccess_idtag_parse() available in libabis instead.
2011-04-07libabis: ipaccess: export ipaccess_idtag_name()Pablo Neira Ayuso3-23/+4
Now this is used by ipaccess-proxy, remove redundant implemention in it.
2011-04-07libabis: ipaccess: conclude new ipaccess_send_*() functions and use themPablo Neira Ayuso4-42/+60
This patch finishes the new ipaccess_send_*() functions and use them in the ipaccess-proxy code. I have also cleanup the definition of the PONG, ID_ACK and ID_REQ messages (including some minor documentation about them). I had to rename ipaccess_recvmsg() in ipaccess-proxy to avoid clashing with the one defined in libabis.
2011-04-07ipaccess-proxy: get rid of make_listen_sock() and use make_sock() insteadPablo Neira Ayuso1-47/+4
This patch replaces make_listen_sock() by the generic make_sock() available in libcommon/socket.
2011-04-07bsc: Add the bsc-rf-socket command to master as wellHolger Hans Peter Freyther3-6/+27
Make it possible to specify the rf-socket path via the vty configuration as well. The command line setting will override it though.
2011-04-07bsc: Include openbsc/ipaccess.h for the drop_oml commandHolger Hans Peter Freyther1-0/+1
Fix a compiler warning about the drop_oml command.
2011-04-07nat: Fix the call to make_sock and pass a 0 priv_nr and the nat as dataHolger Hans Peter Freyther1-1/+1
2011-04-06nat: Remember if the MSC accepted the connection on principleHolger Hans Peter Freyther3-0/+37
For the USSD module we only want to handle requests that are legitimate. This is achieved by looking for the CM Service Accept or the BSSAP CIPHER MODE COMMAND.
2011-04-05ipaccess: proxy: get rid of internal make_sock() implementationPablo Neira Ayuso1-39/+3
With this patch, we use the implementation available in libcommon.
2011-04-05libcommon: socket: extend make_sock() prototypePablo Neira Ayuso7-15/+18
This patch extends the make_sock() prototype so you can fully set the fields priv_nr and data of the bsc_fd structure. This is the first step to get rid of the internal make_sock() implementation that ipaccess-proxy uses. This patch includes a minor cleanup to pass INADDR_ANY instead of zero, if you do not want to bind the socket to one specific address.
2011-04-05ipaccess-config: exit if no network interface is specifiedPablo Neira Ayuso1-0/+1
ipaccess-config has to exit if no network interface is specified, otherwise it uses argv[1] which has a uninitialized value.
2011-04-04nat: Bail out if the regexp fails to compile and avoid a crashHolger Hans Peter Freyther4-13/+31
If the regexp fails to compile the internal dfa is NULL and a regexec will crash nicely. Fail and free the string if the regexp fails to compile.
2011-04-04lapd: NULL pointer derefence possible hereHolger Hans Peter Freyther1-1/+1
The idiom seems to be to allocate the lapd_tei if it does not exist and use it then. This was found by clang --analyze.
2011-04-01nat: Make the USSD number matching a regexpHolger Hans Peter Freyther3-7/+8
This allows to match multiple numbers and multiple patterns
2011-04-01nat: Fix the return to return CMD_SUCCESS;Holger Hans Peter Freyther1-1/+1
2011-03-29nat: Add commands to remove access-list from NAT and BSC configHolger Hans Peter Freyther1-0/+30
2011-03-29nat: Improve the error message for the failing bind callHolger Hans Peter Freyther1-1/+2
Print the IP and port that was used for the address to bind to.
2011-03-29bsc: Make the MSC node a child of CONFIG_NODEHolger Hans Peter Freyther2-17/+17
The VTY code calls the write function for nodes in the order of registration of the node and not in terms of hierachy of nodes. This means that the e1_input code is written before the MSC node that was the child of the network. Make the MSC_NODE a direct descendant of the CONFIG_NODE and avoid this issue.
2011-03-29bsc: Fix the generation of the config file, fix indentionHolger Hans Peter Freyther1-4/+4
Fix the indention of codec-list, bsc-welcome-text, mid-call-text and the mid-call-timeout. Fix the name of the codec-list in the write method.
2011-03-28src: include new file osmocom/vty/misc.h for vty_out_rate_ctr_group()Pablo Neira Ayuso4-0/+4
This uses the new include file for vty_out_rate_ctr_group() which available in libosmocore.
2011-03-27ipaccess-proxy: fix segfault in handle_dead_socketPablo Neira Ayuso1-0/+5
This patch fixes a segfault if we or one BTS start a TCP connection and close it before any IPAC_MSGT_ID_RESP message is sent.
2011-03-26tests: fix bsc-nat testPablo Neira Ayuso2-4/+4
In 136f453dd2492b95004461a33c90b11732f33bd8, I forgot to update the new header path in the test/bsc-nat files (this happened to me because I forgot to configured openBSC without --enable-nat).