aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt
diff options
context:
space:
mode:
authorJoakim Karlsson <oakimk@gmail.com>2021-09-13 09:38:46 +0200
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-09-13 14:22:16 +0000
commita7a7849259cff96fc3d585e3067079cea856bfc7 (patch)
treee3d5a383f4e3cbb2381ba6bae26295e6e9cbf85b /ui/qt
parentfe9123b541c9635991521377f779d9b512ad0ee7 (diff)
Qt: Enable Edit Name Resolution for EXPORTED_PDU
Diffstat (limited to 'ui/qt')
-rw-r--r--ui/qt/main_window_slots.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/ui/qt/main_window_slots.cpp b/ui/qt/main_window_slots.cpp
index e1a6878f02..b8c2be36b8 100644
--- a/ui/qt/main_window_slots.cpp
+++ b/ui/qt/main_window_slots.cpp
@@ -1172,7 +1172,7 @@ void MainWindow::setEditCommentsMenu()
void MainWindow::setMenusForSelectedPacket()
{
gboolean is_ip = FALSE, is_tcp = FALSE, is_udp = FALSE, is_dccp = FALSE, is_sctp = FALSE, is_tls = FALSE, is_rtp = FALSE, is_lte_rlc = FALSE,
- is_http = FALSE, is_http2 = FALSE, is_quic = FALSE, is_sip = FALSE;
+ is_http = FALSE, is_http2 = FALSE, is_quic = FALSE, is_sip = FALSE, is_exported_pdu = FALSE;
/* Making the menu context-sensitive allows for easier selection of the
desired item and has the added benefit, with large captures, of
@@ -1247,6 +1247,13 @@ void MainWindow::setMenusForSelectedPacket()
/* TODO: to follow a QUIC stream we need a *decrypted* QUIC connection, i.e. checking for "quic" in the protocol stack is not enough */
is_quic = proto_is_frame_protocol(capture_file_.capFile()->edt->pi.layers, "quic");
is_sip = proto_is_frame_protocol(capture_file_.capFile()->edt->pi.layers, "sip");
+ is_exported_pdu = proto_is_frame_protocol(capture_file_.capFile()->edt->pi.layers, "exported_pdu");
+ /* For Exported PDU there is a tag inserting IP addresses into the SRC and DST columns */
+ if (is_exported_pdu &&
+ (capture_file_.capFile()->edt->pi.net_src.type == AT_IPv4 || capture_file_.capFile()->edt->pi.net_src.type == AT_IPv6) &&
+ (capture_file_.capFile()->edt->pi.net_dst.type == AT_IPv4 || capture_file_.capFile()->edt->pi.net_dst.type == AT_IPv6)) {
+ is_ip = TRUE;
+ }
}
}