From 4bb13ade780c41daba81d604acbb1c56277696dd Mon Sep 17 00:00:00 2001 From: Lionel Gauthier <lionel.gauthier@eurecom.fr> Date: Tue, 26 May 2015 16:04:57 +0000 Subject: [PATCH] Wireshark option git-svn-id: http://svn.eurecom.fr/openair4G/trunk@7472 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- cmake_targets/tools/run_enb_s1_exmimo | 9 +++++++++ cmake_targets/tools/run_enb_s1_usrp | 13 +++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/cmake_targets/tools/run_enb_s1_exmimo b/cmake_targets/tools/run_enb_s1_exmimo index 89d1c5a8da..a2a50220a6 100755 --- a/cmake_targets/tools/run_enb_s1_exmimo +++ b/cmake_targets/tools/run_enb_s1_exmimo @@ -59,6 +59,10 @@ function help() echo_error " -V, --vcd Dump timings of processing in a GTKWave compliant file format." echo_error " -S, --enable-missed-slot Continue execution in case of missed slot." echo_error " -T, --target-ul-mcs mcs Uplink target MCS." + echo_error " -W, --wireshark-l2 Dump MAC frames for visualization with wireshark." + echo_error " You need to open Wireshark, open the preferences, and check try heuristics for the UDP protocol, MAC-LTE, RLC-LTE," + echo_error " and PDCP-LTE. Then capture for all the interfaces with the following filters: s1ap or lte_rrc or mac-lte or rlc-lte" + echo_error " or pdcp-lte. Note the L2 pdus are transmitted to the local interface." echo_error " -x, --xforms Run XFORMS scope windows." } @@ -132,6 +136,11 @@ function main() exe_arguments="$exe_arguments -t $2" shift 2; ;; + -W | ----wireshark-l2) + echo "setting l2 pcap dump output" + exe_arguments="$exe_arguments -W" + shift ; + ;; -x | --xforms) exe_arguments="$exe_arguments -d" echo "setting xforms to: $XFORMS" diff --git a/cmake_targets/tools/run_enb_s1_usrp b/cmake_targets/tools/run_enb_s1_usrp index 051fc59020..606bd82d79 100755 --- a/cmake_targets/tools/run_enb_s1_usrp +++ b/cmake_targets/tools/run_enb_s1_usrp @@ -57,9 +57,13 @@ function help() echo_error " -K, --itti-dump-file filename ITTI dump file containing all ITTI events occuring during EPC runtime.(can omit file name if last argument)" echo_error " -M, --target-dl-mcs mcs Downlink target MCS." echo_error " -m, --mscgen directory Generate mscgen output files in a directory" - echo_error " -V, --vcd Dump timings of processing in a GTKWave compliant file format." echo_error " -S, --enable-missed-slot Continue execution in case of missed slot." echo_error " -T, --target-ul-mcs mcs Uplink target MCS." + echo_error " -V, --vcd Dump timings of processing in a GTKWave compliant file format." + echo_error " -W, --wireshark-l2 Dump MAC frames for visualization with wireshark." + echo_error " You need to open Wireshark, open the preferences, and check try heuristics for the UDP protocol, MAC-LTE, RLC-LTE," + echo_error " and PDCP-LTE. Then capture for all the interfaces with the following filters: s1ap or lte_rrc or mac-lte or rlc-lte" + echo_error " or pdcp-lte. Note the L2 pdus are transmitted to the local interface." echo_error " -x, --xforms Run XFORMS scope windows." } @@ -133,7 +137,7 @@ function main() shift 2; ;; -V | --vcd) - "setting gtk-wave output" + echo "setting gtk-wave output" exe_arguments="$exe_arguments -V /tmp/oai_gtk_wave.vcd" shift ; ;; @@ -147,6 +151,11 @@ function main() exe_arguments="$exe_arguments -t $2" shift 2; ;; + -W | ----wireshark-l2) + echo "setting l2 pcap dump output" + exe_arguments="$exe_arguments -W" + shift ; + ;; -x | --xforms) exe_arguments="$exe_arguments -d" echo "setting xforms to: $XFORMS" -- GitLab