aboutsummaryrefslogtreecommitdiffstats
path: root/src/sgsn/sgsn_main.c
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2020-12-14 23:27:47 +0100
committerPhilipp Maier <pmaier@sysmocom.de>2021-01-25 23:18:44 +0100
commitc0434e486c4263273cb43475b65bc2361552f1b7 (patch)
tree06dda3c1b162ecf76143ca86c0c21d495ca134e7 /src/sgsn/sgsn_main.c
parentc09cb29d78dce98cda15bcc92d3c32193336e0f0 (diff)
sgsn_rim: Add routing for (GERAN) BSSGP RIM messagespmaier/rim
The SGSN currently does not forward BSSGP RIM messages. Related: SYS#5103 Depends: libosmocore Icd667f41d5735de56cd9fb257670337c679dd258 Change-Id: I6fde8ab8955660b48000ca1b650cfc7c7b2e24ba
Diffstat (limited to 'src/sgsn/sgsn_main.c')
-rw-r--r--src/sgsn/sgsn_main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sgsn/sgsn_main.c b/src/sgsn/sgsn_main.c
index 19039f69..173df0bf 100644
--- a/src/sgsn/sgsn_main.c
+++ b/src/sgsn/sgsn_main.c
@@ -67,6 +67,7 @@
#include <osmocom/ctrl/ports.h>
#include <gtp.h>
+#include <osmocom/sgsn/sgsn_rim.h>
#include "../../bscconfig.h"
@@ -120,6 +121,8 @@ int bssgp_prim_cb(struct osmo_prim_hdr *oph, void *ctx)
break;
case SAP_BSSGP_NM:
break;
+ case SAP_BSSGP_RIM:
+ return sgsn_rim_rx(bp, oph->msg);
}
return 0;
}
@@ -311,6 +314,11 @@ static struct log_info_cat gprs_categories[] = {
.description = "GPRS Tunnelling Protocol (GTP)",
.enabled = 1, .loglevel = LOGL_NOTICE,
},
+ [DRIM] = {
+ .name = "DRIM",
+ .description = "RAN Information Management (RIM)",
+ .enabled = 1, .loglevel = LOGL_NOTICE,
+ },
};
static const struct log_info gprs_log_info = {