From: Eduardo Ramos Testillano Date: Sun, 31 Jan 2016 02:57:50 +0000 (+0100) Subject: Add Ericsson Sy selector for sniffing (disect selector for tshark) X-Git-Tag: REFACTORING_TESTING_LIBRARY~51 X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=commitdiff_plain;h=37e9fbf9c427f6cedb6da49959eae8e6c44fd9ec Add Ericsson Sy selector for sniffing (disect selector for tshark) --- diff --git a/example/diameter/launcher/deployments/st-client/program.sh b/example/diameter/launcher/deployments/st-client/program.sh index 84c66e9..fb31cca 100755 --- a/example/diameter/launcher/deployments/st-client/program.sh +++ b/example/diameter/launcher/deployments/st-client/program.sh @@ -110,6 +110,9 @@ else rate_per_instance=$((desired_rate/$ADML_INSTANCES)) [ $rate_per_instance -lt 1 ] && rate_per_instance=1 ./operation.sh "test|ttps|$rate_per_instance" + else + echo "Remember that you could start traffic using:" + echo " ./operation.sh \"test|ttps|\"" fi fi diff --git a/example/diameter/pcapDecoder/tsharkDecoder.sh b/example/diameter/pcapDecoder/tsharkDecoder.sh index 64fd44b..6b14320 100755 --- a/example/diameter/pcapDecoder/tsharkDecoder.sh +++ b/example/diameter/pcapDecoder/tsharkDecoder.sh @@ -107,7 +107,11 @@ RESULTS_DIR=`dirname $PCAP_FILE` # Fields needed (we won't need diameter.hopbyhopid & diameter.endtoendid to verify diameter message as hint patterns; length management will be enough): FIELDS_DIAMETER="-e diameter.cmd.code -e diameter.flags.request -e diameter.applicationId -e diameter.hopbyhopid -e diameter.endtoendid -e diameter.length" FIELDS="-e frame.number -e frame.time_epoch -e ip.src_host -e ip.dst_host $FIELDS_DIAMETER -e tcp.len -e frame.protocols -e tcp.segment" -tshark -E separator="|" -r $PCAP_FILE -N mntC -Tfields $FIELDS 2>/dev/null | grep -i diameter > $tmpdir/diameter_frames +# Disect selectors +# 13868 port for Ericsson Sy +DISECT_SELECTORS="-d tcp.port=13868,diameter" + +tshark -E separator="|" -r $PCAP_FILE -N mntC -Tfields $FIELDS $DISECT_SELECTORS 2>/dev/null | grep -i diameter > $tmpdir/diameter_frames # Example output: # /length\ # frame timestamp src dst code R App-ID HopByHop EndToEnd DIAM TCP protocol segments