diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-01-20 16:18:53 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-01-21 10:52:47 +0100 |
commit | 9ed01722c24ca10ccf77f2b5fb49abbddc765e78 (patch) | |
tree | 2974f22f4865b9fa136026ae5443b893732d25fd | |
parent | 5663db37a3f2808489cf1be0b0bec4c97dc18ea5 (diff) |
osmo_sccp_simple_server(): use sccp instance index 0 instead of 1
When using osmo_sccp_simple_client(), it will create an sccp instance if
none exists. The sccp instance identifier starts with 0.
The implicit created instance should use sccp instance 0 (the
first connection).
This is basically a counterpart of much older commit
3884eb68d9322967340d4f04e7382b2147ec7a2e, were same logic was applied to
osmo_sccp_simple_client().
Change-Id: I85d2680ac65a552d7b2824ec41cd8fc669782079
-rw-r--r-- | src/sccp_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sccp_user.c b/src/sccp_user.c index 386f424..d85fc1d 100644 --- a/src/sccp_user.c +++ b/src/sccp_user.c @@ -691,7 +691,7 @@ osmo_sccp_simple_server(void *ctx, uint32_t pc, enum osmo_ss7_asp_protocol prot, int local_port, const char *local_ip) { - return osmo_sccp_simple_server_on_ss7_id(ctx, 1, pc, prot, + return osmo_sccp_simple_server_on_ss7_id(ctx, 0, pc, prot, local_port, local_ip); } |