diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2008-03-11 18:23:16 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2008-03-11 18:23:16 +0000 |
commit | 5800abad4620cbd3885b2460ee0383ced0cf6e3f (patch) | |
tree | 7d01e48143e3ccca773587f05b2570e53468a3c7 /gtk/menu.c | |
parent | 11eda6b97b594d58541897a06d98e97f13a9aa2b (diff) |
From Francesco Fondelli (bug 2349):
Attached is a patch to export packets data as "C Arrays". I often have
the need to [re]send data captured with wireshark using a raw/pf_packet socket.
Output format is one char[] per packet, it looks like almost the same as
the one produced by "Follow TCP stream".
svn path=/trunk/; revision=24604
Diffstat (limited to 'gtk/menu.c')
-rw-r--r-- | gtk/menu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/menu.c b/gtk/menu.c index 88d1041960..df4c576835 100644 --- a/gtk/menu.c +++ b/gtk/menu.c @@ -468,6 +468,8 @@ static GtkItemFactoryEntry menu_items[] = 0, NULL, NULL), ITEM_FACTORY_ENTRY("/File/Export/as \"_CSV\" (Comma Separated Values packet summary) file...", NULL, export_csv_cmd_cb, 0, NULL, NULL), + ITEM_FACTORY_ENTRY("/File/Export/as \"C _Arrays\" (packet bytes) file...", NULL, export_carrays_cmd_cb, + 0, NULL, NULL), ITEM_FACTORY_ENTRY("/File/Export/<separator>", NULL, NULL, 0, "<Separator>", NULL), ITEM_FACTORY_ENTRY("/File/Export/as XML - \"P_SML\" (packet summary) file...", NULL, export_psml_cmd_cb, 0, NULL, NULL), |