diff mbox

sua_test_common.c: use global RANAP SSN definition

Message ID 1460563282-23900-1-git-send-email-nhofmeyr@sysmocom.de
State Not Applicable
Headers show

Commit Message

Neels Hofmeyr April 13, 2016, 4:01 p.m. UTC
The test 'hardcoded' a local define for RANAP SSN as 142, instead use the
proper OSMO_SCCP_SSN_RANAP define from sccp_sap.h
---
 tests/sigtran/sua_test_common.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

Comments

Harald Welte April 16, 2016, 11:29 a.m. UTC | #1
On Wed, Apr 13, 2016 at 06:01:22PM +0200, Neels Hofmeyr wrote:
> The test 'hardcoded' a local define for RANAP SSN as 142, instead use the
> proper OSMO_SCCP_SSN_RANAP define from sccp_sap.h

thanks, applied.
diff mbox

Patch

diff --git a/tests/sigtran/sua_test_common.c b/tests/sigtran/sua_test_common.c
index aed4899..66fade0 100644
--- a/tests/sigtran/sua_test_common.c
+++ b/tests/sigtran/sua_test_common.c
@@ -44,8 +44,6 @@  static void sccp_make_addr_pc_ssn(struct osmo_sccp_addr *addr, uint32_t pc, uint
 	addr->pc = pc;
 }
 
-#define SSN_RANAP 142
-
 struct osmo_prim_hdr *make_conn_req(uint32_t conn_id)
 {
 	struct msgb *msg = msgb_alloc(1024, "conn_req");
@@ -56,8 +54,8 @@  struct osmo_prim_hdr *make_conn_req(uint32_t conn_id)
 			OSMO_SCU_PRIM_N_CONNECT,
 			PRIM_OP_REQUEST, msg);
 	/* Set SSN for calling and called addr */
-	sccp_make_addr_pc_ssn(&prim->u.connect.called_addr, 2, SSN_RANAP);
-	sccp_make_addr_pc_ssn(&prim->u.connect.calling_addr, 1, SSN_RANAP);
+	sccp_make_addr_pc_ssn(&prim->u.connect.called_addr, 2, OSMO_SCCP_SSN_RANAP);
+	sccp_make_addr_pc_ssn(&prim->u.connect.calling_addr, 1, OSMO_SCCP_SSN_RANAP);
 	prim->u.connect.sccp_class = 2;
 	prim->u.connect.conn_id = conn_id;