summaryrefslogtreecommitdiff
path: root/ui/qt/packet_list_record.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-02-23 17:56:14 -0800
committerGerald Combs <gerald@wireshark.org>2015-03-05 16:45:04 +0000
commitf2b35a180f12575bcd4198add4a6478b4ce41802 (patch)
treea14fcab1ca616169b1649f8192250bf0f9925130 /ui/qt/packet_list_record.cpp
parenta065fefe689a1c839fc74e5b253212f0efddfced (diff)
downloadwireshark-f2b35a180f12575bcd4198add4a6478b4ce41802.tar.gz
Qt: Add extra related packet indicator types.
Add the ability to set frame number types: none, request, or response. Use the types to draw different related packet indicators in the packet list. Track the conversation in PacketListRecord. Use it to draw dashed lines for unrelated frames. Set frame number types for DNS and ICMP. Instead of drawing a transparent QImage, alpha blend our foreground color and draw directly in our painter. Blend more toward the foreground color. Add FRAMENUM_TYPE to checkAPIs. Change-Id: I2495945bb436413e05d6ec697184a0b4fd5ad214 Reviewed-on: https://code.wireshark.org/review/7436 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/packet_list_record.cpp')
-rw-r--r--ui/qt/packet_list_record.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/qt/packet_list_record.cpp b/ui/qt/packet_list_record.cpp
index 8ded43bb1d..1bacfd66d9 100644
--- a/ui/qt/packet_list_record.cpp
+++ b/ui/qt/packet_list_record.cpp
@@ -26,6 +26,7 @@
#include <epan/epan_dissect.h>
#include <epan/column-info.h>
#include <epan/column.h>
+#include <epan/conversation.h>
#include "color.h"
#include "color_filters.h"
@@ -39,7 +40,8 @@ unsigned PacketListRecord::col_data_ver_ = 1;
PacketListRecord::PacketListRecord(frame_data *frameData) :
fdata_(frameData),
data_ver_(0),
- colorized_(false)
+ colorized_(false),
+ conv_(NULL)
{
}
@@ -159,6 +161,10 @@ void PacketListRecord::dissect(capture_file *cap_file, bool dissect_color)
}
data_ver_ = col_data_ver_;
+ packet_info *pi = &edt.pi;
+ conv_ = find_conversation(pi->fd->num, &pi->src, &pi->dst, pi->ptype,
+ pi->srcport, pi->destport, 0);
+
epan_dissect_cleanup(&edt);
ws_buffer_free(&buf);
}