Add hardcoded APN
Add APN '*' to PDP info part of GSUP response to make SGSN 'auth-policy remote' testing easier.
This commit is contained in:
parent
cfaf968a17
commit
50d7a8ef60
|
@ -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 */
|
||||
|
|
Reference in New Issue