aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/sigtran
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-04-03 16:27:20 +0200
committerHarald Welte <laforge@gnumonks.org>2017-04-10 10:41:16 +0200
commit64deeb0a5204f446cbd053c400d87fbd91957599 (patch)
treeae63f31345b00249182353cc26538e8e36351e2a /include/osmocom/sigtran
parent7a4f7826927ce3948dbfd7e0dbcf070f660cae11 (diff)
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
Diffstat (limited to 'include/osmocom/sigtran')
-rw-r--r--include/osmocom/sigtran/protocol/sua.h15
1 files changed, 13 insertions, 2 deletions
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