|
|
@ -29,6 +29,7 @@
|
|
|
|
#include "srslte/common/bcd_helpers.h"
|
|
|
|
#include "srslte/common/bcd_helpers.h"
|
|
|
|
#include "mme/mme.h"
|
|
|
|
#include "mme/mme.h"
|
|
|
|
#include "hss/hss.h"
|
|
|
|
#include "hss/hss.h"
|
|
|
|
|
|
|
|
#include "spgw/spgw.h"
|
|
|
|
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
using namespace std;
|
|
|
|
using namespace srsepc;
|
|
|
|
using namespace srsepc;
|
|
|
@ -51,6 +52,7 @@ typedef struct {
|
|
|
|
typedef struct{
|
|
|
|
typedef struct{
|
|
|
|
mme_args_t mme_args;
|
|
|
|
mme_args_t mme_args;
|
|
|
|
hss_args_t hss_args;
|
|
|
|
hss_args_t hss_args;
|
|
|
|
|
|
|
|
spgw_args_t spgw_args;
|
|
|
|
log_args_t log_args;
|
|
|
|
log_args_t log_args;
|
|
|
|
}all_args_t;
|
|
|
|
}all_args_t;
|
|
|
|
|
|
|
|
|
|
|
@ -198,6 +200,11 @@ main (int argc,char * argv[] )
|
|
|
|
hss_log.set_level(srslte::LOG_LEVEL_DEBUG);
|
|
|
|
hss_log.set_level(srslte::LOG_LEVEL_DEBUG);
|
|
|
|
hss_log.set_hex_limit(32);
|
|
|
|
hss_log.set_hex_limit(32);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
srslte::log_filter spgw_log;
|
|
|
|
|
|
|
|
spgw_log.init("SPGW",logger);
|
|
|
|
|
|
|
|
spgw_log.set_level(srslte::LOG_LEVEL_DEBUG);
|
|
|
|
|
|
|
|
spgw_log.set_hex_limit(32);
|
|
|
|
|
|
|
|
|
|
|
|
mme *mme = mme::get_instance();
|
|
|
|
mme *mme = mme::get_instance();
|
|
|
|
if (mme->init(&args.mme_args, &s1ap_log)) {
|
|
|
|
if (mme->init(&args.mme_args, &s1ap_log)) {
|
|
|
|
cout << "Error initializing MME" << endl;
|
|
|
|
cout << "Error initializing MME" << endl;
|
|
|
@ -210,14 +217,23 @@ main (int argc,char * argv[] )
|
|
|
|
exit(1);
|
|
|
|
exit(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spgw *spgw = spgw::get_instance();
|
|
|
|
|
|
|
|
if (spgw->init(&args.spgw_args,&spgw_log)) {
|
|
|
|
|
|
|
|
cout << "Error initializing SP-GW" << endl;
|
|
|
|
|
|
|
|
exit(1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
mme->start();
|
|
|
|
mme->start();
|
|
|
|
|
|
|
|
spgw->start();
|
|
|
|
while(running) {
|
|
|
|
while(running) {
|
|
|
|
sleep(1);
|
|
|
|
sleep(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
mme->stop();
|
|
|
|
mme->stop();
|
|
|
|
mme->cleanup();
|
|
|
|
mme->cleanup();
|
|
|
|
|
|
|
|
spgw->stop();
|
|
|
|
|
|
|
|
spgw->cleanup();
|
|
|
|
|
|
|
|
|
|
|
|
cout << "--- exiting ---" << endl;
|
|
|
|
cout << std::endl <<"--- exiting ---" << endl;
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|