|
|
@ -59,8 +59,8 @@ int mme_attach_request_test()
|
|
|
|
nas_cfg.apn_name = "test123";
|
|
|
|
nas_cfg.apn_name = "test123";
|
|
|
|
|
|
|
|
|
|
|
|
test_stack_dummy<srsue::nas> stack(&pdcp_dummy);
|
|
|
|
test_stack_dummy<srsue::nas> stack(&pdcp_dummy);
|
|
|
|
srsue::nas nas(&stack.task_sched);
|
|
|
|
srsue::nas nas(srslog::fetch_basic_logger("NAS"), &stack.task_sched);
|
|
|
|
srsue::gw gw;
|
|
|
|
srsue::gw gw(srslog::fetch_basic_logger("GW"));
|
|
|
|
|
|
|
|
|
|
|
|
nas.init(&usim, &rrc_dummy, &gw, nas_cfg);
|
|
|
|
nas.init(&usim, &rrc_dummy, &gw, nas_cfg);
|
|
|
|
rrc_dummy.init(&nas);
|
|
|
|
rrc_dummy.init(&nas);
|
|
|
@ -124,7 +124,7 @@ int security_command_test()
|
|
|
|
usim.init(&args);
|
|
|
|
usim.init(&args);
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
srsue::nas nas(&stack.task_sched);
|
|
|
|
srsue::nas nas(srslog::fetch_basic_logger("NAS"), &stack.task_sched);
|
|
|
|
nas_args_t cfg;
|
|
|
|
nas_args_t cfg;
|
|
|
|
cfg.eia = "1,2,3";
|
|
|
|
cfg.eia = "1,2,3";
|
|
|
|
cfg.eea = "0,1,2,3";
|
|
|
|
cfg.eea = "0,1,2,3";
|
|
|
@ -179,7 +179,7 @@ int esm_info_request_test()
|
|
|
|
usim.init(&args);
|
|
|
|
usim.init(&args);
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
srsue::nas nas(&stack.task_sched);
|
|
|
|
srsue::nas nas(srslog::fetch_basic_logger("NAS-5G"), &stack.task_sched);
|
|
|
|
nas_args_t cfg;
|
|
|
|
nas_args_t cfg;
|
|
|
|
cfg.apn_name = "srsran";
|
|
|
|
cfg.apn_name = "srsran";
|
|
|
|
cfg.apn_user = "srsuser";
|
|
|
|
cfg.apn_user = "srsuser";
|
|
|
@ -223,7 +223,7 @@ int dedicated_eps_bearer_test()
|
|
|
|
srsue::usim usim(srslog::fetch_basic_logger("USIM"));
|
|
|
|
srsue::usim usim(srslog::fetch_basic_logger("USIM"));
|
|
|
|
usim.init(&args);
|
|
|
|
usim.init(&args);
|
|
|
|
|
|
|
|
|
|
|
|
srsue::nas nas(&stack.task_sched);
|
|
|
|
srsue::nas nas(srslog::fetch_basic_logger("NAS"), &stack.task_sched);
|
|
|
|
nas_args_t cfg = {};
|
|
|
|
nas_args_t cfg = {};
|
|
|
|
cfg.force_imsi_attach = true; // make sure we get a fresh security context
|
|
|
|
cfg.force_imsi_attach = true; // make sure we get a fresh security context
|
|
|
|
cfg.eia = "1,2,3";
|
|
|
|
cfg.eia = "1,2,3";
|
|
|
|