aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
AgeCommit message (Collapse)AuthorFilesLines
2009-09-06Split a bunch of init routines into init() and cleanup(). This allows us to ↵Kovarththanan Rajaratnam1-8/+12
free memory properly on shutdown. This is an initial step. There's still some work to do. svn path=/trunk/; revision=29754
2009-09-05Get rid off GtkTreeModelFilter because the time to sort becomes unbearable ↵Kovarththanan Rajaratnam1-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
2009-09-03Remove superfluous assignmentKovarththanan Rajaratnam1-3/+2
svn path=/trunk/; revision=29686
2009-09-03Make sure that we stop auto scroll if we start scrolling manually. Kovarththanan Rajaratnam1-0/+2
Caveat: we jump to first frame when auto scroll is stopped svn path=/trunk/; revision=29685
2009-09-02Only try and select the last row if not already selected. This fix doesn't ↵Kovarththanan Rajaratnam1-1/+1
seem to work. Any suggestions? svn path=/trunk/; revision=29677
2009-09-02Add seperate new_packet_list_moveto_end() which scrolls to the end _without_ ↵Kovarththanan Rajaratnam1-3/+3
selecting the last packet. svn path=/trunk/; revision=29670
2009-09-02Make sure that we select the last row if autoscroll is enabled. The ↵Kovarththanan Rajaratnam1-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
2009-09-01Add volatile to avoid clobbered by longjmp warning.Martin Mathieson1-1/+1
svn path=/trunk/; revision=29651
2009-09-01- Read a min number if packets before checking if the progress bar should be ↵Anders Broman1-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
2009-08-28Compute the loading time and show it in the main status bar.Anders Broman1-0/+21
(Modified code from Didier Gautheron). svn path=/trunk/; revision=29592
2009-08-21Also fake empty field_info's by gracefully handling NULL field_info pointer ↵Kovarththanan Rajaratnam1-0/+2
elsewhere. svn path=/trunk/; revision=29490
2009-08-21Use col_text in frame data.Anders Broman1-4/+4
- colum-utils needs more work, based on Didier Gautherons optimizations patch http://wiki.wireshark.org/Development/Optimization svn path=/trunk/; revision=29489
2009-08-19We shouldn't conditionalise on _filtering_ tap listerners to determine ↵Kovarththanan Rajaratnam1-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
2009-08-15Inline a few checks in the add_packet_to_packet_list() function since it's ↵Kovarththanan Rajaratnam1-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
2009-08-14Make display filtering work for NEW_PACKET_LIST. This didn't work previously ↵Kovarththanan Rajaratnam1-7/+19
because we would simply append the new filtered packets onto the existing ones. svn path=/trunk/; revision=29409
2009-08-14Always add packet to the new packet list regardless of whether the packet ↵Kovarththanan Rajaratnam1-12/+13
passed the display filter test or not. We do this because we do the filtering inside the new packet list. svn path=/trunk/; revision=29408
2009-08-13Introduce epan_dissect_init()/epan_dissect_cleanup(). These are used to ↵Kovarththanan Rajaratnam1-70/+70
initialise/cleanup stack allocated 'edt' structures. This should speed up dissection since we avoid some malloc traffic. svn path=/trunk/; revision=29404
2009-08-10From Kovarththanan Rajaratnam:Anders Broman1-16/+21
- Compute and cache color/custom filters dynamically. - Delay column construction. svn path=/trunk/; revision=29370
2009-08-09Add PNODE_FINFO. We've been using PITEM_FINFO on proto_node's. This works ↵Kovarththanan Rajaratnam1-1/+1
because proto_item is typedefed to proto_node. We shouldn't rely on this since this is an implementation detail. svn path=/trunk/; revision=29354
2009-08-07Free frame data slice on file resetKovarththanan Rajaratnam1-0/+2
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3813 svn path=/trunk/; revision=29322
2009-07-29From Kovarththanan Rajaratnam:Anders Broman1-11/+11
This patch fixes the "Decode as" crash. We now freeze the packetlist before attempting to clear it. This way we don't have to issue a row deleted signal either. svn path=/trunk/; revision=29238
2009-07-29Add pinfo to new_packet_list_append() this should give us the abillityAnders Broman1-1/+1
to store (most) of the underlying data rather than the strings in the store and render it when we need it, thuss saving storage space and loading time. Idealy we should not store the complete fdata or pinfo structures but rather just the data relevant to the currently selected/used columns. I'm not entierly sure how to accomplish that however. Dynamically allocated array to hold pointers to the actual data? svn path=/trunk/; revision=29237
2009-07-28Pacify the build bot.Anders Broman1-4/+4
svn path=/trunk/; revision=29222
2009-07-28Set reftime without recreating the packet list.Anders Broman1-1/+81
svn path=/trunk/; revision=29220
2009-07-27From Kovarththanan Rajaratnam:Anders Broman1-4/+8
Only fill in frame_data vals when needed. svn path=/trunk/; revision=29203
2009-07-26From Kovarththanan Rajaratnam:Anders Broman1-0/+7
Only clear packet list store if we need to redissect. svn path=/trunk/; revision=29195
2009-07-25Remove two unused variables and mark a function paramter as unusedStephen Fisher1-2/+2
svn path=/trunk/; revision=29193
2009-07-25From Kovarththanan Rajaratnam:Anders Broman1-8/+8
New packet list: enable goto first/last packet (Optimized) svn path=/trunk/; revision=29190
2009-07-24Use g_slice if glib >=2.10Anders Broman1-3/+27
svn path=/trunk/; revision=29187
2009-07-24When using the new packet list select the first packet when the file read is ↵Anders Broman1-2/+5
complete. This should take care of the crash when closing WS. svn path=/trunk/; revision=29186
2009-07-22From kovarththanan Rajaratnam:Anders Broman1-1/+1
Pass column_info as a pointer (new packet list). svn path=/trunk/; revision=29169
2009-07-22Minor indentation fixes.Anders Broman1-7/+7
svn path=/trunk/; revision=29163
2009-07-21From didier gautheron via bug 3762:Stig Bjørlykke1-29/+0
This patch removes col_expr in frame_data structure, it can be recomputed when needed. svn path=/trunk/; revision=29159
2009-07-20Implement new_packet_list_find_row_from_data()Anders Broman1-14/+22
Goto frame should work now. svn path=/trunk/; revision=29147
2009-07-20Introduce packet list coloring for the NEW_PACKET_LIST. One caveat: whenStephen Fisher1-2/+5
enabling/disabling the coloring of the packet list from the menus, the user has to drag the mouse cursor over each displayed row to take away/add the coloring. Dragging the scroll bar up or down will also take care of this as only the displayed rows are colored. svn path=/trunk/; revision=29142
2009-07-06Removed an incorrect optimalization for invalidating packet in row 0.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=28950
2009-07-01Updates to create_tempfile:Gerald Combs1-2/+2
- Use g_get_tmp_dir, just like get_tempfile_path. - Don't make the caller worry about the path buffer length. svn path=/trunk/; revision=28915
2009-07-01Realy make the new packet list compile under Windows...Anders Broman1-1/+1
svn path=/trunk/; revision=28909
2009-07-01Make the new packet list compile on Windows.Anders Broman1-3/+0
svn path=/trunk/; revision=28907
2009-06-30Introduce experimental new feature: GTK2 tree view based packet listStephen Fisher1-4/+106
To use the GTK2 based packet list, define NEW_PACKET_LIST when compiling. To do this with gcc, set the environment variable CPPFLAGS to "-DNEW_PACKET_LIST" and re-run configure. Many features do not yet work. This work began with prototypes by Ulf quite a while back. I've put quite a bit of work into this so far and as discussed with a few of the core team members at Sharkfest09 and it was decided that it would be best to commit what I have so far to allow others to help work on this. svn path=/trunk/; revision=28892
2009-06-11Optimized criteria for invalidate packet in row 0.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=28698
2009-06-06Clean up white space.Guy Harris1-12/+8
svn path=/trunk/; revision=28646
2009-06-05Have tap listeners specify whether the "packet" routine requiresGuy Harris1-21/+81
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-01Popup a dialog in case we match a row outside the loaded frame area.Stig Bjørlykke1-1/+6
This adds some information for bug 3429. svn path=/trunk/; revision=28556
2009-06-01From Kovarththanan Rajaratnam via bug 3429:Stig Bjørlykke1-1/+5
This patch downgrades the g_assert() to a proper if statement. This is needed because we can end up with a match but _without_ any valid row attached to it. This is the case when the user has aborted while dissecting. svn path=/trunk/; revision=28555
2009-05-31Fix bug 3489:Jaap Keuter1-2/+0
Array overrun at copy of filter expression on GTK1 build. svn path=/trunk/; revision=28538
2009-05-26Fix the build.Gerald Combs1-0/+2
svn path=/trunk/; revision=28476
2009-05-25From Didier Gautheron via bug 3391:Gerald Combs1-6/+10
when loading files > 50 MB wireshark redraws the first pane on each update_progress_dlg(). If auto_scroll_live is not set that's mean it redraws the same rows again and again. The patch attached only redraws it once or if cf->displayed_count < 1000, in case you have a very big screen. svn path=/trunk/; revision=28475
2009-04-21Turn on -Wshorten-64-to-32 by default, and fix some issues that turnedGuy Harris1-10/+10
up (99 44/100% of which were assignments of double-precision floating-point constants to floats). Hopefully this will catch at least some P64 issues on UN*X. svn path=/trunk/; revision=28108
2009-04-16Fix the last(?) of the Win64 compilation problems.Gerald Combs1-5/+5
svn path=/trunk/; revision=28065