summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2016-07-01 15:19:23 +0200
committerMax <msuraev@sysmocom.de>2016-07-01 15:19:23 +0200
commit50d7a8ef6029a895bcb8d258352616c5e789f60f (patch)
tree028262f826887adc0524dd71c49b8b2756690063
parentcfaf968a17708c32f0c338f182f51f5d1ee68cee (diff)
Add hardcoded APN
Add APN '*' to PDP info part of GSUP response to make SGSN 'auth-policy remote' testing easier.
-rw-r--r--osmo-gsup-hlr/src/hlr.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/osmo-gsup-hlr/src/hlr.c b/osmo-gsup-hlr/src/hlr.c
index e87ebb6..2ab7e08 100644
--- a/osmo-gsup-hlr/src/hlr.c
+++ b/osmo-gsup-hlr/src/hlr.c
@@ -24,6 +24,7 @@
#include <osmocom/core/logging.h>
#include <osmocom/core/application.h>
#include <osmocom/gsm/gsup.h>
+#include <osmocom/gsm/apn.h>
#include "db.h"
#include "logging.h"
@@ -274,7 +275,15 @@ void lu_op_tx_insert_subscr_data(struct lu_operation *luop)
gsup.hlr_enc;
if (luop->is_ps) {
- /* FIXME: PDP infos */
+ /* FIXME: PDP infos - use more fine-grained access control
+ instead of wildcard */
+ uint8_t apn[APN_MAXLEN];
+ gsup.pdp_infos[0].have_info = 1;
+ gsup.pdp_infos[0].context_id = 1; // FIXME: use real value
+ gsup.pdp_infos[0].apn_enc = apn;
+ gsup.pdp_infos[0].apn_enc_len =
+ osmo_apn_from_str(gsup.pdp_infos[0].apn_enc, 2, "*");
+ gsup.num_pdp_infos = 1;
}
/* Send ISD to new VLR/SGSN */