aboutsummaryrefslogtreecommitdiffstats
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2016-09-27allow user to give private data to osmo_sua_user_create()Harald Welte1-1/+3
... which can be resolved from the prim_cb() by calling osmo_sccp_link_get_user_priv().
2016-07-07fix struct member typo: repsonding_addr in osmo_scu_disconn_paramNeels Hofmeyr1-1/+1
By accident, I already fixed this typo in osmo-iuh, breaking the build. Instead of reverting there, fix it here. Change-Id: I4076fb37c0d94be7adff46e76465884a61c54c9a
2016-07-06cosmetic: rename osmo_sua_link and osmo_sua_user to osmo_sccp_*Neels Hofmeyr1-8/+8
hwelte requested this change for the addition of libiu in openbsc. In a conversation we came to the conclusion that a rename of these two opaque structs would suffice. This is the "upstream" rename and will require adaptation of: * the sysmocom/iu branch in this repository * the iu related branches in openbsc.git * the hnbgw and dummy_cn code in osmo-iuh.git See https://gerrit.osmocom.org/#/c/192/2/openbsc/src/libiu/iu.c@57 Change-Id: Icbf64dd96f8e0e27695df73d1144519b88360b94
2016-04-16Add more OSMO_SCCP_SSN_ definesHarald Welte1-0/+16
hopefully we should now know all that we ever expect to need.
2016-04-16Fix RANAP SSN: it's 142, not 143Neels Hofmeyr1-1/+1
143 is actually the SSN for RNSAP. Wireshark displayed a RNSAP message type and malformed packet warning until I fixed this to 142. Now I get the proper RANAP and id-Paging reported. There has been a reallocation for RANAP and RNSAP SSNs, though the old SSN for RANAP is apparently 32 (seen in a pcap from a real 3G network). When I send 32 instead of 142, wireshark also decodes the message as valid RANAP.
2015-12-25Add missing OSMO_SCCP_SSN_RANAP for RANAP SSNHarald Welte1-0/+1
2015-12-23Properly define SCCP_SAP_USER without random magic numberHarald Welte3-4/+8
2015-12-22Import SUA (SCCP User Adaptation) and SCCP User SAPHarald Welte11-3/+347
... this code originates from the osmo-iuh repository, but is now part of a new shared libosmo-sigtran.so library generated in this repository.
2015-06-15sccp: Allow to specify the context of the incoming messageHolger Hans Peter Freyther1-0/+1
At the time a SCCP CREF is sent there is no context anymore and the user of the API might not know where to return the message to. Allow to specify the incoming context and use it on the way out. There are no more callers of _send_msg which passes a NULL connection and a NULL context.
2015-03-24mtp: Correct the pointcode maskHolger Hans Peter Freyther1-1/+1
Taken from libosmocore
2015-03-24mtp: Add missing defines from cellmgr-ngHolger Hans Peter Freyther1-0/+8
2015-03-24mtp: Add implementation from cellmgrHolger Hans Peter Freyther1-1/+4
2015-03-24mtp: Convert to pragma onceHolger Hans Peter Freyther1-3/+1
This already fixes a clash of filenames in cellmgr-ng
2015-03-24mtp: Error about unknown endian as wellHolger Hans Peter Freyther1-0/+2
2015-03-24mtp: Implement reading the OPC/DPC for little endianHolger Hans Peter Freyther1-0/+5
2015-03-24m3ua: Add the definition of the protocol data headerHolger Hans Peter Freyther1-0/+15
2015-03-23xua: Generalize the m2ua_msg and call it xua_msgHolger Hans Peter Freyther4-35/+30
Generalize, this requires various API modifications but that is the most sane path forward.
2015-03-23XUA: Move m2ua headers to sigtran, create xua_types.h and m3ua_types.hHolger Hans Peter Freyther7-29/+144
Begin with type definitions for m3ua
2015-03-22endian: Use new osmocom/core/endian.hHolger Hans Peter Freyther2-18/+19
Use the new osmocom/core/endian.h to gaim portability. This has only been compiled/make check on two little endian systems.
2013-04-10sccp: Create sccp_create_cr and use it in the connection creationHolger Hans Peter Freyther1-1/+3
The data is optional in the in the CR msg so we have to check if the msgb is NULL or not.
2011-06-04sccp: Make sccp_write take an additional local context0.0.6Holger Hans Peter Freyther1-2/+3
For connection less data there is no way to pass a per context data for outgoing data, add one.
2011-03-23Update include paths with libosmocore 0.2.00.0.5Harald Welte1-1/+1
2011-02-25m2ua: Fix some defines found when moving this to Smalltalk0.0.4Holger Hans Peter Freyther1-2/+2
2011-01-22m2ua: Allow to set a log area for DM2UA.Holger Hans Peter Freyther1-0/+2
2011-01-13m2ua: Implement to find a tag inside a messageHolger Hans Peter Freyther1-0/+2
2011-01-12m2ua: Add parsing and creation of m2ua packagesHolger Hans Peter Freyther2-1/+55
2011-01-12m2ua: Add enum values for the parameters of the individual messagesHolger Hans Peter Freyther1-0/+137
2011-01-12m2ua: Add basic header file for the common structure of a M2UA msgHolger Hans Peter Freyther3-1/+164
2011-01-12mtp: Remove the mtp_data header file as it refers to the cellmgrHolger Hans Peter Freyther2-86/+1
2010-08-25sccp: Pass the sccp_connection down to the send method if it exists0.0.3Holger Hans Peter Freyther1-1/+2
This allows to identify the sccp connection and send the SCCP payload down to a different stream depending on the connection. It will be used by the bsc_msc_ip to keep multiple MSC connections open.
2010-08-03move include files to $(includedir)/osmocom/*Harald Welte2-2/+2
2010-08-02sccp.c: Make the create work with data + len to not have a msgbHolger Hans Peter Freyther1-1/+1
2010-08-02sccp: We have the gti_ind inside the address already.Holger Hans Peter Freyther1-1/+0
2010-08-01sccp: Allow to create a _udt message with the given parameter.Holger Hans Peter Freyther1-0/+2
2010-08-01mtp: Add the MTP Level3 code to the SCCP repoistoryHolger Hans Peter Freyther5-1/+282
SCCP can be wrapped inside the MTP Level3, and one can use it for link testing as well. This repository should be renamed to libosmo-itu or libosmo-ss7 and be a host to SS7 related encapsulation... The code is coming from the cellmgr-ng code.
2010-08-01sccp: Copy out pointers to the GTI into the parsed structure..Holger Hans Peter Freyther1-0/+4
2010-08-01sccp: Make it possible to have a POC inside the sockaddr_sccp.Holger Hans Peter Freyther1-0/+3
Embed the POC, add the indicator, add the POC byte.
2010-08-01sccp: Make it possible to put a GlobalTitle into the SCCP header.Holger Hans Peter Freyther1-0/+7
2010-07-30sccp: Add a new buildsystem for the OSMO SCCP libraryHolger Hans Peter Freyther1-0/+1
2010-07-30sccp: Adjust the code to only depend on libosmocoreHolger Hans Peter Freyther1-0/+5
* Introduce a method to set the value of the debug area to use and default it to -1. Turn the DSCCP enum into a local variable to make the log messages work. * Remove usage of openbsc and libbsc.a
2010-07-23sccp: u_int32_t -> uint32_tHolger Hans Peter Freyther1-2/+2
2010-07-23sccp: u_int8_t -> uint8_tHolger Hans Peter Freyther2-52/+52
2010-05-17[sccp] Add method to create a dt1 packet.Holger Hans Peter Freyther1-0/+1
2010-05-17[sccp] Create a method to create RLSD messages.Holger Hans Peter Freyther1-0/+1
2010-05-17[sccp] Create a SCCP CC creation routine.Holger Hans Peter Freyther1-0/+1
2010-05-15[sccp] Make it optional to send data on a SCCP Connection RefuseHolger Hans Peter Freyther1-1/+1
This can be used to send a Location Updating Reject down to the BSC when it is clear that a subscriber is not allowed.
2010-05-15[sccp] Export function to create SCCP Refuse message.Holger Hans Peter Freyther1-0/+2
2010-04-25[sccp] Parse the error message and add a unit test for it.Holger Hans Peter Freyther1-0/+6
2010-04-05[sccp] Add a force_free method for connectionsHolger Hans Peter Freyther1-0/+5
E.g. when the underlying connection transport medium is gone one needs to force to close SCCP connections, add this helper. It will remove the connection from the list of connections and it will free the data.
2010-03-26sccp: Change the ownership of the msgb passed to the callbackHolger Hans Peter Freyther1-1/+1
Instead of deleting the msgb within the SCCP library the implementor of the write callback needs to free it. This is required for non blocking io with the server.