From 1061cb8cf19ca6d594505c3e487606c0dd0634ff Mon Sep 17 00:00:00 2001 From: eramos Date: Fri, 20 Mar 2020 22:26:45 +0100 Subject: [PATCH] Update tshark DNS resolution due to deprecated asynchronous flag 'C' As tshark has been updated, the resolving flag 'C' for DNS (-N) option has been deprecated. We will use 'd' and 'v' instead. --- example/diameter/pcapDecoder/tsharkDecoder.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/example/diameter/pcapDecoder/tsharkDecoder.sh b/example/diameter/pcapDecoder/tsharkDecoder.sh index 816dea7..0f6c640 100755 --- a/example/diameter/pcapDecoder/tsharkDecoder.sh +++ b/example/diameter/pcapDecoder/tsharkDecoder.sh @@ -166,7 +166,9 @@ do DISECT_SELECTORS="$DISECT_SELECTORS -d tcp.port=$port,diameter" done -$TSHARK -E separator="|" -r $PCAP_FILE -N mntC -Tfields $FIELDS $DISECT_SELECTORS 2>/dev/null > $tmpdir/all_frames +# Changes in project wireshark (see commits e005bc819c2 and 8dfaa8fa7c9): https://github.com/wireshark/wireshark.git +# Change name resolution resolving flags: 'C' is deprecated. Change '-N mntC' by '-N mntdv': +$TSHARK -E separator="|" -r $PCAP_FILE -N mntdv -Tfields $FIELDS $DISECT_SELECTORS 2>/dev/null > $tmpdir/all_frames grep -i diameter $tmpdir/all_frames > $tmpdir/diameter_frames #cat $tmpdir/all_frames -- 2.20.1