aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2023-01-05 14:13:25 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2023-01-05 14:15:52 +0100
commit920c6c8c81d45ed9b387c0823d16bfad12b8645f (patch)
tree6688593541dab7a9abade48b9908fceafe9b1415
parentdf203361e856689faf653f092224ab33d02198a1 (diff)
Introduce new header file sgsn/gtp.h
It will be used to store all stuff relatd to libgtp use and GTP protocol, similar to what we already do for other protocols. Change-Id: I4aae35cd0ea401856cd822cb507d668350d07a89
-rw-r--r--include/osmocom/sgsn/Makefile.am1
-rw-r--r--include/osmocom/sgsn/gprs_sgsn.h3
-rw-r--r--include/osmocom/sgsn/gtp.h5
-rw-r--r--src/sgsn/sgsn_main.c1
4 files changed, 7 insertions, 3 deletions
diff --git a/include/osmocom/sgsn/Makefile.am b/include/osmocom/sgsn/Makefile.am
index dbbc0c651..fc4f5978c 100644
--- a/include/osmocom/sgsn/Makefile.am
+++ b/include/osmocom/sgsn/Makefile.am
@@ -21,6 +21,7 @@ noinst_HEADERS = \
gprs_sndcp_xid.h \
gprs_subscriber.h \
gprs_utils.h \
+ gtp.h \
gtphub.h \
gtp_ggsn.h \
gtp_mme.h \
diff --git a/include/osmocom/sgsn/gprs_sgsn.h b/include/osmocom/sgsn/gprs_sgsn.h
index a979e682b..034aebcbb 100644
--- a/include/osmocom/sgsn/gprs_sgsn.h
+++ b/include/osmocom/sgsn/gprs_sgsn.h
@@ -460,9 +460,6 @@ struct gsm_auth_tuple *sgsn_auth_get_tuple(struct sgsn_mm_ctx *mmctx,
/* Called on subscriber data updates */
void sgsn_update_subscriber_data(struct sgsn_mm_ctx *mmctx);
-struct sgsn_instance;
-int sgsn_gtp_init(struct sgsn_instance *sgi);
-
void sgsn_rate_ctr_init();
#endif /* _GPRS_SGSN_H */
diff --git a/include/osmocom/sgsn/gtp.h b/include/osmocom/sgsn/gtp.h
new file mode 100644
index 000000000..85a50d3b7
--- /dev/null
+++ b/include/osmocom/sgsn/gtp.h
@@ -0,0 +1,5 @@
+#pragma once
+
+struct sgsn_instance;
+
+int sgsn_gtp_init(struct sgsn_instance *sgi);
diff --git a/src/sgsn/sgsn_main.c b/src/sgsn/sgsn_main.c
index 362e7aaca..3ad0881a4 100644
--- a/src/sgsn/sgsn_main.c
+++ b/src/sgsn/sgsn_main.c
@@ -65,6 +65,7 @@
#include <osmocom/sgsn/gprs_ns.h>
#include <osmocom/sgsn/gprs_bssgp.h>
#include <osmocom/sgsn/gprs_subscriber.h>
+#include <osmocom/sgsn/gtp.h>
#include <osmocom/ctrl/control_if.h>
#include <osmocom/ctrl/ports.h>