aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
Commit message (Collapse)AuthorAgeFilesLines
* Select the first packet when doing a live capture. In the old packet list ↵Anders Broman2009-09-221-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. svn path=/trunk/; revision=30074
* dfilter_free() can handle a NULL pointer so don't guard against that before ↵Kovarththanan Rajaratnam2009-09-221-13/+6
| | | | | | calling it svn path=/trunk/; revision=30072
* Introduce cap_file_add_fdata() and start using itKovarththanan Rajaratnam2009-09-221-10/+3
| | | | svn path=/trunk/; revision=30071
* Switch Wireshark GUI (file.c) over to using frame_data.cKovarththanan Rajaratnam2009-09-221-81/+6
| | | | svn path=/trunk/; revision=30067
* Make sure that the old packet list works with the changes introduced in r30047Kovarththanan Rajaratnam2009-09-221-4/+4
| | | | svn path=/trunk/; revision=30060
* Bring frame_data_init() and add_packet_to_packet_list() more in sync by ↵Kovarththanan Rajaratnam2009-09-211-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 svn path=/trunk/; revision=30055
* Only set cumulative bytes after passing the display filter testKovarththanan Rajaratnam2009-09-211-3/+1
| | | | svn path=/trunk/; revision=30053
* Move 'Delta timestamp to previous captured frame' calculation inside ↵Kovarththanan Rajaratnam2009-09-211-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 svn path=/trunk/; revision=30052
* Rename capture_file.plist to capture_file.plist_start to make it consistent ↵Kovarththanan Rajaratnam2009-09-211-9/+9
| | | | | | with capture_file.plist_end svn path=/trunk/; revision=30047
* Remove second (redundant) assignment to fdata->cum_bytesKovarththanan Rajaratnam2009-09-211-3/+1
| | | | svn path=/trunk/; revision=30046
* Reverse order of NEW_PACKET_LIST guard, i.e. #ifdef NEW_PACKET_LIST instead ↵Kovarththanan Rajaratnam2009-09-211-88/+86
| | | | | | of #ifndef NEW_PACKET_LIST svn path=/trunk/; revision=30045
* Fix typo in commentStephen Fisher2009-09-211-1/+1
| | | | svn path=/trunk/; revision=30043
* (cosmetic change) - reset cumulative bytes together with 'first_ts' and ↵Kovarththanan Rajaratnam2009-09-211-476/+474
| | | | | | 'prev_dis_ts' svn path=/trunk/; revision=30042
* cf->dfilter is only set if it's valid so assert if that's not the caseKovarththanan Rajaratnam2009-09-211-20/+15
| | | | svn path=/trunk/; revision=30041
* Reset cumulative bytes when we open the fileKovarththanan Rajaratnam2009-09-211-2/+2
| | | | svn path=/trunk/; revision=30040
* Set fdata->num up front and roll back if necessaryKovarththanan Rajaratnam2009-09-211-4/+8
| | | | svn path=/trunk/; revision=30039
* Shuffle NEW_PACKET_LIST guardKovarththanan Rajaratnam2009-09-211-6/+4
| | | | svn path=/trunk/; revision=30038
* Introduce a NEW_PACKET_LIST specialized version of ↵Kovarththanan Rajaratnam2009-09-211-21/+138
| | | | | | add_packet_to_packet_list(). The old one contained too many #ifdef NEW_PACKET_LIST which reduced readability svn path=/trunk/; revision=30036
* cf_change_time_formats() is not needed with new packet list.Anders Broman2009-09-211-27/+16
| | | | svn path=/trunk/; revision=30034
* Add NEW_PACKET_LIST guard wrt fdata->col_textKovarththanan Rajaratnam2009-09-211-3/+5
| | | | svn path=/trunk/; revision=30030
* Introduce frame_data_cleanup() and start using itKovarththanan Rajaratnam2009-09-201-17/+6
| | | | svn path=/trunk/; revision=30023
* From Jakub Zawadzki:Kovarththanan Rajaratnam2009-09-151-4/+2
| | | | | | Fix copy/paste error wrt. fdata->col_text_len svn path=/trunk/; revision=29921
* Fix:Anders Broman2009-09-151-1/+8
| | | | | | cleanup_dissection() calls se_free_all(); And after that fdata->col_text (which is allocated using se_alloc0()) no longer points to valid memory. svn path=/trunk/; revision=29920
* Fix warning that variable may be unused and then declare volatile so itStephen Fisher2009-09-111-1/+1
| | | | | | | survives the TRY/CATCH code. svn path=/trunk/; revision=29863
* Only move to last row if it's vissible.Anders Broman2009-09-111-2/+7
| | | | svn path=/trunk/; revision=29861
* New_packet_listAnders Broman2009-09-111-28/+316
| | | | | | Select the correct frame in packet details when filtering. svn path=/trunk/; revision=29857
* Allocate col_text and col_text_len when the fdata struct is allocated.Anders Broman2009-09-091-0/+2
| | | | | | (complete the checkin). svn path=/trunk/; revision=29818
* Add an option to col_fill_in() to allow us to disable column expression ↵Kovarththanan Rajaratnam2009-09-081-4/+4
| | | | | | processing. This is rarely needed. It's only needed when the user right clicks on the packet list view to generate a display filter. svn path=/trunk/; revision=29806
* Make sure that reset the elapsed time to load a file before we reload/rescan ↵Kovarththanan Rajaratnam2009-09-071-17/+27
| | | | | | the file svn path=/trunk/; revision=29783
* Rename new_packet_list_set_time_width() -> new_packet_list_resize_column() ↵Kovarththanan Rajaratnam2009-09-071-2/+2
| | | | | | because it contains no time format specific code. Further this change also ensures that new_packet_list_resize_columns() uses the newly introduced new_packet_list_resize_column() svn path=/trunk/; revision=29782
* Store the packet encapsulation type as gint8. Saves 3 bytes per packetKovarththanan Rajaratnam2009-09-071-1/+3
| | | | svn path=/trunk/; revision=29767
* Fixed arguments to new_packet_list_set_time_width().Stig Bjørlykke2009-09-071-1/+1
| | | | svn path=/trunk/; revision=29761
* col_fmt not needed.Anders Broman2009-09-071-1/+1
| | | | svn path=/trunk/; revision=29760
* Track length of columns strings. We'll need this in order to resize columns ↵Kovarththanan Rajaratnam2009-09-071-0/+1
| | | | | | quickly svn path=/trunk/; revision=29759
* Automatically adjust the time column width when time format changes.Anders Broman2009-09-071-1/+15
| | | | svn path=/trunk/; revision=29758
* Split a bunch of init routines into init() and cleanup(). This allows us to ↵Kovarththanan Rajaratnam2009-09-061-8/+12
| | | | | | | | free memory properly on shutdown. This is an initial step. There's still some work to do. svn path=/trunk/; revision=29754
* Get rid off GtkTreeModelFilter because the time to sort becomes unbearable ↵Kovarththanan Rajaratnam2009-09-051-0/+2
| | | | | | when combined with GtkTreeSortable. This means that we now track which frames are visible in the our own packet list store. To do so, we now distinguish between physical and visible rows. All frames are added as physical rows. Only those that passes the display filter are marked as visible. svn path=/trunk/; revision=29705
* Remove superfluous assignmentKovarththanan Rajaratnam2009-09-031-3/+2
| | | | svn path=/trunk/; revision=29686
* Make sure that we stop auto scroll if we start scrolling manually. Kovarththanan Rajaratnam2009-09-031-0/+2
| | | | | | Caveat: we jump to first frame when auto scroll is stopped svn path=/trunk/; revision=29685
* Only try and select the last row if not already selected. This fix doesn't ↵Kovarththanan Rajaratnam2009-09-021-1/+1
| | | | | | seem to work. Any suggestions? svn path=/trunk/; revision=29677
* Add seperate new_packet_list_moveto_end() which scrolls to the end _without_ ↵Kovarththanan Rajaratnam2009-09-021-3/+3
| | | | | | selecting the last packet. svn path=/trunk/; revision=29670
* Make sure that we select the last row if autoscroll is enabled. The ↵Kovarththanan Rajaratnam2009-09-021-13/+19
| | | | | | scrolling is still very jumpy. It seems that we always select the first packet before moving to the end. svn path=/trunk/; revision=29668
* Add volatile to avoid clobbered by longjmp warning.Martin Mathieson2009-09-011-1/+1
| | | | svn path=/trunk/; revision=29651
* - Read a min number if packets before checking if the progress bar should be ↵Anders Broman2009-09-011-24/+36
| | | | | | | | | | | updated. - Calculate the progess before checking if progress bar should be created or not. - Dont update the progress to often on small files. - Use data_offset rather than reading file_pos. svn path=/trunk/; revision=29648
* Compute the loading time and show it in the main status bar.Anders Broman2009-08-281-0/+21
| | | | | | (Modified code from Didier Gautheron). svn path=/trunk/; revision=29592
* Also fake empty field_info's by gracefully handling NULL field_info pointer ↵Kovarththanan Rajaratnam2009-08-211-0/+2
| | | | | | elsewhere. svn path=/trunk/; revision=29490
* Use col_text in frame data.Anders Broman2009-08-211-4/+4
| | | | | | | - colum-utils needs more work, based on Didier Gautherons optimizations patch http://wiki.wireshark.org/Development/Optimization svn path=/trunk/; revision=29489
* We shouldn't conditionalise on _filtering_ tap listerners to determine ↵Kovarththanan Rajaratnam2009-08-191-6/+2
| | | | | | | | whether tapping should be performed or not. We also need to handle _normal_ tap listerners. This change backs out the regression introduced in r29435. Thanks to Didier: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3916 svn path=/trunk/; revision=29475
* Inline a few checks in the add_packet_to_packet_list() function since it's ↵Kovarththanan Rajaratnam2009-08-151-3/+8
| | | | | | called in tight loop. This will help us to avoid calling functions that simply returns. This is especially the case when we're dealing with the new packet list due to its dissect-on-demand nature where colour/column construction is delayed until the row becomes visible. svn path=/trunk/; revision=29435
* Make display filtering work for NEW_PACKET_LIST. This didn't work previously ↵Kovarththanan Rajaratnam2009-08-141-7/+19
| | | | | | because we would simply append the new filtered packets onto the existing ones. svn path=/trunk/; revision=29409