aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
AgeCommit message (Collapse)AuthorFilesLines
2010-07-02[SGSN] LLC: only copy Kc if algorithm != GPRS_ALGO_GEA0Harald Welte1-1/+2
The caller currently has set the Kc pointer to NULL, this fix avoids crashing at the callee.
2010-07-02[SGSN] use GPRS_ALGO_GEA0 instead of '0'Harald Welte1-6/+11
2010-07-02[SGSN] LLC: Make sure we calculate FCS after decryptionHarald Welte1-10/+5
2010-07-02[SGSN] Use libosmocore GPRS encryption plugins from LLC layerHarald Welte2-8/+100
This adds the bits that call into libosmocore (and its plugins) to implement GPRS (LLC) encryption.
2010-07-02[SGSN] Call libosmocore helper to load cipher pluginsHarald Welte4-7/+11
2010-07-02[SGSN] remove bogus debug statementHarald Welte1-1/+0
2010-07-02[SGSN] SM: Properly parse APN and PCO Optional IE in PDP CTX ACT REQHarald Welte1-2/+8
2010-07-02[SGSN] Print AP name and PDP address of each PDP contextHarald Welte1-1/+70
2010-07-02[SGSN] Correctly pass IMSI of MM ctx to GTP/GGSNHarald Welte1-1/+27
2010-07-02[SGSN] SNDCP: Subtract SNDCP header from fragment lengthHarald Welte1-2/+3
We don't want to store too many bytes as we would otherwise create too large re-assembled packets..
2010-07-02[SGSN] SNDCP: SN-PDUs need a 16bit length fieldHarald Welte1-1/+2
The BSSGP LLC-PDU IE can have up ot 16bit length, so subtracting the LLC header the SN-PDU can still have almost a length field close to 0xffff
2010-07-02[SGSN] SNDCP: re-set total number of fragment lengthHarald Welte1-1/+7
2010-07-02[SGSN] Send poper SM and GMM STATUS in case we have no MM CTXHarald Welte1-1/+2
2010-07-02[SNDCP] some more defragmentation debug statementsHarald Welte1-11/+9
2010-07-02[SGSN] SNDCP defrag: use correct length, don't include LLC FCSHarald Welte1-3/+4
The LLC layer tells us the PDU length, and we have to use it in SNDCP rather than to re-calculate it if we want to avoid copying the CRC24 into the defrag elements.
2010-07-02[SGSN] SNDCP: Actually copy the payload data in the defrag queue entryHarald Welte1-0/+2
Prior to this patch our defragmented messages always consisted of 00-bytes
2010-07-02[SGSN] Remove old dead codeHarald Welte1-17/+14
2010-07-02[SGSN] Only increment PDP CTX ACT count after check for retransmissionHarald Welte1-2/+4
2010-07-02[SGSN] Account for re-transmitted PDP CTX ACT REQHarald Welte1-2/+11
In case our PDP CTX ACT ACK gets lost on the Gb or Um link, the MS re-transmits the PDP CTX ACT REQ. We have to ACK it again instead of REJecting it..
2010-07-02[SGSN] SNDCP: Fix off-by-one error missing last segment in defragHarald Welte1-1/+1
When we defragment the segments from the defrage queue, we have to iterate all the way up to (and including) the last segment number that we have received.
2010-07-01[SGSN] SNDCP: more verbose defragmentation debuggingHarald Welte1-2/+8
2010-07-01[SGSN] Fix segfault when passing re-assembled SN-PDU to GMMHarald Welte4-10/+12
sgsn_rx_sndcp_ud_ind() can no longer make the assumption that msgb_bcid() is valid, as this is only true for an un-fragmented SN-PDU. So instead, we now store the RAID in the SNDCP Entity and pass it as an explicit argument to sgsn_rx_sndcp_ud_ind().
2010-07-01[SGSN] SNDCP: fix off-by-one error during defragmentationHarald Welte1-1/+1
2010-07-01[SGSN] SNDCP: Initialize defrag list headerHarald Welte1-0/+1
2010-07-01[SGSN] GMM: Complete value_string for GMM cause valuesHarald Welte1-4/+21
2010-07-01[SGSN] SNDCP: use llist_for_each_entry_safe() when cleaning frag queueHarald Welte1-2/+2
2010-07-01[SGSN] Fix TLLI (re)assignmentsHarald Welte2-16/+21
Once The TLLI (or P-TMSI of which it is derived) change has been confirmed by the MS, we need to unassign the old TLLI but keep the new TLLI _without_ re-setting the LLC entity structure such as VUsend /VUrecv counters.
2010-07-01[SGSN] Fix segfault when doing PS PAGINGHarald Welte1-1/+1
The 'bssgp_paging_info' contains a pointer to the P-TMSI, and not the P-TMSI itself. The reason is that it is an optional BSSGP IE.
2010-07-01[SGSN] Add VTY interface for SNDCPHarald Welte5-68/+159
2010-06-30osmo_bsc: Add option parsing, vty dummyHolger Hans Peter Freyther3-1/+182
Add dummy files and option parsing for the Osmo BSC code.
2010-06-30bsc: Move meas_rep.c into the libbsc.c as it is used from bsc_vty.cHolger Hans Peter Freyther1-2/+2
2010-06-30osmo_bsc: Add empty osmo_bsc_main.c and hook it into the buildHolger Hans Peter Freyther4-1/+43
2010-06-30bsc_api: Move the API init into the main function.Holger Hans Peter Freyther2-2/+2
The BSC API will not be used until the first iteration through the event loop so it is safe to call it after the bootstrap.
2010-06-30osmo-bsc: Start adding code for the osmo_bsc..Holger Hans Peter Freyther3-1/+271
This adds the unix domain socket rf control protocol into the new subdirectory.
2010-06-30* Fix null ptr dereference and sms memleak in case the recipient of an sms ↵Nico Golde1-6/+10
sent via vty is not attached. Store the sms in the database in this case for later delivery. The problem is that sms_from_text returns NULL in case the subscriber is not attached which a) leaks memory of the previously allocated sms and b) runs into a null ptr dereference in _send_sms_str(). There may be a better solution than this but this is the easiest way of noticing and taking action I could find without changing return values of sms_from_text.
2010-06-30[BSC] VTY: Fix parsing of uppercase hex digitsHarald Welte1-1/+1
2010-06-30[SGSN] BSSGP: Print TLLI as hex value like everwhere elseHarald Welte1-1/+1
2010-06-30handover: lchan_free will only free the local resources.Holger Hans Peter Freyther1-1/+3
lchan_free only free's the local resource of the BSC but does not release the channel at the BTS. Use lchan_release to properly release the channel. This code assumes that the timeout happens after a CHAN ACT ACK/NACK otherwise we have some problems. The comment indicates that this is the case.
2010-06-30handover: Call bsc_handover_clear from gsm0808_clearHolger Hans Peter Freyther4-7/+35
The bsc_handover_clear will release an in-progress handover and free the lchana and the data associated with this handover
2010-06-30misc: Move handover_logic.c into the libbsc.aHolger Hans Peter Freyther3-10/+10
We are implementing the intra BSC handover so we should have the code in the BSC as well.
2010-06-30msc: Add includes to silence a compiler warning.Holger Hans Peter Freyther4-0/+4
2010-06-30handover: Attempt to use the same gsm_subscriber_conn for new/old channelHolger Hans Peter Freyther5-35/+34
The transaction should not know on which lchan we are operating as this can change due handover. Add untested code to share the subscriber connection of the new and old lchan and move the pointer in case of success/failure. Also on a clear command we will free any resources allocated... This code is not tested and needs to be debugged, but it should have the right structure. I am going to fix a potential memleak in the next commit.
2010-06-30bsc_api: Avoid use after free kind of error on the lchan.Holger Hans Peter Freyther1-1/+4
2010-06-30ussd: Release the MSC connection as fast as possible..Holger Hans Peter Freyther1-2/+6
2010-06-30abis_rsl: Add full MA again until we are confident to remove itHolger Hans Peter Freyther1-1/+6
The spec seems to say we do not need to include the full MA, even for Phase1 phones but that is not so clear...
2010-06-30abis_rsl: Change code to generate Channel IdentificationHolger Hans Peter Freyther1-19/+16
1.) memset the gsm48_chan_desc to avoid sending dummy data 2.) According to the GSM08.58 9.3.5 the Mobile Allocation shall be included but the empty (by setting the length to zero). 3.) use msgb_tlv_put and calculate the length via the l3h msgb_l3len and assign it.
2010-06-30ussd.c: Make sure text is memset to zero..Holger Hans Peter Freyther1-1/+3
Make the strstr fail fast, make sure the text is null terminated...
2010-06-30gsm_subscriber_base: Take a ref on the subscriber to avoid use after freeHolger Hans Peter Freyther1-2/+4
On expired paging we might access a GSM Subscriber that has already been deleted. To avoid this we will add a subscr_get/subscr_put for the subscriber to the allocation and release path of the request. Reported-by: Richard Zahoransky
2010-06-29[BSC] RSL: CHAN ACT: Only include MA if TS is hoppingHarald Welte1-5/+13
2010-06-28[SGSN] Deactivate SNDCP entity on PDP CTX DEACT CONFIRMHarald Welte1-0/+3
Otherwise we will end up leaking memory in the SNDCP layer...