aboutsummaryrefslogtreecommitdiffstats
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2017-04-10sccp_sap: Use zero-terminated string for GT digits in osmo_sccp_addrHarald Welte1-2/+1
This is more natural to most application code, so simply go for ASCII string with NUL-termination rather than an array with explicit length. Change-Id: I6312208cdfa83184be41157a473c96e9120c63db
2017-04-10xua_msg: Add concept of xua_msg_class and xua_msg_dialectHarald Welte1-0/+24
A xua_msg_class repreents one xUA message class (like M3UA XFER or SUA CL). A dialect is then something like SUA or M3UA, each consisting of as many as 256 message classes. Each class contains value_strings of the individual messages, as well as constraint information on mandatory IEs for each message. Change-Id: Ib538aca295b7b50132bc814b2d7b56cbe5d65bfc
2017-04-10xua_msg: Add xua_msg_free_tag() and xua_msg_copy_part()Harald Welte1-1/+4
... also, mark input to xua_msg_find_tag as 'const' pointer. Change-Id: I083634db9c3606bcff87700f253054a38a20816d
2017-04-10sua.h: Add #define for the varius SUA protocol errorsHarald Welte1-0/+22
again using m3ua.h definitions as base whenever applicable. Change-Id: Iec2563cb158b1c18064671564a7502b5c4d82517
2017-04-10sua.h: Define more IEIs; base definitions on m3ua.hHarald Welte1-2/+13
A lot of IEIs are identical between the different xUA dialects, so let's base the SUA definitions on the m3ua definitions. Change-Id: I64c7166cf0b5c8a927ab7e14955100f8d13fe16a
2017-04-10Replace unused m3ua_types.h with protocol/m3ua.hHarald Welte3-130/+149
This is more in line with what we do for SUA in protocol/sua.h Change-Id: I4a32cb698d28b4ccff9280b8512557ab5a353fe3
2017-02-13Add xua_msg_part_get_u32() to get U32 value from xua_msg_partHarald Welte1-0/+1
Sometimes one already has the xua_msg_part and thus can avoid the lookup that's done by xua_msg_get_u32(). Change-Id: Ie11c35f9528313d0b35786a361d853addd17364f
2017-02-13sccp_helpers: Add osmo_sccp_{addr,gt}_dump() functionsHarald Welte1-0/+3
They stringify a global title or SCCP address for human consumption Change-Id: I630308aa4519c6e9a260419d37a376aac6a1ce28
2017-02-13Move xua_msg_add_sccp_addr() to xua_msg.h and export itHarald Welte1-0/+2
Change-Id: I07fa00dd71d8ecdf1542734598fab8ecad5a7b53
2017-02-13sccp/sccp.h: Add #include to linuxlist.hHarald Welte1-0/+2
sccp.h is using 'struct llist_head' so it must include the associated linuxlist.h header. Change-Id: I1fc4c34e59c27dce9e8a73abc6e58073f091c978
2017-02-13sccp_types.h: Include stdint.hHarald Welte1-0/+1
We're using types like uint8_t, for whcih we need stdint.h Change-Id: I67a3b94c866e05be32b99566d6f97fbc8a2accad
2017-02-13sccp_types.h: Add 'struct sccp_data_unitdata_service'Harald Welte1-0/+20
We didn't have as struct for UDTS messages so far, let's change that. Change-Id: I9cbd3980fd95d5af6f0fc807ede34aa6b0f64ea7
2017-02-13protocol/sua.h: Add #defines for CAUSE group values (from RFC)Harald Welte1-0/+7
Change-Id: I5b0af77aab4ba03262c0ecd25a893f170ca9c4bb
2017-02-13xua_msg: Make DXUA available to other XUA codeHarald Welte1-0/+2
Change-Id: Ie5b6492ead2c523de3969134291b2c3f434f92a2
2017-02-13migrate some generic XUA helpers from sua.c to xua_msg.cHarald Welte1-0/+7
Change-Id: I59e55d21a05b5d770c120da4c17220d5f21d44bd
2017-02-13sccp_helpers: add convenience function for RANAP unitdataNeels Hofmeyr1-0/+5
Change-Id: Ie96d78512b8e3907753272d75471b882365968c4
2017-02-13sccp_helpers: add osmo_ prefix to all functionsNeels Hofmeyr1-21/+22
Change-Id: I839c976f3ac722b955da18216de3df2eaa4c5af3
2017-02-13sccp_helpers.h/.c: fix: apply rename of osmo_sua_link to osmo_sccp_linkNeels Hofmeyr1-6/+6
Change-Id: If8b09bb05297ebf663b4a04d3cc094a6a8087f53
2017-02-13Add sccp_helpers.[hc] moved from osmo-iuh, 1:1 at firstNeels Hofmeyr2-1/+36
Move here unchanged first, so we're able to see the modifications in diffs. Pending changes will follow in subsequent patches. Moved from osmo-iuh 3da8608b6ad014fc74536dbb49019704fd425b8c, which was before the rename of osmo_sua_link and osmo_sua_user to osmo_sccp_link and osmo_sccp_user, so this will not compile. Change-Id: Iae0c58c5f1eb00a685de70add0d5257e4316c6d5
2017-01-27cosmetic: add comments for GT, PC, SSN to help noobs finding their wayNeels Hofmeyr1-3/+3
Change-Id: I8f47f855c2718f4922b36229a388fa719c628bf6
2017-01-27add comment (meaning of COIT)Neels Hofmeyr1-1/+1
Change-Id: I63276ca2bfd6282676618e50268ed2234025b7bb
2017-01-27allow user to give private data to osmo_sua_user_create()Harald Welte1-1/+3
... which can be resolved from the primitive call back prim_cb() by calling osmo_sccp_link_get_user_priv(). Change-Id: If4c0f96f0621fb2adf4c78dc5994d3398431d92f
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