add wireshark support to the oai build script

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6937 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
Navid Nikaein
2015-03-27 18:11:04 +00:00
parent 4b404218f5
commit 861cbc95e8
2 changed files with 12 additions and 1 deletions
+1
View File
@@ -1158,6 +1158,7 @@ print_help(){
echo_success "-l | --build-target : Set the LTE build target: ENB,EPC,HSS,NONE (default ENB)" echo_success "-l | --build-target : Set the LTE build target: ENB,EPC,HSS,NONE (default ENB)"
echo_success "-m | --build-from-makefile : Enable build from the makefile (default disabled)" echo_success "-m | --build-from-makefile : Enable build from the makefile (default disabled)"
echo_success "-r | --3gpp-release : Set the release: REL8, REL10 (default REL8)" echo_success "-r | --3gpp-release : Set the release: REL8, REL10 (default REL8)"
echo_success "-p | --wireshark : enable wireshark interface for L2 pdus"
echo_success "-R | --run : Run the executable built by this script" echo_success "-R | --run : Run the executable built by this script"
echo_success "-s | --check : Enable OAI testing and sanity check (default disabled)" echo_success "-s | --check : Enable OAI testing and sanity check (default disabled)"
echo_success "-t | --enb-build-target : Set the eNB build target: ALL, SOFTMODEM,OAISIM,UNISIM (default ALL)" echo_success "-t | --enb-build-target : Set the eNB build target: ALL, SOFTMODEM,OAISIM,UNISIM (default ALL)"
+11 -1
View File
@@ -224,6 +224,11 @@ fi
echo "setting xforms to: $XFORMS" echo "setting xforms to: $XFORMS"
shift; shift;
;; ;;
-p | --wireshark)
WIRESHARK=1
echo "enabling Wireshark interface to $WIRESHARK"
shift;
;;
-z | --defaults) -z | --defaults)
echo "setting all parameters to: default" echo "setting all parameters to: default"
rm -rf ./.lock_oaibuild rm -rf ./.lock_oaibuild
@@ -737,6 +742,9 @@ if [ $RUN -ne 0 ]; then
$SUDO chmod 777 $OPENAIR_TARGETS/RT/USER/init_exmimo2.sh $SUDO chmod 777 $OPENAIR_TARGETS/RT/USER/init_exmimo2.sh
$SUDO $OPENAIR_TARGETS/RT/USER/init_exmimo2.sh $SUDO $OPENAIR_TARGETS/RT/USER/init_exmimo2.sh
fi fi
if [ $WIRESHARK -eq 1 ]; then
EXE_ARGUMENTS="$EXE_ARGUMENTS -W"
fi
echo "############# running ltesoftmodem #############" echo "############# running ltesoftmodem #############"
if [ $RUN_GDB -eq 0 ]; then if [ $RUN_GDB -eq 0 ]; then
$SUDO $OPENAIR_TARGETS/bin/lte-softmodem `echo $EXE_ARGUMENTS` $SUDO $OPENAIR_TARGETS/bin/lte-softmodem `echo $EXE_ARGUMENTS`
@@ -770,7 +778,9 @@ if [ $RUN -ne 0 ]; then
insmod $OPENAIR2_DIR/NETWORK_DRIVER/UE_IP/ue_ip.ko insmod $OPENAIR2_DIR/NETWORK_DRIVER/UE_IP/ue_ip.ko
fi fi
if [ $WIRESHARK -eq 1 ]; then
EXE_ARGUMENTS="$EXE_ARGUMENTS -P wireshark"
fi
if [ $RUN_GDB -eq 0 ]; then if [ $RUN_GDB -eq 0 ]; then
$SUDO exec $OPENAIR_TARGETS/bin/oaisim `echo $EXE_ARGUMENTS` $SUDO exec $OPENAIR_TARGETS/bin/oaisim `echo $EXE_ARGUMENTS`
else else