Guy Harris
c8112bc620
Read the packet into private areas (private pseudo-header and packet
...
data), rather than overwriting the information in the cinfo structure.
This at least appears to fix bug 4056.
svn path=/trunk/; revision=31844
2010-02-09 09:15:08 +00:00
Anders Broman
7789513924
Issue a row_inserted signal if the model is connected
...
svn path=/trunk/; revision=31746
2010-02-01 06:23:16 +00:00
Bill Meier
538dd47d5d
Fix various gcc -Wshadow warnings.
...
svn path=/trunk/; revision=31731
2010-01-29 19:09:01 +00:00
Stig Bjørlykke
63fa42c5ab
Added correct sorting for custom numeric columns.
...
svn path=/trunk/; revision=31097
2009-11-27 15:33:34 +00:00
Stig Bjørlykke
3c4f5186fa
Use the highest time value when calculating widest column string for
...
time columns. Not the one different from the previous, which in most
cases is the last one in the list.
svn path=/trunk/; revision=31061
2009-11-24 00:12:10 +00:00
Stig Bjørlykke
0dbfde8b6d
Removed some unused variables and unused assignments.
...
svn path=/trunk/; revision=30918
2009-11-10 12:05:25 +00:00
Anders Broman
db24f90c2d
From Jakub Zawadzki:
...
Don't duplicate empty string in col_text
svn path=/trunk/; revision=30725
2009-10-27 05:11:52 +00:00
Stig Bjørlykke
f88e3c3b84
From Jakub Zawadzki via bug 3764:
...
Don't call strcmp() when pointers are the same.
svn path=/trunk/; revision=30685
2009-10-24 15:51:10 +00:00
Anders Broman
5fa3b703a9
Use a "String pool" in the new packet list to reduce memory usage.
...
svn path=/trunk/; revision=30400
2009-10-08 13:57:19 +00:00
Anders Broman
0474a38cc4
Add myself and Kovarththanan Rajaratnam as co authors.
...
svn path=/trunk/; revision=30006
2009-09-20 09:12:56 +00:00
Kovarththanan Rajaratnam
8767b75876
Use G_STRLOC
...
svn path=/trunk/; revision=29991
2009-09-20 07:46:12 +00:00
Anders Broman
ea43f2d906
Try to get the Solaris build going...
...
(Google is your friend)
svn path=/trunk/; revision=29966
2009-09-17 13:43:43 +00:00
Gerald Combs
3dbbc4cc4e
svn path=/trunk/; revision=29868
2009-09-11 20:36:01 +00:00
Anders Broman
1e137770e6
Allocate col_text and col_text_len when the fdata struct is allocated.
...
svn path=/trunk/; revision=29817
2009-09-09 08:50:06 +00:00
Kovarththanan Rajaratnam
de23d92163
Add an option to col_fill_in() to allow us to disable column expression 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
2009-09-08 19:00:54 +00:00
Kovarththanan Rajaratnam
d75778eb4a
Custom columnfication:
...
* Deprecate COL_DCE_CTX ("Context ID). Use dcerpc.cn_ctx_id
svn path=/trunk/; revision=29797
2009-09-08 14:59:26 +00:00
Stig Bjørlykke
bc52d8079d
Fixed initialization of fdata.
...
svn path=/trunk/; revision=29788
2009-09-08 10:12:01 +00:00
Kovarththanan Rajaratnam
4662b8c326
Rename packet_list_dissect_and_cache => packet_list_dissect_and_cache_iter
...
svn path=/trunk/; revision=29781
2009-09-07 19:50:19 +00:00
Kovarththanan Rajaratnam
3efea601d4
Make sure that we fill in the frame_data before passing it onto col_fill_in_frame_data
...
svn path=/trunk/; revision=29780
2009-09-07 19:43:05 +00:00
Kovarththanan Rajaratnam
450de61a1e
Auto resize rest of the frame_data columns
...
svn path=/trunk/; revision=29779
2009-09-07 19:07:30 +00:00
Kovarththanan Rajaratnam
33b8efd375
Auto size COL_NUMBER, COL_PACKET_LENGTH and COL_CUMULATIVE_BYTES
...
svn path=/trunk/; revision=29778
2009-09-07 18:53:17 +00:00
Kovarththanan Rajaratnam
1ce02f035d
Add progress bar while constructing columns (which is time consuming)
...
svn path=/trunk/; revision=29777
2009-09-07 17:45:37 +00:00
Kovarththanan Rajaratnam
ff7fda0df5
Track how many const strings we're storing. This is guarded by NEW_PACKET_LIST_STATISTICS
...
svn path=/trunk/; revision=29775
2009-09-07 17:09:09 +00:00
Kovarththanan Rajaratnam
72c9662da6
ntroduce some seasonal address name lookup functions which we use when NEW_PACKET_LIST is defined. This change partially reverts some parts of r29768, which didn't seem to work because it assumed that get_addr_name() would always return a seasonal string. This wasn't the case if the adddress type was AT_STRINGZ.
...
svn path=/trunk/; revision=29771
2009-09-07 16:05:37 +00:00
Anders Broman
3abd049a9b
Use constant strings for Addresses saves some memory.
...
svn path=/trunk/; revision=29768
2009-09-07 14:03:05 +00:00
Kovarththanan Rajaratnam
4fbc99e411
Auto resize non frame_data based columns
...
svn path=/trunk/; revision=29766
2009-09-07 13:10:59 +00:00
Kovarththanan Rajaratnam
cd8831c72d
Track length of columns strings. We'll need this in order to resize columns quickly
...
svn path=/trunk/; revision=29759
2009-09-07 11:33:38 +00:00
Kovarththanan Rajaratnam
0e5a101815
Fix target of assignment not really an lvalue error
...
svn path=/trunk/; revision=29743
2009-09-06 12:27:32 +00:00
Kovarththanan Rajaratnam
ecd9ddd845
Tigthen the condition under which we create a protocol create while sorting
...
svn path=/trunk/; revision=29740
2009-09-06 10:41:35 +00:00
Kovarththanan Rajaratnam
8edec9be91
Sort the visible list while traversing the physical row list. This halves the time needed to sort
...
svn path=/trunk/; revision=29738
2009-09-06 09:36:21 +00:00
Kovarththanan Rajaratnam
5c51aacb21
Add NEW_PACKET_LIST guard to color_filters_colorize_packet()
...
svn path=/trunk/; revision=29729
2009-09-06 06:07:53 +00:00
Kovarththanan Rajaratnam
2ab0685d8a
Make sure that we can enable/disable color filtering.
...
Fixes http://wiki.wireshark.org/Development/OptimizePacketList?action=diff&rev1=11&rev2=12
svn path=/trunk/; revision=29728
2009-09-06 05:49:00 +00:00
Kovarththanan Rajaratnam
0326f65bf3
Don't copy constant column strings. This reduces memory foot print because COL_PROTOCOL is usually a constant string. This saves us 3-4 bytes for each frame
...
svn path=/trunk/; revision=29723
2009-09-05 19:07:04 +00:00
Kovarththanan Rajaratnam
f493e75db6
Dissect-on-the-fly when we have columns that are empty, i.e. columns containing strings (COL_INFO + friends). This allows us to sort on _all_ columns now.
...
svn path=/trunk/; revision=29718
2009-09-05 16:35:05 +00:00
Kovarththanan Rajaratnam
e1eaab161d
Move new_packet_list_dissect() to packet_list_store.c. We need to have it there in order to dissect columns on the fly when we have to sort
...
svn path=/trunk/; revision=29717
2009-09-05 15:46:47 +00:00
Kovarththanan Rajaratnam
fb54567dae
Restore original condition in packet_list_iter_n_children()
...
svn path=/trunk/; revision=29713
2009-09-05 13:46:17 +00:00
Kovarththanan Rajaratnam
fcf25fe42b
Get rid of row_data_t
...
svn path=/trunk/; revision=29711
2009-09-05 13:27:34 +00:00
Kovarththanan Rajaratnam
2d5a1323e1
Make sure that we can resort with an active display filter
...
svn path=/trunk/; revision=29710
2009-09-05 13:24:16 +00:00
Kovarththanan Rajaratnam
2db51a0b3e
Bail out gracefully on colums we cant sort on yet instead of crashing
...
svn path=/trunk/; revision=29707
2009-09-05 11:58:44 +00:00
Stig Bjørlykke
f91c46757a
Make it build without warnings.
...
svn path=/trunk/; revision=29706
2009-09-05 11:15:50 +00:00
Kovarththanan Rajaratnam
95ddec4d07
Get rid off GtkTreeModelFilter because the time to sort becomes unbearable 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-05 10:36:29 +00:00
Kovarththanan Rajaratnam
314b693828
Rename new_packet_list_reset_dissected to packet_list_reset_dissected
...
svn path=/trunk/; revision=29699
2009-09-04 17:42:03 +00:00
Kovarththanan Rajaratnam
4930802fa1
Only store the last column as G_TYPE_POINTER. Hopefully this will soon make us able to sort again
...
svn path=/trunk/; revision=29690
2009-09-03 17:56:57 +00:00
Kovarththanan Rajaratnam
5a8df08491
Add packet_list_visible_record() to avoid poking PacketListRecord in new_packet_list.c
...
svn path=/trunk/; revision=29689
2009-09-03 17:39:42 +00:00
Kovarththanan Rajaratnam
8a33ec23bb
Allocate and use an extra column at the end of the column list to indicate the 'magic' column which contains the _entire_ PacketListRecord
...
svn path=/trunk/; revision=29688
2009-09-03 17:00:17 +00:00
Anders Broman
cdd2959aa5
Adding new color rules should work now.
...
svn path=/trunk/; revision=29671
2009-09-02 17:51:48 +00:00
Kovarththanan Rajaratnam
b429655b7f
Plug memleak in new_packet_list_store_clear(). Make sure that we free the pointer array segment
...
svn path=/trunk/; revision=29652
2009-09-01 15:54:53 +00:00
Anders Broman
1108352f00
Use col_text in frame data.
...
- colum-utils needs more work, based on
Didier Gautherons optimizations patch http://wiki.wireshark.org/Development/Optimization
svn path=/trunk/; revision=29489
2009-08-21 10:12:47 +00:00
Anders Broman
a1a129abb5
Prepare to store column data from pinfo.
...
svn path=/trunk/; revision=29454
2009-08-17 15:05:43 +00:00
Kovarththanan Rajaratnam
c28b654f20
Switch over to using GPtrArray instead of manually g_renew'ing. This switch has some benefits:
...
1) We don't have to manually resize
2) GPtrArray uses a sligtly more efficient allocation scheme. It increases the size of the array exponentially which reduces the amount of memcpy's we have to do when we resize the array
svn path=/trunk/; revision=29439
2009-08-16 04:08:00 +00:00