"Follow TCP Stream" 的快捷方式

Shortcut to "Follow TCP Stream"

在 Wireshark 中处理 TCP 流时,我曾经执行以下步骤:

Right click -> Follow TCP Stream

然后在新版本中变得更加棘手:

Right click -> Follow -> Follow TCP Stream

这引出了我的问题:

有没有更快的方法来实现此功能?

我似乎找不到在“分析”菜单下或 Wireshark manual 中定义的键盘快捷键。

将带有 patch -p1 < follow-tcp-stream-f3.patch 的补丁应用到 Wireshark 的源目录:

 ui/gtk/main_menubar.c | 2 +-
 ui/qt/main_window.ui  | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/ui/gtk/main_menubar.c b/ui/gtk/main_menubar.c
index 76bafd1..08d7615 100644
--- a/ui/gtk/main_menubar.c
+++ b/ui/gtk/main_menubar.c
@@ -1435 +1435 @@ static const GtkActionEntry main_menu_bar_entries[] = {
-   { "/Analyze/FollowTCPStream",                            NULL,       "Follow TCP Stream",                    NULL, NULL, G_CALLBACK(follow_tcp_stream_cb) },
+   { "/Analyze/FollowTCPStream",                            NULL,       "Follow TCP Stream",                    "F3", NULL, G_CALLBACK(follow_tcp_stream_cb) },
diff --git a/ui/qt/main_window.ui b/ui/qt/main_window.ui
index 667a3e2..6325616 100644
--- a/ui/qt/main_window.ui
+++ b/ui/qt/main_window.ui
@@ -1685,0 +1686,3 @@
+   <property name="shortcut">
+    <string>F3</string>
+   </property>
-- 
2.4.9 (Apple Git-60)

构建 Wireshark 后,您可以使用 F3 跟踪 TCP 流。

现在 Wireshark 中有一个默认的键盘快捷键。不确定它是何时添加的,但它在我的版本 (3.0.5) 中可用。

Windows:

Ctrl + Alt + Shift + T