[MERGED] libosmo-sccp[master]: sua.h: Define more IEIs; base definitions on m3ua.h

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Mon Apr 10 09:15:23 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: sua.h: Define more IEIs; base definitions on m3ua.h
......................................................................


sua.h: Define more IEIs; base definitions on m3ua.h

A lot of IEIs are identical between the different xUA dialects, so let's
base the SUA definitions on the m3ua definitions.

Change-Id: I64c7166cf0b5c8a927ab7e14955100f8d13fe16a
---
M include/osmocom/sigtran/protocol/sua.h
1 file changed, 13 insertions(+), 2 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/include/osmocom/sigtran/protocol/sua.h b/include/osmocom/sigtran/protocol/sua.h
index d191368..0ae4131 100644
--- a/include/osmocom/sigtran/protocol/sua.h
+++ b/include/osmocom/sigtran/protocol/sua.h
@@ -21,6 +21,9 @@
 #pragma once
 #include <stdint.h>
 
+#include <osmocom/sigtran/protocol/m3ua.h>
+
+#define SUA_VERSION	1
 #define SUA_PPID	4
 #define SUA_PORT 	14001
 
@@ -76,8 +79,16 @@
 #define SUA_CO_COERR		10
 #define SUA_CO_COIT		11 /* Connection Oriented Inactiviy Test */
 
-#define SUA_IEI_ROUTE_CTX	0x0006
-#define SUA_IEI_CORR_ID		0x0013
+#define SUA_IEI_INFO_STRING	M3UA_IEI_INFO_STRING
+#define SUA_IEI_ROUTE_CTX	M3UA_IEI_ROUTE_CTX
+#define SUA_IEI_DIAG_INFO	M3UA_IEI_DIAG_INFO
+#define SUA_IEI_HEARTBT_DATA	M3UA_IEI_HEARDBT_DATA
+#define SUA_IEI_TRAF_MODE_TYP	M3UA_IEI_TRAF_MODE_TYP
+#define SUA_IEI_ERR_CODE	M3UA_IEI_ERR_CODE
+#define SUA_IEI_STATUS		M3UA_IEI_STATUS
+#define SUA_IEI_ASP_ID		M3UA_IEI_ASP_ID
+#define SUA_IEI_AFFECTED_PC	M3UA_IEI_AFFECTED_PC
+#define SUA_IEI_CORR_ID		M3UA_IEI_CORR_ID
 #define SUA_IEI_REG_RESULT	0x0014
 #define SUA_IEI_DEREG_RESULT	0x0015
 

-- 
To view, visit https://gerrit.osmocom.org/2192
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I64c7166cf0b5c8a927ab7e14955100f8d13fe16a
Gerrit-PatchSet: 3
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list