aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2023-03-23 19:34:58 +0100
committerAlexander Couzens <lynxis@fe80.eu>2023-03-23 19:34:58 +0100
commit4d8b0ff81037aa34671ca728c04e85cfb3400ef0 (patch)
treef864827067ef598ef139adf39c80d9a027d90e65
parentd10c2ef36618f84f4055faecea891c806ca6a9cb (diff)
Answer rx_epdg_tunnel_requestlynxis/epdg-sim
-rw-r--r--src/hlr.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/hlr.c b/src/hlr.c
index 8183d9b..5d525e0 100644
--- a/src/hlr.c
+++ b/src/hlr.c
@@ -276,6 +276,16 @@ int hlr_subscr_nam(struct hlr *hlr, struct hlr_subscriber *subscr, bool nam_val,
return 0;
}
+static int rx_epdg_tunnel_request(struct osmo_gsup_req *req)
+{
+ struct osmo_gsup_message gsup_out = {
+ .message_type = OSMO_GSUP_MSGT_EPDG_TUNNEL_RESULT,
+ };
+
+ osmo_gsup_req_respond(req, &gsup_out, false, true);
+ return 0;
+}
+
/***********************************************************************
* Send Auth Info handling
***********************************************************************/
@@ -559,6 +569,9 @@ static int read_cb(struct osmo_gsup_conn *conn, struct msgb *msg)
case OSMO_GSUP_MSGT_CHECK_IMEI_REQUEST:
rx_check_imei_req(req);
break;
+ case OSMO_GSUP_MSGT_EPDG_TUNNEL_REQUEST:
+ rx_epdg_tunnel_request(req);
+ break;
default:
LOGP(DMAIN, LOGL_DEBUG, "Unhandled GSUP message type %s\n",
osmo_gsup_message_type_name(req->gsup.message_type));