From 37e9fbf9c427f6cedb6da49959eae8e6c44fd9ec Mon Sep 17 00:00:00 2001 From: Eduardo Ramos Testillano Date: Sun, 31 Jan 2016 03:57:50 +0100 Subject: [PATCH] Add Ericsson Sy selector for sniffing (disect selector for tshark) --- example/diameter/launcher/deployments/st-client/program.sh | 3 +++ example/diameter/pcapDecoder/tsharkDecoder.sh | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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 -- 2.20.1