Commit Graph

16 Commits

Author SHA1 Message Date
Harald Welte a4555c3430 check for osmo_fsm_register() failures and propagate error
Change-Id: Id8861144e4880383a173b7e6ae7860beebac09d9
2019-12-01 17:36:50 +01:00
Stefan Sperling b3d32cd25e remove unused -p option from getopt() call in sccp_demo_user
Change-Id: I31f30d8c855cb5faf3173987bfe5b36f5a585d02
Depends: I7432e6fc2617e0fd77a098fcd7d14abc40db7229
2018-07-20 13:41:00 +02:00
Stefan Sperling 118fc8a708 sccp_demo_user: use point code 23 for server and 1 for client
Fix previous commit 4dc9088cab which
broke this by using -1 for local and 23 for remote PC, for both
server and client.

Change-Id: I7432e6fc2617e0fd77a098fcd7d14abc40db7229
Related: OS#2666
2018-07-20 13:38:51 +02:00
Stefan Sperling 97db03a682 rename m3ua_example to sccp_demo_user
The new name allows for more natural naming of variables in TTCN3
code when this program is used as a TTCN3 test component.
Consider e.g. "SCCP_DEMO_USER_VTY" vs. "M3UA_EXAMPLE_VTY".

Change-Id: I92b5e16e765a1ac36371a16933389903628f8dfe
Related: OS#2666
2018-06-14 13:55:07 +02:00
Stefan Sperling 4dc9088cab make it possible to pass parameters to m3ua_example
There are plans to use the m3ua_example tool as an SCCP peer
for a TTCN3 test suite. Make it possible to pass paramters to
this tool so the user can override hard-coded default values
of IP addresses, ports, and point codes.

Change-Id: I52243ae926c76020de41c8dfc7263517c7263d7e
2018-06-12 19:00:10 +02:00
Pau Espin 7e3476dc76 use osmo_init_logging2
Change-Id: I0d45b9381125c496a691ac5da68190b7b3479fc3
2018-04-17 14:22:36 +02:00
Neels Hofmeyr 87fe4d66ea vty: skip installing cmds now always installed by default
vty_install_default() and install_default() will soon be deprecated.

Depends: I5021c64a787b63314e0f2f1cba0b8fc7bff4f09b
Change-Id: I185aa3a11cb63c893ed80f326f852bde95217321
2017-11-01 00:47:19 +01:00
Harald Welte 769e9354ab sccp_sap.h: Fix SSN for BSSAP and BSSAP-LE
* BSSAP is 254 on both MSC and BSC side: Add missing define
* BSSAP-LE (LCS Extension) has 250/251, adjust name to add -LE suffix

Change-Id: Iccec75cfc0cf16bd717a9bd4606d1e772c332ccc
2017-09-03 21:20:32 +02:00
Neels Hofmeyr 41b6803fd5 osmo_ss7_vty_init: ensure a talloc ctx is set by user
Drop the separate osmo_ss7_set_vty_alloc_ctx() because we are likely to forget
calling it. Instead, incorporate into osmo_ss7_vty_init_*() with a new ctx arg,
and set the static context var in vty_init_shared().

Change-Id: Id4e7f47979001f7856b0b3665c9e94982e75e490
2017-08-07 16:04:39 +02:00
Pau Espin f04e2f31ea sccp_test_vty: Fix compilation warning: Unused variable
Instead of removing the variable, leave it there with unused attribute
set because it is an example and gives extra information to potential
readers of the function (it provides you with the actual type of void* _scu).

Change-Id: Id5fddf261a7a75ee1d6e9aff0734065ebf8551ab
2017-06-22 06:23:04 +00:00
Harald Welte 04dee2f9e1 m3ua_example: Add SS7 and SCCP VTY
Change-Id: Id03d2f94d22445ada01917356a5ec5a8e4fa3fca
2017-04-14 20:25:50 +02:00
Harald Welte 9692449599 sccp_test_server: Don't use '0' as local reference
the '0' confuses the Ericsson SCCP code for Eclipse Titan, even though
the spec considers it permitted.

Change-Id: I21269a7d610a4bf52555ffcef4f8acc55824515e
2017-04-13 15:59:52 +02:00
Harald Welte 9ecb11bd6d Allow clients to specify local IP/port
Change-Id: Ief7ce8181442fd0f51c34cf598269ed3a6beacea
2017-04-10 11:48:36 +02:00
Harald Welte 07903bb2ad m3ua_example: Add talloc reporting
This can be used to check for memory leaks while running the example
code.

Change-Id: I87caa76a2be3c92c93e419242595107d744bad97
2017-04-10 11:48:35 +02:00
Harald Welte c860f9a41e sigtran: fix various memory leaks (msgb and xua_msg)
The general rule for 'struct xua_msg' is now that it is free'd by the
function that also allocates it in the first place.  Any downstream
consumer of the xua_msg may interpret it, but not hold any references or
free() it.

Change-Id: I708505d129da5824c69b31a13a9c93201929bada
2017-04-10 11:48:35 +02:00
Harald Welte 996defec17 Add example program how to use M3UA+SCCP client and server
This is an example tool that can be run either as server (SG) or as
client (ASP) with a SCCP+M3UA stacking, and communicate via
connectionless and connection-oriented primitives over it

Change-Id: Id698ce2da5726e304dfa1773b794671dc80d853c
2017-04-10 11:48:34 +02:00