aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/sigtran
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2015-12-23 14:16:21 +0100
committerHarald Welte <laforge@gnumonks.org>2015-12-23 14:16:21 +0100
commitf57a1594b705f93d9711e98e169231929af70966 (patch)
treec6365df37b53e4042af698655f4d76d3344d8ff8 /include/osmocom/sigtran
parentec86dcdc2fe3b57c0f3c71918967325eeb971369 (diff)
Properly define SCCP_SAP_USER without random magic number
Diffstat (limited to 'include/osmocom/sigtran')
-rw-r--r--include/osmocom/sigtran/Makefile.am2
-rw-r--r--include/osmocom/sigtran/sccp_sap.h4
-rw-r--r--include/osmocom/sigtran/sigtran_sap.h6
3 files changed, 8 insertions, 4 deletions
diff --git a/include/osmocom/sigtran/Makefile.am b/include/osmocom/sigtran/Makefile.am
index 538a249..adb0997 100644
--- a/include/osmocom/sigtran/Makefile.am
+++ b/include/osmocom/sigtran/Makefile.am
@@ -1,4 +1,4 @@
-sigtran_HEADERS = m3ua_types.h xua_types.h xua_msg.h m2ua_types.h sccp_sap.h sua.h
+sigtran_HEADERS = m3ua_types.h xua_types.h xua_msg.h m2ua_types.h sccp_sap.h sua.h sigtran_sap.h
sigtrandir = $(includedir)/osmocom/sigtran
sigtran_prot_HEADERS = protocol/sua.h
diff --git a/include/osmocom/sigtran/sccp_sap.h b/include/osmocom/sigtran/sccp_sap.h
index fb42cee..25c16cb 100644
--- a/include/osmocom/sigtran/sccp_sap.h
+++ b/include/osmocom/sigtran/sccp_sap.h
@@ -22,12 +22,10 @@
#include <stdint.h>
#include <osmocom/core/prim.h>
+#include <osmocom/sigtran/sigtran_sap.h>
#include <netinet/in.h>
-/* FIXME: properly define this based on libosmocore */
-#define SCCP_SAP_USER 0x2342
-
/* detailed coding of primitives at the SAP_SCCP_USER */
/*! \brief SCCP-User primitives as per Q.711 */
diff --git a/include/osmocom/sigtran/sigtran_sap.h b/include/osmocom/sigtran/sigtran_sap.h
new file mode 100644
index 0000000..544fc44
--- /dev/null
+++ b/include/osmocom/sigtran/sigtran_sap.h
@@ -0,0 +1,6 @@
+#pragma once
+#include <osmocom/core/prim.h>
+
+enum osmo_sigtran_sap {
+ SCCP_SAP_USER = _SAP_SS7_BASE,
+};