aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/ipaccess
AgeCommit message (Collapse)AuthorFilesLines
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-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-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 Ayuso1-39/+2
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 Ayuso1-21/+1
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 Ayuso2-25/+11
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-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-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-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-23src: use new library libosmogsm and new path to headers in libosmocorePablo Neira Ayuso6-16/+16
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-04prefix sub-directories containing libraries with 'lib'Harald Welte1-5/+7
... and make sure tests work again after restructuring
2011-03-03re-structure the OpenBSC directory layoutHarald Welte1-3/+9
The new structure divides the code into a number of libraries for the BSC core functionality, MSC core functionality, Abis transport, TRAU and other bits. This doesn't introduce any functional code change but simply moves around files and alters Makefile.am accordingly. Next step would be to disentangle a lot of the inter-library dependencies and make the individual bits of code more independent.
2011-02-19Install programs into $(prefix)/bin, not /sbinHarald Welte1-1/+1
At least in many configurations, there is no need to run any of our programs as root. Thus, we shouldn't install them in sbin.
2011-02-11[BSC] Move the BTS-type specific code from bcs_init.c to bts_*.cHarald Welte1-27/+15
bsc_init.c was a big mess even only for two supported BTS models, so before adding more BTS types, this needs a cleanup. All the BTS specific code from bsc_init.c has now moved into bts_{siemens_bs11,ipaccess_nanobts}.c This has required that input_event() and nm_state_event() get both converted to proper libosmocore signals instead of referencing external symbols.
2011-01-01License change: We are now AGPLv3+ instead of GPLv2+Harald Welte5-24/+39
The reason for this is quite simple: We want to make sure anyone running a customized version of OpenBSC to operate a network will have to release all custom modifiations to the source code.
2010-12-21ts Make the e1inp_ts delay configurableHolger Hans Peter Freyther1-0/+2
Currently the nanoBTS bootstrap code requires a high delay otherwise we are not bringing the device up properly. Changing the init code turns out harder than it seems like. So this is a workaround for that to allow a high speed RSL/OML connection after the bringup. The line driver can have a default TS delay. It is set to the current default for the nanoBTS and the BS11. For the ipaccess case we will set the delay lower for the RSL connection and inside the ipaccess-config we can set it low right away to have fast firmware flashing and such.
2010-11-15misc: Introduce a --enable-coverage mode to build with gprof coverageHolger Hans Peter Freyther1-2/+2
This adds a test coverage build. One can use gcov and lcov on the resulting data afterwards to see which code paths were executed and which were not.
2010-10-06misc: Once again go from "On Waves" to "On-Waves"..Holger Hans Peter Freyther2-2/+2
Try to get the company name of our sponsor right...
2010-08-04ipaccess-config / NWL: Decode + print neighbor cell ARFCNsHarald Welte1-3/+29
2010-07-30ipaccess-config: Don't dump the Rxlevel statisticsHarald Welte1-2/+2
2010-07-30ipaccess-config: Terminate program after running BCCH INFO testHarald Welte1-1/+5
2010-07-30network_listen: dump BSIC as part of BCCH INFO testHarald Welte1-2/+2
2010-07-30ipaccess-config: Add option to disable color in log outputHarald Welte1-1/+5
2010-07-22network_listen: hexdump the SI2/SI2bis/SI2ter messages once we get themHarald Welte1-0/+6
2010-07-22[ipaccess-config] fix bugs in generating the PHYSICAL CONFIG attributeHarald Welte2-5/+10
... while asking the BTS to perform tests for us. The length of the ARFCN whitelist is the actual length in bytes, not the number of 16bit ARFCN numbers. Also, implement a limit, either by rxlevel or by number of ARFCN that should end up in the whitelist.
2010-07-22[ipaccess-config] make sure the ARFCN Whitelist EIE is built correctlyHarald Welte1-2/+2
2010-07-22ipaccess-config/network-listen updateHarald Welte2-7/+51
* transition through cycles of NWL tests
2010-07-22ipaccess-config / network listen: ordered list of RxLevelsHarald Welte2-10/+58
Use libosmocore 'rxlev_stat' module to generate an ordered list of ARFCN's, sorted by RxLev while performing test nr. 64
2010-07-22move ip.access netowrk listen (NWL) to network_listen.cHarald Welte3-81/+189
Also, we now re-start the network listen test after it has finished, so if you run a test from ipaccess-find, the test will get re-started and re-started all the time.
2010-06-28[ipaccess-config] Better way to set/unset NVRAM attributesHarald Welte1-3/+57
there are now human-readable names so you can do something like ipaccess-config -U dhcp-enabled -S static-ip -S static-gw 192.168.100.120 to unset DHCP and to set static IP and gateway attributes.
2010-06-28[ipaccess-config] Enable setting of static IP address / netmask / gatewayHarald Welte1-43/+126
However, the 'static IP address' NVRAM flags are not yet set correctly
2010-06-28[ipaccess-config] use msgb to make use of various tlv put functionsHarald Welte1-29/+30
This looks so much better than the *cur++ type code. Also, we now terminate ipaccess-config once the NV flags or Unit ID have been set, not just for the OML IP address.
2010-06-10ipa-proxy: Remove printf debugging.Holger Hans Peter Freyther1-2/+0
2010-06-10ipa-proxy: Patch the IPA Set Attribute messages for NSVCIHolger Hans Peter Freyther1-1/+46
We will tell the BTS where we are listening, but the ACK will return the original settings... this should make it possible to intercept the GPRS stream..
2010-06-10ipa-proxy: Fix the send routine.. convert port to network orderHolger Hans Peter Freyther1-1/+3
2010-06-09ipa-proxy: Only handle some stuff of the CCM locally...Holger Hans Peter Freyther1-4/+11
This is a good interim solution for messages not handled by us, right now this would include the NVRAM attributes that I do not feel like caching right now.
2010-06-09ipa-proxy: Move UDP socket code to the BTS and forward messages...Holger Hans Peter Freyther1-20/+77
Forward messages from BTS to Network, Network to BTS... now we only need to fix the Set GPRS attributes on the fly...
2010-06-09ipa-proxy: Add option to locally listen to GPRS...Holger Hans Peter Freyther1-2/+67
This is just the boilerplate code, the rest is not implemted yet.
2010-06-09ipa: Print the IP addr in the listen as well..Holger Hans Peter Freyther1-2/+3
2010-06-09ipa: Say which addr could not be connected...Holger Hans Peter Freyther1-1/+2
2010-06-09ipaccess-proxy: Add getopt based config options to the proxy...Holger Hans Peter Freyther1-0/+70
Make the ip addresses configurable and such.
2010-06-09ipa: Increase msgb size for the IPA msg in the proxy.Holger Hans Peter Freyther1-1/+1
2010-05-31ipaccess-config: More verbose help messageHarald Welte1-9/+9
2010-05-14ipaccess-config: Silence compiler warning.Holger Hans Peter Freyther1-0/+2