aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/ipaccess
AgeCommit message (Collapse)AuthorFilesLines
2011-06-05split gsm_data.c in gsm_data_shared.c and gsm_data.cHarald Welte1-2/+2
This facilitates the use of gsm_data.c from osmo-bts
2011-05-17ipaccess: Fix the case of specifying the interfaceHolger Hans Peter Freyther1-0/+1
Pablo pointed out that my previous commit was rubish. If we have less than two arguments we want ifname to remain NULL and if we have a second argument (or more) we want to use that as the interface name to bind to.
2011-05-14ipaccess-find: Work without providing an interface nameHolger Hans Peter Freyther1-3/+2
This will use the default route of the operating system, e.g. be able to use ipaccess-find without special permission.
2011-05-12misc: Use the osmo_init code for signals and loggingHolger Hans Peter Freyther2-19/+12
Use the libosmocore code to ignore certain signals by default (e.g. SIGHUP, SIGPIPE) and use the new code to create a default stderr logging target and initialize it properly.
2011-05-07src: use namespace prefix osmo_* for misc utilsPablo Neira Ayuso4-9/+9
Summary of changes: s/bcd2char/osmo_bcd2char/g s/char2bcd/osmo_char2bcd/g s/hexparse/osmo_hexparse/g s/hexdump/osmo_hexdump/g s/hexdump_nospc/osmo_hexdump_nospc/g s/ubit_dump/osmo_ubit_dump/g s/static_assert/osmo_static_assert/g
2011-05-06src: use namespace prefix osmo_signal*Pablo Neira Ayuso2-4/+4
Summary of changes: s/signal_cbfn/osmo_signal_cbfn/g s/register_signal_handler/osmo_signal_register_handler/g s/unregister_signal_handler/osmo_signal_unregister_handler/g s/dispatch_signal/osmo_signal_dispatch/g
2011-05-06src: use namespace prefix osmo_fd* and osmo_select*Pablo Neira Ayuso3-38/+38
Summary of changes: s/struct bsc_fd/struct osmo_fd/g s/bsc_register_fd/osmo_fd_register/g s/bsc_unregister_fd/osmo_fd_unregister/g s/bsc_select_main/osmo_select_main/g
2011-05-06src: use namespace prefix osmo_timer* for timer functionsPablo Neira Ayuso2-7/+7
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-04-18misc: Remove sys/types.h includes from the filesHolger Hans Peter Freyther3-3/+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 Freyther4-35/+35
This was done with sed on the files.
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-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