Commit Graph

140 Commits

Author SHA1 Message Date
Holger Hans Peter Freyther 72df7f09ec tests: Run the existing tests with GNU Autotest
SCCP: Use DST/SRC Ref instead of the pointer value to create
stable releases.
2011-11-20 12:11:57 +01:00
Harald Welte ebd4f4563c {m2ua,sccp}_test: use (void) ANSI function declarations 2011-07-16 14:49:35 +02:00
Holger Hans Peter Freyther ef8fc3bf28 misc: Fix the log_init init call with a recent libosmocore 2011-06-30 20:44:01 +02:00
Holger Hans Peter Freyther 84406e2779 sccp: Make sccp_write take an additional local context
For connection less data there is no way to pass a per context
data for outgoing data, add one.
2011-06-04 16:55:50 +02:00
Harald Welte 8be06bc288 tests: update to libosmocore namespace prefix (osmo_) 2011-05-08 09:45:10 +02:00
Harald Welte 2d97000f98 Update include paths with libosmocore 0.2.0 2011-03-23 18:30:22 +01:00
Holger Hans Peter Freyther aa914ef127 m2ua: Pad the data properly, read over the padding properly 2011-01-14 18:33:44 +01:00
Holger Hans Peter Freyther ecc75459f2 m2ua: Move the test into a new function. 2011-01-14 18:18:10 +01:00
Holger Hans Peter Freyther 9566027b07 m2ua: Implement to find a tag inside a message 2011-01-13 13:53:26 +01:00
Holger Hans Peter Freyther d9447ba5e6 m2ua: Free the resources at the end 2011-01-13 13:53:26 +01:00
Holger Hans Peter Freyther 17cf0fec57 build: Fix building on maverick 2011-01-13 18:20:17 +08:00
Holger Hans Peter Freyther f3b7effbc1 m2ua: Add parsing and creation of m2ua packages 2011-01-12 12:50:09 +01:00
Holger Hans Peter Freyther 2ae23e4b02 sccp: Print the wrong data so one can compare it. 2010-11-26 18:17:28 +01:00
Holger Hans Peter Freyther 039c7adcd5 sccp: Add a test case for GTI creation, set the SSN indicator bit
Make sure that creating an address that should be routed based on
the GTI can be created properly.
2010-11-26 18:17:28 +01:00
Wenbin WU 4698d27f4c sccp_test: Add a test case for SCCP Addresses with POI 2010-11-26 18:17:28 +01:00
Holger Hans Peter Freyther 13cd1199b9 sccp: Rewrite the sccp_test_addr to set the size correctly
Fix the code to set the number of consumed bytes correctly
and return the number of bytes consumed for for the address.

Add a simple but expandable test case to test the SCCP address
2010-11-16 20:56:08 +01:00
Holger Hans Peter Freyther 27cdccf74a sccp: Pass the sccp_connection down to the send method if it exists
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-25 12:01:12 +08:00
Holger Hans Peter Freyther 00e6f692e9 mtp: Add the MTP Level3 code to the SCCP repoistory
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-01 17:01:26 +08:00
Holger Hans Peter Freyther 68b7e8bd60 sccp: Rename the SCCP file and delete the sccp/ directory.. 2010-08-01 05:30:55 +08:00
Holger Hans Peter Freyther ce7190d462 sccp: Add test case for GTI... 2010-08-01 04:57:41 +08:00
Holger Hans Peter Freyther f7630e662c sccp_test: Add debug code to the test app to have extended debugging 2010-07-31 22:13:15 +08:00
Holger Hans Peter Freyther aa45e92b0c sccp_test: Compile the sccp.c directly into the binary
Do not link to the static library, but include the single
source file to always have an up-to-date binary without
dependencies between Makefiles.
2010-07-31 06:05:43 +08:00
Holger Hans Peter Freyther ce7afe40e2 sccp_test: Change FAIL to abort immediately, remove code after a FAIL
Abort the test case in case of any failure.
2010-07-31 06:04:00 +08:00
Holger Hans Peter Freyther 17097d06b5 sccp: Add a new buildsystem for the OSMO SCCP library 2010-07-30 02:13:37 +08:00
Holger Hans Peter Freyther e4cb3e039b sccp: Adjust the code to only depend on libosmocore
* 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-30 02:12:02 +08:00
Holger Hans Peter Freyther be76a717e0 sccp: u_int16_t -> uint16_t 2010-07-23 18:39:39 +08:00
Holger Hans Peter Freyther acd31a3ac4 sccp: u_int8_t -> uint8_t 2010-07-23 18:39:17 +08:00
Holger Hans Peter Freyther c459c0491a [sccp] Parse the error message and add a unit test for it. 2010-04-25 23:04:38 +08:00
Holger Hans Peter Freyther a9e39c3264 sccp: Change the ownership of the msgb passed to the callback
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.
2010-03-26 05:44:21 +01:00
Holger Hans Peter Freyther be49ea0601 Merge remote branch 'origin/master' into on-waves/sccp 2010-02-26 20:18:24 +01:00
Holger Hans Peter Freyther 5d074c7ee2 [misc] Add LIBOSMOCORE_CFLAGS to the includes 2010-02-26 20:10:58 +01:00
Holger Hans Peter Freyther d8879f86ae [sccp] Implement parsing the rather easy IT messages. 2010-02-26 19:26:35 +01:00
Harald Welte 6886ad5f66 finish openbsc / libosmocore separation
* use pkg-config from openbsc to find header and library
* move sms and timer tests to libosmocore itself
* ensure "make distcheck" works on both packages
2010-02-20 17:29:27 +01:00
Holger Hans Peter Freyther 756aaadf5b Merge branch 'on-waves/sccp' 2010-02-12 22:52:12 +01:00
Holger Hans Peter Freyther 63cd135faa [sccp] Make the file includable outside of OpenBSC 2010-02-12 22:51:24 +01:00
Holger Hans Peter Freyther b56abb5531 liblaf0rge: Make the other targets depend on the liblaforge...
Everything is linking fine here.
2010-02-09 22:04:09 +01:00
Holger Hans Peter Freyther 90d7490a24 [sccp] Refer to the right Company in the Copyright/Copyleft line
Use On-Waves instead of the name I made up from the domain name.
2010-02-03 18:17:49 +01:00
Holger Hans Peter Freyther 48174be908 [sccp] Provide dummy db_store_counter... 2009-12-23 05:13:48 +01:00
Holger Hans Peter Freyther 2ac75aeb4d [sccp] Implement sending the Inactivity Test on a connection..
Currently this will send a dummy inactivity test message,
there is currently no parsing or API to receive the messages.

The sequencing and credit entries are empty as sequencing
is currently not used at all.

The test is currently limited to send the message and see
if the application is crashing or not.
2009-11-20 13:09:15 +01:00
Holger Hans Peter Freyther 8bfd8d1648 [sccp] Implement parts of ITU SCCP for use in the A-Interface
include/sccp/sccp_types.h contain Q.713 and GSM definitions
include/sccp/sccp.h is the application interface resembling
                    the esentials of the UNIX socket interface.

src/sccp.c is the actual implementation of SCCP featuring
           connection and UDT1 support.

tests/sccp/sccp.c is testing connection creation and formating
                  of the SCCP messages used by the A-interface. And
                  it contains a simple fuzzing test to test the
                  robustnes of the implementation.
2009-11-20 13:09:15 +01:00