|
|
|
@ -88,6 +88,7 @@ void parse_args(all_args_t* args, int argc, char* argv[])
|
|
|
|
|
string hss_db_file;
|
|
|
|
|
string hss_auth_algo;
|
|
|
|
|
string log_filename;
|
|
|
|
|
string lac;
|
|
|
|
|
|
|
|
|
|
// Command line only options
|
|
|
|
|
bpo::options_description general("General options");
|
|
|
|
@ -115,6 +116,7 @@ void parse_args(all_args_t* args, int argc, char* argv[])
|
|
|
|
|
("mme.integrity_algo", bpo::value<string>(&integrity_algo)->default_value("EIA1"), "Set preferred integrity protection algorithm for NAS")
|
|
|
|
|
("mme.paging_timer", bpo::value<uint16_t>(&paging_timer)->default_value(2), "Set paging timer value in seconds (T3413)")
|
|
|
|
|
("mme.request_imeisv", bpo::value<bool>(&request_imeisv)->default_value(false), "Enable IMEISV request in Security mode command")
|
|
|
|
|
("mme.lac", bpo::value<string>(&lac)->default_value("0x01"), "Location Area Code")
|
|
|
|
|
("hss.db_file", bpo::value<string>(&hss_db_file)->default_value("ue_db.csv"), ".csv file that stores UE's keys")
|
|
|
|
|
("spgw.gtpu_bind_addr", bpo::value<string>(&spgw_bind_addr)->default_value("127.0.0.1"), "IP address of SP-GW for the S1-U connection")
|
|
|
|
|
("spgw.sgi_if_addr", bpo::value<string>(&sgi_if_addr)->default_value("176.16.0.1"), "IP address of TUN interface for the SGi connection")
|
|
|
|
@ -218,6 +220,11 @@ void parse_args(all_args_t* args, int argc, char* argv[])
|
|
|
|
|
sstr << std::hex << vm["mme.tac"].as<std::string>();
|
|
|
|
|
sstr >> args->mme_args.s1ap_args.tac;
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
std::stringstream sstr;
|
|
|
|
|
sstr << std::hex << vm["mme.lac"].as<std::string>();
|
|
|
|
|
sstr >> args->mme_args.s1ap_args.lac;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Convert MCC/MNC strings
|
|
|
|
|
if (!srsran::string_to_mcc(mcc, &args->mme_args.s1ap_args.mcc)) {
|
|
|
|
|