Modified -O option used for eNB configuration.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4961 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
@@ -202,7 +202,7 @@ void help(void) {
|
||||
printf ("-m Gives a fixed DL mcs\n");
|
||||
printf ("-M Set the machine ID for Ethernet-based emulation\n");
|
||||
printf ("-n Set the number of frames for the simulation\n");
|
||||
printf ("-O [mme ipv4 address] Enable MME mode\n");
|
||||
printf ("-O [enb_conf_file] eNB configuration file name\n");
|
||||
printf ("-p Set the total number of machine in emulation - valid if M is set\n");
|
||||
printf ("-P [trace type] Enable protocol analyzer. Possible values for OPT:\n");
|
||||
printf (" - wireshark: Enable tracing of layers above PHY using an UDP socket\n");
|
||||
|
||||
@@ -118,9 +118,9 @@ void get_simulation_options(int argc, char *argv[]) {
|
||||
char c;
|
||||
int option_index;
|
||||
static struct option long_options[] = {
|
||||
{"config-file", required_argument, 0, 0},
|
||||
{"pdcp_period", 1, 0, 0},
|
||||
{"omg_period", 1, 0, 0},
|
||||
{"enb-conf", required_argument, 0, 0},
|
||||
{"pdcp_period", required_argument, 0, 0},
|
||||
{"omg_period", required_argument, 0, 0},
|
||||
{"enb-ral-listening-port", required_argument, 0, 0},
|
||||
{"enb-ral-ip-address", required_argument, 0, 0},
|
||||
{"enb-ral-link-id", required_argument, 0, 0},
|
||||
@@ -141,10 +141,10 @@ void get_simulation_options(int argc, char *argv[]) {
|
||||
while ((c = getopt_long (argc, argv, "aA:b:B:c:C:D:d:eE:f:FGg:hHi:IJ:j:k:K:l:L:m:M:n:N:oO:p:P:Q:rR:s:S:t:T:u:U:vV:w:W:x:X:y:Y:z:Z:", long_options, &option_index)) != -1) {
|
||||
switch (c) {
|
||||
case 0:
|
||||
if (! strcmp(long_options[option_index].name, "config-file")) {
|
||||
if (! strcmp(long_options[option_index].name, "enb-conf")) {
|
||||
if (optarg) {
|
||||
g_conf_config_file_name = strdup(optarg);
|
||||
printf("config file is %s\n", g_conf_config_file_name);
|
||||
printf("eNB configuration file is %s\n", g_conf_config_file_name);
|
||||
}
|
||||
} else if (! strcmp(long_options[option_index].name, "pdcp_period")) {
|
||||
if (optarg) {
|
||||
@@ -462,19 +462,7 @@ void get_simulation_options(int argc, char *argv[]) {
|
||||
/* Sebastien ROUX: Reserved for future use (currently used in ltenow branch) */
|
||||
break;
|
||||
case 'O':
|
||||
#if defined(ENABLE_USE_MME)
|
||||
EPC_MODE_ENABLED = 1;
|
||||
if (optarg == NULL) /* No IP address provided: use localhost */
|
||||
{
|
||||
memcpy(&EPC_MODE_MME_ADDRESS[0], "127.0.0.1", 10);
|
||||
} else {
|
||||
u8 ip_length = strlen(optarg) + 1;
|
||||
memcpy(&EPC_MODE_MME_ADDRESS[0], optarg,
|
||||
ip_length > 16 ? 16 : ip_length);
|
||||
}
|
||||
#else
|
||||
printf("You enabled MME mode without compiling using ENABLE_USE_MME=1 ...\n");
|
||||
#endif
|
||||
g_conf_config_file_name = optarg;
|
||||
break;
|
||||
case 'o':
|
||||
oai_emulation.info.slot_isr = 1;
|
||||
|
||||
Reference in New Issue
Block a user