From d1128e58c46d27bb73b9ed8290a80c1ce396d59b Mon Sep 17 00:00:00 2001
From: Jirka Novak
Date: Sat, 2 Nov 2019 22:33:03 +0100
Subject: [PATCH] rtp_analysis_dialog.cpp: Correct src/dst info for two
independent streams
Display the source and destination for the second reverse stream in case
it differs from the first forward stream.
Change-Id: I117899acca47713a42efcfef28f893d9be26c337
Reviewed-on: https://code.wireshark.org/review/34915
Petri-Dish: Alexis La Goutte
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu
---
ui/qt/rtp_analysis_dialog.cpp | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/ui/qt/rtp_analysis_dialog.cpp b/ui/qt/rtp_analysis_dialog.cpp
index 9e1c1ffaed..d31b99a2fa 100644
--- a/ui/qt/rtp_analysis_dialog.cpp
+++ b/ui/qt/rtp_analysis_dialog.cpp
@@ -894,13 +894,13 @@ void RtpAnalysisDialog::updateStatistics()
}
QString stats_tables = "\n";
- stats_tables += QString("%1:%2 " UTF8_LEFT_RIGHT_ARROW)
+ stats_tables += "
Forward
\n";
+ stats_tables += QString("%1:%2 " UTF8_RIGHTWARDS_ARROW)
.arg(address_to_qstring(&fwd_statinfo_.id.src_addr, true))
.arg(fwd_statinfo_.id.src_port);
stats_tables += QString("
%1:%2
\n")
.arg(address_to_qstring(&fwd_statinfo_.id.dst_addr, true))
.arg(fwd_statinfo_.id.dst_port);
- stats_tables += "Forward
\n";
stats_tables += "\n";
stats_tables += QString("SSRC | %1 |
")
.arg(int_to_qstring(fwd_statinfo_.id.ssrc, 8, 16));
@@ -933,6 +933,12 @@ void RtpAnalysisDialog::updateStatistics()
stats_tables += "
\n";
stats_tables += "Reverse
\n";
+ stats_tables += QString("%1:%2 " UTF8_RIGHTWARDS_ARROW)
+ .arg(address_to_qstring(&rev_statinfo_.id.src_addr, true))
+ .arg(rev_statinfo_.id.src_port);
+ stats_tables += QString("
%1:%2
\n")
+ .arg(address_to_qstring(&rev_statinfo_.id.dst_addr, true))
+ .arg(rev_statinfo_.id.dst_port);
stats_tables += "\n";
stats_tables += QString("SSRC | %1 |
")
.arg(int_to_qstring(rev_statinfo_.id.ssrc, 8, 16));