summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2015-11-15HACK: update osmo-mss to current masterlaforge/gancHarald Welte3-16/+5
... still, tons of unresolved symbols while linking that need to be resolved: undefined reference to `bsc_api_init' undefined reference to `calc_initial_idx' undefined reference to `rsl_ipacc_mdcx_to_rtpsock' undefined reference to `bsc_handover_pending' undefined reference to `rsl_ipacc_mdcx_to_rtpsock' undefined reference to `gsm48_tx_mm_serv_ack' undefined reference to `rsl_ipacc_mdcx' undefined reference to `rsl_ipacc_mdcx_to_rtpsock' undefined reference to `rsl_ipacc_mdcx_to_rtpsock' undefined reference to `gsm0808_assign_req' undefined reference to `rsl_ipacc_mdcx' undefined reference to `rsl_ipacc_mdcx' undefined reference to `gsm48_tx_mm_serv_rej' undefined reference to `gsm48_handle_paging_resp' undefined reference to `gsm48_tx_mm_serv_rej' undefined reference to `send_siemens_mrpci' undefined reference to `gsm48_tx_mm_serv_rej' undefined reference to `gsm0808_assign_req' undefined reference to `rsl_ipacc_mdcx' undefined reference to `tall_fle_ctx' undefined reference to `tall_paging_ctx'
2015-11-15ganc: use vTvLV_GAN TLV encoder/decoderHarald Welte1-9/+2
This is required to correctly parse and generate messages with IEs of length > 0x7F, like long SMS messages. A recent copy of libosmocore is required for the core TLV parser support (2fe6847 or later).
2015-11-15ganc: Store more data (GERAN LAC, MAC addr, ESSID, ...) of peerHarald Welte3-5/+119
We store more of the data sent by the MS during REGISTER, and show that data during 'show gan-peer'. Also, there is now a table view (show gan-peer) as well as a detailed view (show gan-peer details)
2015-11-15ganc: TCP typo fixHermann Gausterer1-1/+1
Signed-off-by: Hermann Gausterer <git-openbsc-2012@mrq1.org>
2015-11-15ganc: fix free() order between osmo_conn and gan_peerHarald Welte1-5/+9
2015-11-15ganc: Make sure to close tcp socket when closing ganc / track REG stateHarald Welte2-5/+50
We now track if a peer is REGISTERED or not, and only page him if he is registered. Furthermore, we look for old stale peer records and remove them, if we get a REGISTER on a new TCP connection.
2015-11-15ganc vty: show keep-alive time-out for every peer in vtyHarald Welte1-4/+16
2015-11-15ganc: implement release timer for gan_peerHarald Welte2-8/+51
If we didn't see a GA-RC KEEP ALIVE for more than twice TU3906, then we assume the peer is dead and simply drop the tcp connection.
2015-11-15ganc: actually read + use settings from the config fileHarald Welte3-2/+28
2015-11-15ganc: add VTY for 'show gan-peer' and configuring virtual btsHarald Welte3-1/+317
2015-11-15ganc: Add a FIXME about our msgb memory leakHarald Welte1-0/+1
2015-11-15ganc: extend ganc_bts with description and SEGW / GANC IP/portHarald Welte1-0/+7
2015-11-15ganc: destroy peer after read fails or RELEASE has been sentHarald Welte1-0/+14
this is not quite as per spec. We probably need a timer of twice the KEEPALIVE timer of the MS to determine the phone is gone.
2015-11-15ganc: Add peer to global list of peers in networkDieter Spaar1-0/+5
TODO: remove peer from that list once tcp connection closes
2015-11-15ganc: use different host name for default UNCHarald Welte1-1/+1
2015-11-15ganc: implement sending of GA-CSR RELEASEDieter Spaar1-0/+17
2015-11-15ganc: announce < R99 MSC to avoid sequence number in msg_typeHarald Welte1-0/+4
>= R99 MSCs expect sequence numbers in the opper 2 bits of the message type of MS-originated >L3 messages. Our MSC code doesn't really deal with this yet, so don't announce R99 :)
2015-11-15ganc_data: add linked list to connect objectsHarald Welte2-1/+17
the peer needs a reference to a sccp connection, and the network needs to have a list of peers and a list of mscs.
2015-11-15experinmental and incomplete hack trying to build separate MSCHarald Welte8-227/+692
2015-11-15ganc: fix segfault during memset()Harald Welte1-1/+1
2015-11-15ganc: change hard-coded MCC/MNC to 901-70Harald Welte1-2/+2
right now we use 901-70 based IMSIs for testing - but this of course needs to become vty configurable soon.
2015-11-15ganc: add (currently unused) functions for PAGING REQ and DL XFERHarald Welte1-0/+33
2015-11-15ganc: properly zero-initialize the GAN CCH description IEHarald Welte1-0/+3
As Dieter points out, the structure was not properly zero-initialized...
2015-11-15Use uint16_t for MCC and MNCHarald Welte1-2/+2
As Dieter correctly points out, MCC an MNC can very well be lager than 255 ;)
2015-11-15ganc: don't put IP addressess as string into a FQDN attributeHarald Welte1-3/+26
... there is a separate IP address IE that should be used for this. Otherwise, devices may treat 1.2.3.4 as a hostname and make forward dns lookups on it ;)
2015-11-15ganc: handle classmark changeHarald Welte2-2/+29
2015-11-15ganc: fix TLV parsing and dump L3 content as hexHarald Welte2-42/+83
2015-11-15ganc: process some more messagesHarald Welte2-15/+82
2015-11-15ganc: update copyright headersHarald Welte3-0/+40
2015-11-15ganc: Correctly return DISCOVERY ACCEPT and REGISTRATION ACCEPTHarald Welte5-16/+197
2015-11-15ganc: fix code to do naything useful at allHarald Welte2-12/+46
2015-11-15osmo-ganc: actually register the accepted fd's with select loopHarald Welte1-0/+3
2015-11-15initial skeleton for accepting UMA/GAN connectionsHarald Welte8-1/+597
2015-11-10sgsn_vty.c: fix typoNeels Hofmeyr1-1/+1
2015-11-10gbproxy: Count more GSM 04.08 messagesHolger Hans Peter Freyther4-0/+654
Extend the ul/dl counting to count the usual messages on the Gb interface. Add counters for the attach, routing area update, pdp context activation and deactivation procedures. Update the test result with the new counters.
2015-11-05Fix Warning: openbsc implicit-pointer-decl meas_udp2db.c:50Martin Hauke1-0/+1
2015-11-05Fix no-return-in-nonvoid-function meas_vis.cMartin Hauke1-0/+2
RPM post-build-checks found some issue and marks these as error: [ 38s] I: Program returns random data in a function [ 38s] E: openbsc no-return-in-nonvoid-function meas_vis.c:118
2015-11-02stats/mgcp: Initialize the statistics for MGCP as wellHolger Hans Peter Freyther1-0/+7
There are currently no reate counters but this will hopefully change in the near future.
2015-11-02stats: Set class_id in rate_ctr group descriptionsJacob Erlbeck5-0/+11
This commit adds the class_id initialiser to all rate_ctr_group_desc definitions. Sponsored-by: On-Waves ehf
2015-11-02stats: Enable stats for sgsn, gbproxy, nitb, bsc, natJacob Erlbeck6-1/+19
This commit initialises and enables the stats subsystem for the given binaries. Sponsored-by: On-Waves ehf
2015-11-02mgcp_osmux: available circuit IDs from 0 to 255, not from 0 to 128Pablo Neira Ayuso2-2/+2
Holger reports that the bitmap that accounts for available Osmux circuit IDs is limited to 128, when the maximum number of circuit IDs are determined by the uint8_t field in the header (ie. 256 circuits). [hfreyther: Update the testcase now that we have more ids to allocate]
2015-11-02oap: add OAP config to VTYNeels Hofmeyr1-0/+91
Sponsored-by: On-Waves ehf
2015-11-02gsup/oap: add OAP to GSUP client.Neels Hofmeyr5-8/+62
Trigger an OAP registration upon IPA connect. Feed incoming OAP messages to oap_handle() and send replies returned by it. Add oap_config to sgsn_config (todo: vty). Sponsored-by: On-Waves ehf [hfreyther: Fix coding style]
2015-11-02oap: add OAP API testNeels Hofmeyr2-5/+195
Sponsored-by: On-Waves ehf
2015-11-02oap: add oap testsuite skeletonNeels Hofmeyr7-1/+89
Sponsored-by: On-Waves ehf
2015-11-02oap: implement initial OAP API.Neels Hofmeyr6-2/+586
Add oap.[hc] and oap_messages.[hc]. Sponsored-by: On-Waves ehf
2015-11-02libcommon: soak up three static functions.Neels Hofmeyr7-43/+90
Add new kitchen sink openbsc/utils.h and libcommon/utils.c to make three so far static functions public (so I can use them in the upcoming OAP code). A place to put them could have been the gprs_utils.h, but all general functions in there have a gprs_ prefix, and todo markings to move them away. All other libcommon headers are too specific, so I opened up this kitchen sink header. Replace the implementation of encode_big_endian() with a call to osmo_store64be_ext(). See comments. Apply the change in Makefiles and C files.
2015-11-02sgsn: Fix up the VTY doc stringsHolger Hans Peter Freyther1-2/+2
The documentation needs to end with a \n and T3316 needs to have some text. I think it is the T3316 timer that has no action on the network side. <command id='timer t3312 &lt;0-65535&gt;'> <param name='&lt;0-65535&gt;' doc='(null)' /> Documentation error (missing docs): <command id='timer t3322 &lt;0-65535&gt;'> <param name='&lt;0-65535&gt;' doc='(null)' /> Documentation error (missing docs): <command id='timer t3350 &lt;0-65535&gt;'> <param name='&lt;0-65535&gt;' doc='(null)' /> Documentation error (missing docs): <command id='timer t3360 &lt;0-65535&gt;'> <param name='&lt;0-65535&gt;' doc='(null)' /> Documentation error (missing docs): <command id='timer t3370 &lt;0-65535&gt;'> <param name='&lt;0-65535&gt;' doc='(null)' /> Documentation error (missing docs): <command id='timer t3313 &lt;0-65535&gt;'> <param name='&lt;0-65535&gt;' doc='(null)' /> Documentation error (missing docs): <command id='timer t3314 &lt;0-65535&gt;'> <param name='&lt;0-65535&gt;' doc='(null)' /> Documentation error (missing docs): <command id='timer t3316 &lt;0-65535&gt;'> <param name='&lt;0-65535&gt;' doc='(null)' /> Documentation error (missing docs): <command id='timer t3385 &lt;0-65535&gt;'> <param name='&lt;0-65535&gt;' doc='(null)' /> Documentation error (missing docs): <command id='timer t3386 &lt;0-65535&gt;'> <param name='&lt;0-65535&gt;' doc='(null)' /> Documentation error (missing docs): <command id='timer t3395 &lt;0-65535&gt;'> <param name='&lt;0-65535&gt;' doc='(null)' /> Documentation error (missing docs): <command id='timer t3397 &lt;0-65535&gt;'> <param name='&lt;0-65535&gt;' doc='(null)' />
2015-10-29SGSN: Fix typo in VTY license statement.Harald Welte1-1/+1
It mentioned AGPLv3+ and refers to the hyperlink of v3, but still stated "Version 2 or later". That was a typo at the time.
2015-10-13gprs/gb_proxy: Use RAND_bytes for gbproxy TLLI/TMSI allocationDaniel Willmann6-303/+329
This change has some implications for the test case. It manipulated bss_ptmsi_state and sgsn_tlli_state variables to make the output of rand_r() and thus the TLLI/TMSI used predictable. This possibility is gone when using RAND_bytes() so instead it is overridden by a function that returns a deterministic sequence of values (0x00dead00, 0x00dead01, ...). The test cases are adapted to expect these values instead of the pseudo random values before. The gbproxy_test stdout file changes as well, but only where the TLLI/TMSI is displayed (in the hex dumps as well as the TLLI cache entries). All other output is the same.