- Added support reliable link for ethernet transport
Note: this new feature is not compiled (and therefore not used) if libpgm-dev is not installed git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4011 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
@@ -221,6 +221,14 @@ CFLAGS += -DENABLE_VCD_FIFO
|
||||
CFLAGS += -DENABLE_NEW_MULTICAST
|
||||
# CFLAGS += -DENABLE_LOG_FIFO
|
||||
|
||||
# Check if libpgm is installed and use it if found instead of the unreliable
|
||||
# multicast
|
||||
ENABLE_PGM = $(shell if pkg-config --exists openpgm-5.1; then echo "1" ; else echo "0"; fi)
|
||||
ifeq ($(ENABLE_PGM), 1)
|
||||
CFLAGS += `pkg-config --cflags openpgm-5.1` -DENABLE_PGM_TRANSPORT
|
||||
PGM_LDFLAGS = `pkg-config --libs openpgm-5.1`
|
||||
endif
|
||||
|
||||
OBJ = $(PHY_OBJS) $(SIMULATION_OBJS) $(ETHERNET_TRANSPORT_OBJS) $(TOOLS_OBJS) $(SCHED_OBJS) $(STATS_OBJS) $(OAISIM_OBJS) $(NAS_OBJS) $(INT_OBJS) $(UTIL_OBJ)
|
||||
ifeq ($(OPENAIR2),1)
|
||||
OBJ += $(L2_OBJS)
|
||||
@@ -243,7 +251,9 @@ printvars:
|
||||
@echo L2 objs are $(L2_OBJS)
|
||||
@echo eNB_flag is $(eNB_flag)
|
||||
@echo UE_flag is $(UE_flag)
|
||||
@echo $(S1AP_BUILT_OBJS)
|
||||
@echo S1AP objs: $(S1AP_BUILT_OBJS)
|
||||
@echo CFLAGS: $(CFLAGS)
|
||||
@echo Enable PGM: $(ENABLE_PGM)
|
||||
|
||||
ASN1RELDIR=R9.8
|
||||
ifeq ($(USE_MME), R8)
|
||||
@@ -299,7 +309,7 @@ oaisim : $(ASN1_MSG_OBJS1) $(OBJ) oaisim.c $(LFDS_DIR)/bin/liblfds611.a
|
||||
endif
|
||||
@echo "Compiling oaisim.c ..."
|
||||
@$(CC) -I$(TOP_DIR) $(L2_incl) $(UTIL_incl) -I$(ASN1_MSG_INC) $(S1AP_Incl) -o oaisim $(CFLAGS) $(EXTRA_CFLAGS) $^ \
|
||||
-lm -lblas -lpthread -llapack_atlas -lforms -lxml2 -lX11 -lXpm -lrt $(LFDS_DIR)/bin/liblfds611.a
|
||||
-lm -lblas -lpthread -llapack_atlas -lforms -lxml2 -lX11 -lXpm -lrt $(LFDS_DIR)/bin/liblfds611.a $(PGM_LDFLAGS)
|
||||
|
||||
ifeq ($(rrc_cellular_eNB),1)
|
||||
mv oaisim oaisim_eNB
|
||||
|
||||
@@ -411,13 +411,14 @@ int olg_config() {
|
||||
set_glog(oai_emulation.info.g_log_level, oai_emulation.info.g_log_verbosity ); //g_glog
|
||||
// component, log level, log interval
|
||||
for (comp = PHY; comp < MAX_LOG_COMPONENTS ; comp++)
|
||||
set_comp_log(comp,
|
||||
oai_emulation.info.g_log_level,
|
||||
oai_emulation.info.g_log_verbosity,
|
||||
set_comp_log(comp,
|
||||
oai_emulation.info.g_log_level,
|
||||
oai_emulation.info.g_log_verbosity,
|
||||
oai_emulation.emulation_config.log_emu.interval);
|
||||
|
||||
// if perf eval then reset the otg log level
|
||||
set_comp_log(PHY, LOG_NONE, 0x15,1);
|
||||
set_comp_log(EMU, LOG_NONE, 0x15,1);
|
||||
set_comp_log(EMU, LOG_FULL, 0x15,1);
|
||||
set_comp_log(OCG, LOG_NONE, 0x15,1);
|
||||
set_comp_log(OCM, LOG_NONE, 0x15,1);
|
||||
set_comp_log(OTG, LOG_NONE, 0x15,1);
|
||||
|
||||
@@ -98,7 +98,7 @@ void get_simulation_options(int argc, char *argv[]) {
|
||||
{NULL, 0, NULL, 0}
|
||||
};
|
||||
|
||||
while ((c = getopt_long (argc, argv, "aA:b:B:c:C:d:eE:f:FGg:hi:IJ:k:l:m:M:n:N:O:p:P:rR:s:S:t:T:u:U:vVx:y:w:W:X:z:Z:", long_options, &option_index)) != -1) {
|
||||
while ((c = getopt_long (argc, argv, "aA:b:B:c:C:D:d:eE:f:FGg:hi:IJ:k:l:m:M:n:N:O:p:P:rR:s:S:t:T:u:U:vVx:y:w:W:X:z:Z:", long_options, &option_index)) != -1) {
|
||||
|
||||
switch (c) {
|
||||
case 0:
|
||||
@@ -248,8 +248,7 @@ void get_simulation_options(int argc, char *argv[]) {
|
||||
oai_emulation.info.multicast_group = atoi (optarg);
|
||||
break;
|
||||
case 'D':
|
||||
oai_emulation.info.multicast_ifname = malloc (strlen(optarg) + 1);
|
||||
strcpy(oai_emulation.info.multicast_ifname, optarg);
|
||||
oai_emulation.info.multicast_ifname = strdup(optarg);
|
||||
break;
|
||||
case 'B':
|
||||
oai_emulation.topology_config.mobility.eNB_mobility.eNB_mobility_type.selected_option = optarg;
|
||||
|
||||
Reference in New Issue
Block a user