From 920c6c8c81d45ed9b387c0823d16bfad12b8645f Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Thu, 5 Jan 2023 14:13:25 +0100 Subject: [PATCH] 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 --- include/osmocom/sgsn/Makefile.am | 1 + include/osmocom/sgsn/gprs_sgsn.h | 3 --- include/osmocom/sgsn/gtp.h | 5 +++++ src/sgsn/sgsn_main.c | 1 + 4 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 include/osmocom/sgsn/gtp.h 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 #include #include +#include #include #include