aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
AgeCommit message (Collapse)AuthorFilesLines
2010-11-27Move main_statusbar.h to the top-level directory; none of its routinesguy1-6/+7
use GTK+ data types, so, at least in theory, it could be implemented atop another toolkit. Make statusbar_push_temporary_msg() take a format string and format arguments. Use it instead of simple_status(), and change one call to just take a format string and arguments rather than to take the result of using that format string and arguments with g_strdup_printf() and passing the result to statusbar_push_temporary_msg(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35041 f5534014-38df-0310-8fa8-9805f1628bb7
2010-10-23(Trivial) Fix a typo in a comment.wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34626 f5534014-38df-0310-8fa8-9805f1628bb7
2010-10-18Fix the win64 buildmorriss1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34564 f5534014-38df-0310-8fa8-9805f1628bb7
2010-10-18Fix progress bar when loading compressed files.morriss1-13/+32
Continue to use the data offset ((uncompressed) bytes read) as our progress indicator, at least until we get a progress value greater than 1.0. Then, in addition to checking if the size of the file changed, check our position in the file and use that as our progress indicator. This optimizes uncompressed file accesses (avoiding an lseek()) at the "expense" of switching progress measures (from data read to position in the file) while loading a file. Tests have shown that the progress bar never shows the data offset number when loading a compressed file, so this should be okay. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34563 f5534014-38df-0310-8fa8-9805f1628bb7
2010-08-27(Trivial) Fix a typowmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33951 f5534014-38df-0310-8fa8-9805f1628bb7
2010-08-16From Cal Turney:etxrab1-0/+1
1. Restore the functionality of <Ctrl>A and <Ctrl>X to the filter textbox. 2. Assign intuitive shortcuts without consuming any new shortcut letters. 3. Add 'Un-Time Reference All Packets' to the menu. 4. Disallow the marking or ignoring of all packets in the capture. 5. Make the Mark/Ignore/Time Reference-related menu items context sensitive. 6. Add 'ref_time_count' to the capture_file structure 7. Utilize marked/ignored/ref_time_count vars to prevent needless looping thru the entire packet list by exiting the loop when it becomes zero. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5115 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33817 f5534014-38df-0310-8fa8-9805f1628bb7
2010-08-15Fix compilation error when compiling for "old packet list".wmeier1-2/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33802 f5534014-38df-0310-8fa8-9805f1628bb7
2010-08-13Instead of using a Boolean for the search direction, use an enum, soguy1-240/+324
that you can tell from examination whether the search is forward or backward. Make the cf_find_packet routines take the direction as an explicit argument, rather than, in the cases where you don't want to permanently set the direction, saving the direction in the capture_file structure, changing it, doing the search, and restoring the saved direction. Give more information in the Doxygen comments for those routines. Add a cf_find_packet_dfilter_string() routine, which takes a filter string rather than a compiled filter as an argument. Replace find_previous_next_frame_with_filter() with it. Have cf_read_frame_r() and cf_read_frame() pop up the error dialog if the read fails, rather than leaving that up to its caller. That lets us eliminate cf_read_error_message(), by swallowing its code into cf_read_frame_r(). Add Doxygen comments for cf_read_frame_r() and cf_read_frame(). Don't have find_packet() read the packet before calling the callback routine; leave that up to the callback routine. Add cf_find_packet_marked(), to find the next or previous marked packet, and cf_find_packet_time_reference(), to find the next or previous time reference packet. Those routines do *not* need to read the packet data to see if it matches; that lets them run much faster. Clean up indentation. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33791 f5534014-38df-0310-8fa8-9805f1628bb7
2010-07-16Make sure we call wtap_cleareof() before each read.gerald1-2/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33555 f5534014-38df-0310-8fa8-9805f1628bb7
2010-06-30Revertingetxrab1-5/+0
http://anonsvn.wireshark.org/viewvc?view=rev&revision=29861 seems to fix the scrolling in live captures issue. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4891 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33384 f5534014-38df-0310-8fa8-9805f1628bb7
2010-06-26Increase the displayed_count before we add the packet to the packet list,stig1-2/+3
because we update the the packets bar when adding the packet. This fixes bug 4896. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33331 f5534014-38df-0310-8fa8-9805f1628bb7
2010-05-27Add cf_fake_continue_tail() which is called when real-time capturegerald1-0/+5
updates are off and which sets the capture file state to a value that won't cause an assertion when the user stops capturing. Fixes bug 4035. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33005 f5534014-38df-0310-8fa8-9805f1628bb7
2010-05-26Another attempt at bug 4669: Properly set the previous-displayed-packetgerald1-3/+11
timestamp when we're recalculating reference times. Remove an unused variable. Add whitespace & comment fixups. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32985 f5534014-38df-0310-8fa8-9805f1628bb7
2010-05-26From Jakub Zawadzki:etxrab1-10/+20
New functions: cf_read_frame_r, cf_read_frame It's much easier to write: cf_read_frame (cf, fdata, &err, &err_info) Than: wtap_seek_read (cf->wth, fdata->file_off, &cf->pseudo_header, cf->pd, fdata->cap_len, &err, &err_info) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32980 f5534014-38df-0310-8fa8-9805f1628bb7
2010-05-07Zlib has an officially-sanctioned way of clearing EOF when we're tailinggerald1-0/+1
a file. Use it. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32716 f5534014-38df-0310-8fa8-9805f1628bb7
2010-04-28Use consistent indentation;wmeier1-198/+198
Altho no tabs use tab-width=8 anyway. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32590 f5534014-38df-0310-8fa8-9805f1628bb7
2010-04-01Keep a copy of the interface description and capture filter around so thatgerald1-1/+38
we can use it in the main window title during and after capture. Add a "-X" option for providing a description for stdin. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32357 f5534014-38df-0310-8fa8-9805f1628bb7
2010-03-27Squelch a compiler warning.guy1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32310 f5534014-38df-0310-8fa8-9805f1628bb7
2010-03-15Declare sip_uri_offset_init() as returning void and remove a couple unused ↵morriss1-0/+6
variables git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32195 f5534014-38df-0310-8fa8-9805f1628bb7
2010-02-24Fix for bug 3926:dimeg1-6/+3
Enhance decoding of TS2 channel list git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31993 f5534014-38df-0310-8fa8-9805f1628bb7
2010-02-24Fix for bug 4323 & 4511:stig1-0/+6
Call col_custom_prime_edt() when having custom columns on print and export to csv and psml. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31990 f5534014-38df-0310-8fa8-9805f1628bb7
2010-02-17Another Laura bug: Don't reset the file load time in the status bar whengerald1-6/+4
we apply a display filter. Display the load time as "Load time: M:SS.SSS" instead of "Time: HH:MM:SS.SSS". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31909 f5534014-38df-0310-8fa8-9805f1628bb7
2010-02-01Don't freeze/thaw the list when stoping a live capture.etxrab1-2/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31754 f5534014-38df-0310-8fa8-9805f1628bb7
2010-02-01Don't freeze/thaw the list when doing live captures.etxrab1-4/+7
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31748 f5534014-38df-0310-8fa8-9805f1628bb7
2010-01-20From Jim Young:etxrab1-1/+1
Wireshark GUI not reporting filename after save of new capture file. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4406 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31587 f5534014-38df-0310-8fa8-9805f1628bb7
2009-12-17Introduce "Ignore Packet" in the packet list.stig1-0/+30
This will remove the package from the dissection functions without removing it from the capture file. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31287 f5534014-38df-0310-8fa8-9805f1628bb7
2009-12-14From Valerio Messina:jake1-14/+23
As now, when Wireshark save capture files, it show "Loading" in status bar and in the dialog box, warning many users of lost them packets. Saving work as expected. Is simply a GUI use interaction problem. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31269 f5534014-38df-0310-8fa8-9805f1628bb7
2009-11-10From Stig:etxrab1-0/+2
Invalidate cfile.current_row instead(revert 30910). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30925 f5534014-38df-0310-8fa8-9805f1628bb7
2009-11-04Add the ability to push temporary (and highlighted) messages onto thegerald1-20/+6
statusbar. This lets us notify the user about something significant without having to pop up an annoying window. Replace a few dialogs with statusbar messages. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30810 f5534014-38df-0310-8fa8-9805f1628bb7
2009-10-29Fixed 'Delta timestamp to previous captured frame' calculation instig1-49/+4
old packet list. This bug was introduced in r30052. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30758 f5534014-38df-0310-8fa8-9805f1628bb7
2009-10-19Made some functions static.stig1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30616 f5534014-38df-0310-8fa8-9805f1628bb7
2009-10-02Prime interesting fields when selecting a package, so Lua's ProtoFieldstig1-0/+1
can extract the field value correctly. This fixes bug 4058. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30252 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-22Select the first packet when doing a live capture. In the old packet list ↵etxrab1-0/+5
this is automatically done as the clist emits a selct-row signal. Seting focus in new_packet_list_moveto_end() seems also to be needed to make it work properly I'm not 100% sure if it should be done differently. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30074 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-22dfilter_free() can handle a NULL pointer so don't guard against that before ↵krj1-13/+6
calling it git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30072 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-22Introduce cap_file_add_fdata() and start using itkrj1-10/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30071 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-22Switch Wireshark GUI (file.c) over to using frame_data.ckrj1-81/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30067 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-22Make sure that the old packet list works with the changes introduced in r30047krj1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30060 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-21Bring frame_data_init() and add_packet_to_packet_list() more in sync by ↵krj1-5/+6
adding 'ref_time' handling to frame_data_init(). For tshark/rawshark this is unused because they only do a single pass through the capture file git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30055 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-21Only set cumulative bytes after passing the display filter testkrj1-3/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30053 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-21Move 'Delta timestamp to previous captured frame' calculation inside ↵krj1-6/+19
add_packet_to_packet_list(). This is done in order to streamline add_packet_to_packet_list() with frame_data_init(). Hopefully we can switch to frame_data_init() soon git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30052 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-21Rename capture_file.plist to capture_file.plist_start to make it consistent ↵krj1-9/+9
with capture_file.plist_end git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30047 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-21Remove second (redundant) assignment to fdata->cum_byteskrj1-3/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30046 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-21Reverse order of NEW_PACKET_LIST guard, i.e. #ifdef NEW_PACKET_LIST instead ↵krj1-88/+86
of #ifndef NEW_PACKET_LIST git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30045 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-21Fix typo in commentsfisher1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30043 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-21(cosmetic change) - reset cumulative bytes together with 'first_ts' and ↵krj1-476/+474
'prev_dis_ts' git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30042 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-21cf->dfilter is only set if it's valid so assert if that's not the casekrj1-20/+15
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30041 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-21Reset cumulative bytes when we open the filekrj1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30040 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-21Set fdata->num up front and roll back if necessarykrj1-4/+8
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30039 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-21Shuffle NEW_PACKET_LIST guardkrj1-6/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30038 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-21Introduce a NEW_PACKET_LIST specialized version of ↵krj1-21/+138
add_packet_to_packet_list(). The old one contained too many #ifdef NEW_PACKET_LIST which reduced readability git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30036 f5534014-38df-0310-8fa8-9805f1628bb7