Evan Huus
43fadb88cb
Add comment explaining the addr->hf field to column-utils for future
...
reference. Those lines were already starting to look like magic and
it's only been 24 hours.
svn path=/trunk/; revision=45806
2012-10-27 02:48:45 +00:00
Evan Huus
361aedec1f
Create SET_ADDRESS_HF that takes an additional hf_ value that can be
...
used to override the filter generated from the address column.
Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7728 (again).
svn path=/trunk/; revision=45792
2012-10-26 01:59:17 +00:00
Evan Huus
c6b522bc70
Revert revision 44921.
...
See discussion on https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7728
svn path=/trunk/; revision=45791
2012-10-26 00:42:34 +00:00
Guy Harris
9d4d1a5794
col_cleanup() is undoing the allocations that col_init() does, so it's
...
freeing the allocated array of pointers, not what the pointers ported
to, so it should free col_data. Note that it does that, and put it
after col_init() in the source file and header file.
Put in a comment explaining the MSVC bug that we're working around with
the casts.
svn path=/trunk/; revision=45393
2012-10-08 17:04:37 +00:00
Guy Harris
2ab082faca
col_data is not necessarily set to point to something g_malloc()ated,
...
and, if it is, it might be set to point to col_buf, which gets g_free()d
in the next statement, so we shouldn't g_free() it.
svn path=/trunk/; revision=45391
2012-10-08 16:28:13 +00:00
Evan Huus
fef6b09666
Explicitly cast away const-ness to fix windows build-bots.
...
svn path=/trunk/; revision=45390
2012-10-08 15:39:02 +00:00
Evan Huus
92c3bc0228
Don't leak all of our column data in packet_list_recreate (I think we still leak
...
some of it?).
Maybe part of https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7775
svn path=/trunk/; revision=45388
2012-10-08 15:12:45 +00:00
Jakub Zawadzki
72ca9d0e61
Store pointers to previously displayed and captured packet, not nstime_t deltas.
...
This commit reduces size (from 144B to 128B on AMD64) of frame_data structure.
Part of bug 5821: Reduce per-packet memory requirements.
svn path=/trunk/; revision=45071
2012-09-23 16:25:28 +00:00
Jeff Morriss
3729335973
We always HAVE_CONFIG_H so don't bother checking whether we have it or not.
...
svn path=/trunk/; revision=45016
2012-09-20 01:48:30 +00:00
Evan Huus
826bba705b
From Pontus Fuchs via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7728
...
Make right-click + apply-as-filter work in the packet list for non-ethernet
frames (such as ieee 802.11 frames).
svn path=/trunk/; revision=44921
2012-09-15 20:16:14 +00:00
Guy Harris
835111692f
From Richard Stearn: support for AX.25, including support for
...
LINKTYPE_AX25.
svn path=/trunk/; revision=44211
2012-08-02 16:54:43 +00:00
Anders Broman
e83a8e4eee
Use the correct symbols
...
COL_UTC_TIME and COL_UTC_DATE_TIME
insted of TS_UTC and TS_UTC_WITH_DATE.
svn path=/trunk/; revision=43957
2012-07-24 12:20:18 +00:00
Jakub Zawadzki
bf81b42e1e
Update Free Software Foundation address.
...
(COPYING will be updated in next commit)
svn path=/trunk/; revision=43536
2012-06-28 22:56:06 +00:00
Guy Harris
b6ff142f60
Add a presence flag field to the packet information structure filled in
...
by Wiretap, to indicate whether certain fields in that structure
actually have data in them.
Use the "time stamp present" flag to omit showing time stamp information
for packets (and "packets") that don't have time stamps; don't bother
working very hard to "fake" a time stamp for data files.
Use the "interface ID present" flag to omit the interface ID for packets
that don't have an interface ID.
We don't use the "captured length, separate from packet length, present"
flag to omit the captured length; that flag might be present but equal
to the packet length, and if you want to know if a packet was cut short
by a snapshot length, comparing the values would be the way to do that.
More work is needed to have wiretap/pcapng.c properly report the flags,
e.g. reporting no time stamp being present for a Simple Packet Block.
svn path=/trunk/; revision=41185
2012-02-25 23:24:34 +00:00
Guy Harris
25125ae369
Well, we *did* go to a widget that invokes callback to get the text for
...
the columns, so we *can* clean up the exporting of col_set_fmt_time() by
not exporting it any more.
svn path=/trunk/; revision=40743
2012-01-28 02:21:03 +00:00
Anders Broman
5d82ea810d
Make it possiblwe to creare a trime string from frame data.
...
svn path=/trunk/; revision=39036
2011-09-19 05:15:58 +00:00
Anders Broman
bd87f77148
set_abs_time and friends always return 1.
...
svn path=/trunk/; revision=39027
2011-09-16 14:25:50 +00:00
Stig Bjørlykke
50be3577ab
Support negative nsecs when viewing seconds with hours and minutes.
...
svn path=/trunk/; revision=38862
2011-09-02 11:46:33 +00:00
Anders Broman
2f05cf4dcf
From Michael Mann:
...
Added ability to display UTC time or UTC time with date. I liked having the
difference between UTC and local time, not just setting local=UTC.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2629
svn path=/trunk/; revision=37898
2011-07-04 21:43:34 +00:00
Stig Bjørlykke
d201977d9c
Don't assert on invalid custom columns, just set as invalid/unknown.
...
This fixes bug 6028.
svn path=/trunk/; revision=37756
2011-06-22 20:15:34 +00:00
Guy Harris
c8d2cd3cb5
In packet_list_dissect_and_cache_record(), set the columns to
...
*something* if we get an error reading the packet from the capture file,
rather than leaving them as null (which will cause a crash).
svn path=/trunk/; revision=36527
2011-04-09 04:33:26 +00:00
Chris Maynard
8f429fd919
separator will never be NULL, but sep_len could be 0, so test for that instead.
...
Fixes CID 620.
svn path=/trunk/; revision=36423
2011-03-31 17:27:48 +00:00
Sake Blok
307c0d70fb
Removal of the old packet-list in favor of the new packet list.
...
It compiles with "./configure without options" on my Mac. Let's see what the buildbots have to say about it :-)
svn path=/trunk/; revision=36161
2011-03-08 01:52:25 +00:00
Sake Blok
7364bef1b3
When using a custom column, make it possible to select which occurrence to show if the field has multiple occurrences.
...
svn path=/trunk/; revision=34186
2010-09-22 20:56:14 +00:00
Stig Bjørlykke
c1a591cd37
Support negative values when viewing seconds with hours and minutes.
...
svn path=/trunk/; revision=34079
2010-09-08 10:29:06 +00:00
Anders Broman
6d1a0a2e86
Doxygen related changes.
...
svn path=/trunk/; revision=34009
2010-08-30 05:39:02 +00:00
Jeff Morriss
b0cf38c06c
Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4854 (crash when adding
...
2nd info column):
Duplicate col_do_append_sep_va_fstr()'s code into col_append_fstr() and
col_append_sep_fstr() (and remove col_do_append_sep_va_fstr()) because we need
to call va_start() and va_end() after each call to g_vsnprintf(). (This is a
followon to rev 32961.)
svn path=/trunk/; revision=33472
2010-07-08 02:54:26 +00:00
Stig Bjørlykke
5e0a3b2ded
Corrected a typo in "display seconds with hours and minutes".
...
svn path=/trunk/; revision=33174
2010-06-09 08:52:56 +00:00
Stig Bjørlykke
bdc492cc40
Improved readability when displaying seconds with hours and minutes.
...
svn path=/trunk/; revision=33074
2010-06-03 13:53:03 +00:00
Guy Harris
ebc3739570
Once you've used a va_list, you can't use it again until you
...
reinitialize it with va_start(). (Yes, there are platforms where
reusing the va_arg fails, e.g. Mac OS X on x86-64.)
svn path=/trunk/; revision=32961
2010-05-26 02:01:49 +00:00
Stig Bjørlykke
39eb93b5a2
Simplified hour_min_sec calculations.
...
svn path=/trunk/; revision=32684
2010-05-06 11:25:15 +00:00
Stig Bjørlykke
6efcb1adf0
Added an option to display seconds as hours, minutes and seconds
...
in the packet list, on this format: "1h 2m 3.456s".
svn path=/trunk/; revision=32683
2010-05-06 10:32:59 +00:00
Gerald Combs
d13ecdea62
Add a catch-all if statement for column formats that are filled in by
...
dissectors. Fixes bug 4732.
svn path=/trunk/; revision=32615
2010-04-30 20:49:41 +00:00
Gerald Combs
3c8db1cae5
Several dissectors fill in custom custom data in the source and
...
destination address columns. Don't clobber it in the new packet list.
svn path=/trunk/; revision=32609
2010-04-29 23:53:57 +00:00
Bill Meier
6812b68eb1
From Yaniv Kaul: constify parameters
...
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4422
From me: Fix a number of instances where the function prototype or
the function definition wasn't changed so there was a mismatch
thus causing Windows (but not gcc) compilation errors.
svn path=/trunk/; revision=32365
2010-04-03 18:18:50 +00:00
Bill Meier
d32b4c0758
Revert SVN #32360 until Windows compilation errors corrected.
...
svn path=/trunk/; revision=32361
2010-04-02 15:18:03 +00:00
Bill Meier
049f9eac85
From Yaniv Kaul: constify parameters
...
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4422
svn path=/trunk/; revision=32360
2010-04-02 14:37:49 +00:00
Anders Broman
4e66c899d1
From Jakub Zawadzki:
...
Optimizations.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4303
svn path=/trunk/; revision=31967
2010-02-23 19:28:38 +00:00
Bill Meier
e0064797fb
Use more unique names for certain enum constants.
...
(enum constant names are part of the global name space).
(Fixes at least one gcc -Wshadow warning).
svn path=/trunk/; revision=31572
2010-01-19 19:37:03 +00:00
Gerasimos Dimitriadis
a72447c0da
Avoid assertion failure when adding a column of type
...
IEEE 802.11 TX rate.
svn path=/trunk/; revision=31527
2010-01-14 18:30:57 +00:00
Bill Meier
cfca0020c5
From Jakub Zawadzki: remove double NUL termination.
...
From me: fix a 3rd instance.
See: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3339
svn path=/trunk/; revision=31373
2009-12-28 16:12:25 +00:00
Kovarththanan Rajaratnam
e981de7a99
Don't attempt to fill custom columns if we don't have a valid column expression.
...
svn path=/trunk/; revision=30407
2009-10-08 16:35:58 +00:00
Stig Bjørlykke
9401317238
Removed unused variable 'sep_len' in col_do_append_str().
...
svn path=/trunk/; revision=30199
2009-09-29 19:19:40 +00:00
Kovarththanan Rajaratnam
99624329fa
Don't col_clear() followed by col_set_str(). A col_set_str() will clear (replace) any existing string (the fence still needs to be respected though)
...
svn path=/trunk/; revision=30086
2009-09-23 14:30:36 +00:00
Kovarththanan Rajaratnam
a05517fd21
(Cosmetic) Reorder functions
...
svn path=/trunk/; revision=30081
2009-09-22 21:08:48 +00:00
Kovarththanan Rajaratnam
afe5b2fe9d
Use ep_verify_pointer() in col_set_str() to verify that the caller hasn't passed us something from the ephemeral pool
...
svn path=/trunk/; revision=30012
2009-09-20 12:09:25 +00:00
Kovarththanan Rajaratnam
b50ffb1c6b
Assert on null string in col_set_str(). This is reasonable behaviour since the caller is expeceted to pass in a constant string
...
svn path=/trunk/; revision=30010
2009-09-20 10:19:37 +00:00
Kovarththanan Rajaratnam
f4e27f4549
Add a couple of g_asserts
...
svn path=/trunk/; revision=29992
2009-09-20 07:48:33 +00:00
Bill Meier
38dae2ab74
(Trivial) Fix a typo in a comment
...
svn path=/trunk/; revision=29899
2009-09-14 16:04:54 +00:00
Kovarththanan Rajaratnam
8d802d414c
Make sure that we point the current column to a constant string if we have no address.
...
Fixes http://wiki.wireshark.org/Development/OptimizePacketList?action=diff&rev1=20&rev2=21
svn path=/trunk/; revision=29860
2009-09-11 14:21:04 +00:00