Commit 861cbc95 authored by Navid Nikaein's avatar Navid Nikaein

add wireshark support to the oai build script

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6937 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 4b404218
...@@ -1158,6 +1158,7 @@ print_help(){ ...@@ -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)"
......
...@@ -224,6 +224,11 @@ fi ...@@ -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 ...@@ -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 ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment