aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2016-12-11NULL safety: sccp_create_sccp_addr: copy only non-NULL sock->gtiNeels Hofmeyr1-2/+4
presumably, sock->gti_len is always zero when sock->gti is NULL, but ensure with a check and make coverity scan happy. Change-Id: I6cf195a3fbda1d9eacbbaec9a0e7f5b4c154f428 Fixes: coverity CID#57683
2016-11-11mtp_parse_test: Comment out unused but defined packetsHarald Welte1-7/+9
Change-Id: I837eee6cc6e2bdea65988b19d9e15601eda44589
2016-11-11sua: Remove unused 'cur' variablesHarald Welte1-2/+0
There are some compiler warnings about other unused variables which we rather keep as a reminder that the SUA code is partially incomplete and should be finished at some day. Change-Id: I42b76351f1bbdfb7fe339d5fad98c5a065822a45
2016-11-03Revert "Fix the .pc files so the -l arg matches the installed libraries"Neels Hofmeyr2-2/+2
This reverts commit ed9e76e46e530faf2560fc875ecbe83faff8d809. The libraries in src/ do not have 'osmo' in their name, hence neither in $prefix/lib. This patch caused linking failure. Reproduce: do not have libosmo-sccp installed in the system and make sure no older pkg-config pc files are around. Build all dependencies with an arbitrary --prefix passed to configure scripts. Point PKG_CONFIG_PATH (and optionally LD_LIBRARY_PATH) to this prefix. Finally, build openbsc using the same --prefix: even though libosmo-sccp has been installed, it complains: CCLD osmo-bsc_nat /usr/bin/ld: cannot find -losmo-sccp collect2: error: ld returned 1 exit status Makefile:447: recipe for target 'osmo-bsc_nat' failed Change-Id: I1a113604b2f037b897954fe8d370291d3c1e2a0a
2016-11-03Add missing xua.pc fileArran Cudbard-Bell3-1/+12
Change-Id: I5081799e1d7c7f5f3206e5f38060540bb4e3289b Signed-off-by: Arran Cudbard-Bell <a.cudbardb@freeradius.org>
2016-11-02Fix the .pc files so the -l arg matches the installed librariesArran Cudbard-Bell2-2/+2
Change-Id: I967f3c3031777837fee8717ca3f6bb59d6614149
2016-10-07jenkins.sh: use osmo-build-dep.sh, log test failuresNeels Hofmeyr1-24/+24
Like in libosmo-abis' jenkins.sh Change-Id: I4e462e2c92db14b6c2e18b212779761f2e1829af
2016-10-01configure: check for pkg-config presenceNeels Hofmeyr1-0/+7
Change-Id: I0066b33ce59d1e107ca8e7389599b232a033ba2e
2016-10-01build: be robust against install-sh files above the root dirNeels Hofmeyr1-0/+3
Explicitly set AC_CONFIG_AUX_DIR. To reproduce the error avoided by this patch: rm install-sh # in case it was already generated. touch ../install-sh # yes, outside this source tree autoreconf -fi This will produce an error like ... configure.ac:16: error: required file '../ltmain.sh' not found configure.ac:5: installing '../missing' src/Makefile.am: installing '../depcomp' autoreconf: automake failed with exit status: 1 See also automake (vim `which automake`) and look for 'sub locate_aux_dir'. Change-Id: Iec88e41c1fe80b436d6d08005871bead540e387d
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 Hofmeyr6-56/+56
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-06-14fix log msg typo, x5Neels Hofmeyr1-5/+5
Change-Id: I00ff99ef14d62d3b353fe69762ae49f374938f94 Reviewed-on: https://gerrit.osmocom.org/265 Tested-by: Jenkins Builder Reviewed-by: Harald Welte <laforge@gnumonks.org>
2016-06-14clarify fixme comment, x7Neels Hofmeyr1-7/+7
The fixme is about an actual message sent back, not about the error log. Change-Id: I6de8fb202c7beb025232e9b97605e9f46778506a Reviewed-on: https://gerrit.osmocom.org/228 Tested-by: Jenkins Builder Reviewed-by: Harald Welte <laforge@gnumonks.org>
2016-05-25debian: Make upgrading from debian SID easierHolger Hans Peter Freyther1-0/+6
Make sure the version number of this sourcepackage is higher than the one found in Debian SID. Change-Id: I87534954c1f4b499e27452382df412454ea16b64 Reviewed-on: https://gerrit.osmocom.org/109 Tested-by: Jenkins Builder Reviewed-by: Holger Freyther <holger@freyther.de>
2016-05-23Ignore more build/libtool productsArran Cudbard-Bell1-0/+9
Change-Id: I7b0825112afcb630f40b2d2670952e0beea0a436 Reviewed-on: https://gerrit.osmocom.org/72 Tested-by: Jenkins Builder Reviewed-by: Holger Freyther <holger@freyther.de>
2016-04-16sua_test_common.c: use global RANAP SSN definitionNeels Hofmeyr1-4/+2
The test 'hardcoded' a local define for RANAP SSN as 142, instead use the proper OSMO_SCCP_SSN_RANAP define from sccp_sap.h
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.
2016-04-13jenkins: Add the build script from jenkins hereHolger Hans Peter Freyther1-0/+33
This can be used to replicate a build issue more easily.
2016-03-05debian: Require libosmo-netif+sctp headerHolger Hans Peter Freyther1-1/+1
As part of SUA+SCTP we need this.
2016-02-12Fix for big-endian architecturesRuben Undheim1-0/+12
2016-01-06fix format string compiler warnings (%zu for size_t)Harald Welte1-2/+2
2016-01-06Fix required version of libosmo-netifMax1-1/+1
Sponsored-by: On-Waves ehf Signed-off-by: Max <msuraev@sysmocom.de>
2015-12-26sua: Attempt to fix make distcheckHolger Hans Peter Freyther1-0/+1
2015-12-25Add missing OSMO_SCCP_SSN_RANAP for RANAP SSNHarald Welte1-0/+1
2015-12-24fix build if depenedencies are in distinct directoriesAlexander Huemer1-1/+1
2015-12-23fix some recently-introduced compiler warningsHarald Welte2-1/+2
2015-12-23Properly define SCCP_SAP_USER without random magic numberHarald Welte3-4/+8
2015-12-22sccp.c: Fix compiler warnings about size_t / %uHarald Welte1-3/+3
2015-12-22Add some SUA client and server example codeHarald Welte7-1/+266
2015-12-22libosmo-sigtran: Add pkg-config integrationHarald Welte3-1/+12
2015-12-22Import SUA (SCCP User Adaptation) and SCCP User SAPHarald Welte17-9/+1844
... 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-08-01debian: Prepare a new release0.7.0Holger Hans Peter Freyther1-1/+7
2015-06-19build: Fix "make distcheck"Andreas Rottmann1-0/+2
Running "make distcheck" failed trying to generate ".version" into the read-only unpacked source directory. Actually shipping ".version" in the tarball fixes that. The error manifested as: make[1]: Entering directory '/tmp/build/libosmo-sccp-0.0.6.3.24-758d/_build' echo 0.0.6.3.24-758d > ../.version-t && mv ../.version-t ../.version /bin/bash: ../.version-t: Permission denied Makefile:807: recipe for target '../.version' failed
2015-06-19gitignore: Add 'compile'Andreas Rottmann1-0/+1
This file is dropped into the top-level source directory by "autoreconf -i".
2015-06-15sccp: Allow to specify the context of the incoming messageHolger Hans Peter Freyther2-7/+13
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-04-16debian: Build new version of the packageHolger Hans Peter Freyther1-1/+7
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 Freyther2-0/+15
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 Freyther8-85/+81
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 Freyther10-32/+147
Begin with type definitions for m3ua
2015-03-22endian: Use new osmocom/core/endian.hHolger Hans Peter Freyther3-19/+20
Use the new osmocom/core/endian.h to gaim portability. This has only been compiled/make check on two little endian systems.
2015-03-14debian: Add misc depends as wanted by lintianHolger Hans Peter Freyther1-0/+1
libosmo-sccp source: debhelper-but-no-misc-depends libosmo-sccp-dev
2015-03-14debian: Bump the versionHolger Hans Peter Freyther1-0/+6
2015-03-14debian: By definition this only creates a dev packageHolger Hans Peter Freyther6-25/+0