|
|
@ -52,7 +52,6 @@ typedef struct {
|
|
|
|
int spgw_hex_limit;
|
|
|
|
int spgw_hex_limit;
|
|
|
|
std::string hss_level;
|
|
|
|
std::string hss_level;
|
|
|
|
int hss_hex_limit;
|
|
|
|
int hss_hex_limit;
|
|
|
|
|
|
|
|
|
|
|
|
std::string all_level;
|
|
|
|
std::string all_level;
|
|
|
|
int all_hex_limit;
|
|
|
|
int all_hex_limit;
|
|
|
|
std::string filename;
|
|
|
|
std::string filename;
|
|
|
@ -83,6 +82,7 @@ parse_args(all_args_t *args, int argc, char* argv[]) {
|
|
|
|
string mme_bind_addr;
|
|
|
|
string mme_bind_addr;
|
|
|
|
string spgw_bind_addr;
|
|
|
|
string spgw_bind_addr;
|
|
|
|
string sgi_if_addr;
|
|
|
|
string sgi_if_addr;
|
|
|
|
|
|
|
|
string dns_addr;
|
|
|
|
string hss_db_file;
|
|
|
|
string hss_db_file;
|
|
|
|
string hss_auth_algo;
|
|
|
|
string hss_auth_algo;
|
|
|
|
string log_filename;
|
|
|
|
string log_filename;
|
|
|
@ -105,6 +105,7 @@ parse_args(all_args_t *args, int argc, char* argv[]) {
|
|
|
|
("mme.mcc", bpo::value<string>(&mcc)->default_value("001"), "Mobile Country Code")
|
|
|
|
("mme.mcc", bpo::value<string>(&mcc)->default_value("001"), "Mobile Country Code")
|
|
|
|
("mme.mnc", bpo::value<string>(&mnc)->default_value("01"), "Mobile Network Code")
|
|
|
|
("mme.mnc", bpo::value<string>(&mnc)->default_value("01"), "Mobile Network Code")
|
|
|
|
("mme.mme_bind_addr", bpo::value<string>(&mme_bind_addr)->default_value("127.0.0.1"),"IP address of MME for S1 connnection")
|
|
|
|
("mme.mme_bind_addr", bpo::value<string>(&mme_bind_addr)->default_value("127.0.0.1"),"IP address of MME for S1 connnection")
|
|
|
|
|
|
|
|
("mme.dns_addr", bpo::value<string>(&dns_addr)->default_value("8.8.8.8"),"IP address of the DNS server for the UEs")
|
|
|
|
("hss.db_file", bpo::value<string>(&hss_db_file)->default_value("ue_db.csv"),".csv file that stores UE's keys")
|
|
|
|
("hss.db_file", bpo::value<string>(&hss_db_file)->default_value("ue_db.csv"),".csv file that stores UE's keys")
|
|
|
|
("hss.auth_algo", bpo::value<string>(&hss_auth_algo)->default_value("milenage"),"HSS uthentication algorithm.")
|
|
|
|
("hss.auth_algo", bpo::value<string>(&hss_auth_algo)->default_value("milenage"),"HSS uthentication algorithm.")
|
|
|
|
("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.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")
|
|
|
@ -205,6 +206,7 @@ parse_args(all_args_t *args, int argc, char* argv[]) {
|
|
|
|
|
|
|
|
|
|
|
|
args->mme_args.s1ap_args.mme_bind_addr = mme_bind_addr;
|
|
|
|
args->mme_args.s1ap_args.mme_bind_addr = mme_bind_addr;
|
|
|
|
args->mme_args.s1ap_args.mme_name = mme_name;
|
|
|
|
args->mme_args.s1ap_args.mme_name = mme_name;
|
|
|
|
|
|
|
|
args->mme_args.s1ap_args.dns_addr = dns_addr;
|
|
|
|
args->spgw_args.gtpu_bind_addr = spgw_bind_addr;
|
|
|
|
args->spgw_args.gtpu_bind_addr = spgw_bind_addr;
|
|
|
|
args->spgw_args.sgi_if_addr = sgi_if_addr;
|
|
|
|
args->spgw_args.sgi_if_addr = sgi_if_addr;
|
|
|
|
args->hss_args.db_file = hss_db_file;
|
|
|
|
args->hss_args.db_file = hss_db_file;
|
|
|
|