aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/export_object.c
AgeCommit message (Collapse)AuthorFilesLines
2010-06-16Cast bytes_left down to an int once we've established it will fit.Guy Harris1-1/+1
svn path=/trunk/; revision=33232
2010-06-16Handle WTAP_ERR_SHORT_WRITE in file_write_error_message().Guy Harris1-7/+39
In eo_save_entry(), don't assume you can write the entire object in a single write call - if the object is big enough (which would require a 64-bit address space), and you're not lucky enough to be running on UN*X (which means LP64, so size_t and ssize_t are big enough for the entire object), you can't. svn path=/trunk/; revision=33231
2010-06-15From David Perez & Jose Pico from Taddong S.L. via bug 4451:Stig Bjørlykke1-2/+3
This functionality keeps track of all SMB objects contained in a capture, and is able to export to a file a full or partial captured file that has been transfered through the SMB protocol. In a partial capture, the holes produced by the non-captured information are filled out with zeros. It includes the needed modifications of the SMB dissector in the way it keeps track of the opened SMB files and also to feed the eo_smb tap listener. svn path=/trunk/; revision=33227
2009-06-05Have tap listeners specify whether the "packet" routine requiresGuy Harris1-2/+2
a protocol tree; the column values. This includes stats-tree listeners. Have the routines to build the packet list, and to retap packets, honor those requirements. This means that cf_retap_packets() no longer needs an argument to specify whether to construct the column values or not, so get rid of that argument. This also means that there's no need for a tap to have a fake filter to ensure that the protocol tree will be built, so don't set up a fake "frame" filter. While we're at it, clean up some cases where "no filter" was represented as a null string rather than a null pointer. Have a routine to return an indication of the number of tap listeners with filters; use that rather than the global num_tap_filters. Clean up some indentation and some gboolean vs. gint items. svn path=/trunk/; revision=28645
2009-06-03Correct error dialog with correct tap name.Jaap Keuter1-15/+15
Cleanup source code. svn path=/trunk/; revision=28627
2009-05-31Change my e-mail addressStephen Fisher1-1/+1
svn path=/trunk/; revision=28537
2008-07-25From David Aggeler:Anders Broman1-0/+8
Follow-up from SVN 25825 check in The g_slist_free() is really needed in export_object.c, otherwise, the export list has false (repetitive) entries in it, that cause a crash when selecting them. Whether false entries are in the list, only depends on the speed of the export processing, since this tap is Replaced all guchar with gchar. This should eliminate the warnings on solaris. I guess I used the wrong reference. Added patch for 'Authors' in case I need to add myself to the list. svn path=/trunk/; revision=25834
2008-06-29Fix some simple cases of GTK2 deprecated API usage by using a renamed or ↵Bill Meier1-1/+1
equivalent API gtk_container_border_width() ==> gtk_container_set_border_width() gtk_container_children() ==> gtk_container_get_children() gtk_entry_new_with_max_length() ==> gtk_entry_new(); gtk_entry_set_max_length() gtk_menu_append() ==> gtk_menu_shell_append() gtk_menu_prepend() ==> gtk_menu_shell_prepend() gtk_notebook_set_page() ==> gtk_notebook_set_current_page() gtk_paned_gutter_size() ==> gtk_paned_set_gutter_size() gtk_radio_button_group() ==> gtk_radio_button_get_group() gtk_signal_connect() ==> g_signal_connect() gtk_signal_disconnect() ==> g_signal_handler_disconnect() gtk_signal_emit_by_name() ==> g_signal_emit_by_name() gtk_signal_handler_block_by_data() ==> g_signal_handlers_block_matched() gtk_signal_handler_block_by_func() ==> g_signal_handlers_block_by_func() gtk_signal_handler_unblock_by_data() ==> g_signal-handlers_unblock_matched() gtk_signal_handler_unblock_by_func() ==> g_signal-handlers_unblock_by_func() gtk_spin_button_get_value_as_float() ==> gtk_spin_button_get_value() gtk_toggle_button_set_state() ==> gtk_toggle_button_set_active() svn path=/trunk/; revision=25634
2008-05-22Move the file utility functions from wiretap to libwsutil so thatJeff Morriss1-5/+5
libwireshark (and the plugins using those functions) do not depend on wiretap on Windows. While doing that, rename the eth_* functions to ws_*. svn path=/trunk/; revision=25354
2008-04-27Remove all GTK+ < 2.4 code and minimum version checks.Stephen Fisher1-4/+0
svn path=/trunk/; revision=25182
2008-04-16add "Save As" and "Save All" buttons to the dialog / stock_icons utilsUlf Lamping1-18/+15
use them in the export object dialog svn path=/trunk/; revision=25072
2008-04-13sort #includes by directoriesUlf Lamping1-14/+13
svn path=/trunk/; revision=24968
2008-04-12where it's not necessary, remove #include "compat_macros.h"Ulf Lamping1-1/+0
svn path=/trunk/; revision=24922
2008-04-11second round to replace SIGNAL_CONNECT with g_signal_connectUlf Lamping1-8/+7
This requires some casts to be added and I just don't want to add casts at all possible places. So I compile and only add casts where the (MSVC) compiler has a hard time. Unfortunately this won't find any problems in Linux/Unix only code - I'll keep an eye on the buildbot and try to fix things as I'm going on ... svn path=/trunk/; revision=24913
2008-04-11replace all appearances of BUTTON_NEW_FROM_STOCK with GTK2's ↵Ulf Lamping1-3/+3
gtk_button_new_from_stock svn path=/trunk/; revision=24904
2008-04-05Remove GTK1 references and code (other than our packet list clist).Stephen Fisher1-2/+0
svn path=/trunk/; revision=24783
2008-01-31Add missing g_object_unref for treeview models;Bill Meier1-0/+1
Remove not needed set_tree_model (stats_tree_stat.c) svn path=/trunk/; revision=24230
2007-08-04Change the export object/export object http code to only be includedStephen Fisher1-3/+4
in the code for GTK versions 2.4 and up instead of 2 and up. svn path=/trunk/; revision=22455
2007-06-27If we have problems with "Save All" in the HTTP object list, show a singleGerald Combs1-16/+26
error dialog instead of one dialog per unsaved file. svn path=/trunk/; revision=22198
2007-05-25Squelch some qualifier (const vs. non-const) warnings.Guy Harris1-1/+1
svn path=/trunk/; revision=21938
2007-03-29Change mnemonic on Save All button from A to L to avoid overlappingStephen Fisher1-1/+1
with the mnemonic for the Save As (A) button in the Export Object dialog. svn path=/trunk/; revision=21272
2007-03-13HTTP Export Object updates:Stephen Fisher1-23/+13
- Split the HTTP tap into two taps: one for the HTTP statistics and the other for the export object function. This allows the HTTP statistics to work again (they seem to have been partially broken since SVN rev 18901). - Pass the conversation data (conv_data) between functions now instead of using the global variable stat_info (now only used for the HTTP stats) - Pass only pointers from the HTTP dissector to the Export Object tap, where we'll then copy the values and insert into the slist. - Make sure we free all memory allocated by this feature when we're done with it. - Various other minor improvements svn path=/trunk/; revision=21021
2007-03-06Export Object code/documentation updates:Stephen Fisher1-34/+29
- Note in the user's guide that export object is not available in GTK1 builds of Wireshark. - Make scanning through the slists more efficient - Use new tap.c function called have_tap_listener() to only save object payload data when the export object listener is actively listening for it. - Save objects in the HTTP dissector with g_malloc() instead of se_malloc() and free it when we're done with it - when the export object window is closed (Fixes bug #1412) - Various minor improvements svn path=/trunk/; revision=20980
2007-03-03Update object export code:Stephen Fisher1-16/+253
- Add to User's Guide - Add a help button - Move a lot of code into the shared export_object.c file and out of dissector specific file export_object_http.c. This will make adding additional protocols much easier. - Change comment in packet-http.c to reflect new name (Export Object) - Various other minor improvements svn path=/trunk/; revision=20961
2007-02-28Sync up my changes so far to the content list (now called objectStephen Fisher1-0/+195
list) feature for http traffic. It's now available under File-> Export->Objects->HTTP. More changes to come.. svn path=/trunk/; revision=20951