aboutsummaryrefslogtreecommitdiffstats
path: root/epan/column-utils.c
AgeCommit message (Collapse)AuthorFilesLines
2012-08-02From Richard Stearn: support for AX.25, including support forGuy Harris1-0/+8
LINKTYPE_AX25. svn path=/trunk/; revision=44211
2012-07-24Use the correct symbolsAnders Broman1-2/+2
COL_UTC_TIME and COL_UTC_DATE_TIME insted of TS_UTC and TS_UTC_WITH_DATE. svn path=/trunk/; revision=43957
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-02-25Add a presence flag field to the packet information structure filled inGuy Harris1-45/+75
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-01-28Well, we *did* go to a widget that invokes callback to get the text forGuy Harris1-8/+2
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
2011-09-19Make it possiblwe to creare a trime string from frame data.Anders Broman1-45/+61
svn path=/trunk/; revision=39036
2011-09-16set_abs_time and friends always return 1.Anders Broman1-20/+18
svn path=/trunk/; revision=39027
2011-09-02Support negative nsecs when viewing seconds with hours and minutes.Stig Bjørlykke1-15/+20
svn path=/trunk/; revision=38862
2011-07-04From Michael Mann:Anders Broman1-9/+71
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-06-22Don't assert on invalid custom columns, just set as invalid/unknown.Stig Bjørlykke1-2/+1
This fixes bug 6028. svn path=/trunk/; revision=37756
2011-04-09In packet_list_dissect_and_cache_record(), set the columns toGuy Harris1-0/+51
*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-03-31separator will never be NULL, but sep_len could be 0, so test for that instead.Chris Maynard1-1/+1
Fixes CID 620. svn path=/trunk/; revision=36423
2011-03-08Removal of the old packet-list in favor of the new packet list.Sake Blok1-5/+0
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
2010-09-22When using a custom column, make it possible to select which occurrence to ↵Sake Blok1-0/+2
show if the field has multiple occurrences. svn path=/trunk/; revision=34186
2010-09-08Support negative values when viewing seconds with hours and minutes.Stig Bjørlykke1-66/+92
svn path=/trunk/; revision=34079
2010-08-30Doxygen related changes.Anders Broman1-1/+12
svn path=/trunk/; revision=34009
2010-07-08Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4854 (crash when addingJeff Morriss1-37/+51
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-06-09Corrected a typo in "display seconds with hours and minutes".Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=33174
2010-06-03Improved readability when displaying seconds with hours and minutes.Stig Bjørlykke1-12/+12
svn path=/trunk/; revision=33074
2010-05-26Once you've used a va_list, you can't use it again until youGuy Harris1-6/+6
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-06Simplified hour_min_sec calculations.Stig Bjørlykke1-11/+11
svn path=/trunk/; revision=32684
2010-05-06Added an option to display seconds as hours, minutes and secondsStig Bjørlykke1-152/+232
in the packet list, on this format: "1h 2m 3.456s". svn path=/trunk/; revision=32683
2010-04-30Add a catch-all if statement for column formats that are filled in byGerald Combs1-26/+9
dissectors. Fixes bug 4732. svn path=/trunk/; revision=32615
2010-04-29Several dissectors fill in custom custom data in the source andGerald Combs1-1/+0
destination address columns. Don't clobber it in the new packet list. svn path=/trunk/; revision=32609
2010-04-03 From Yaniv Kaul: constify parametersBill Meier1-37/+37
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-02Revert SVN #32360 until Windows compilation errors corrected.Bill Meier1-37/+37
svn path=/trunk/; revision=32361
2010-04-02From Yaniv Kaul: constify parametersBill Meier1-37/+37
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4422 svn path=/trunk/; revision=32360
2010-02-23From Jakub Zawadzki:Anders Broman1-19/+16
Optimizations. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4303 svn path=/trunk/; revision=31967
2010-01-19Use more unique names for certain enum constants.Bill Meier1-30/+30
(enum constant names are part of the global name space). (Fixes at least one gcc -Wshadow warning). svn path=/trunk/; revision=31572
2010-01-14Avoid assertion failure when adding a column of typeGerasimos Dimitriadis1-0/+3
IEEE 802.11 TX rate. svn path=/trunk/; revision=31527
2009-12-28From Jakub Zawadzki: remove double NUL termination.Bill Meier1-3/+0
From me: fix a 3rd instance. See: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3339 svn path=/trunk/; revision=31373
2009-10-08Don't attempt to fill custom columns if we don't have a valid column expression.Kovarththanan Rajaratnam1-4/+4
svn path=/trunk/; revision=30407
2009-09-29Removed unused variable 'sep_len' in col_do_append_str().Stig Bjørlykke1-6/+1
svn path=/trunk/; revision=30199
2009-09-23Don't col_clear() followed by col_set_str(). A col_set_str() will clear ↵Kovarththanan Rajaratnam1-1/+1
(replace) any existing string (the fence still needs to be respected though) svn path=/trunk/; revision=30086
2009-09-22(Cosmetic) Reorder functionsKovarththanan Rajaratnam1-94/+94
svn path=/trunk/; revision=30081
2009-09-20Use ep_verify_pointer() in col_set_str() to verify that the caller hasn't ↵Kovarththanan Rajaratnam1-0/+5
passed us something from the ephemeral pool svn path=/trunk/; revision=30012
2009-09-20Assert on null string in col_set_str(). This is reasonable behaviour since ↵Kovarththanan Rajaratnam1-0/+2
the caller is expeceted to pass in a constant string svn path=/trunk/; revision=30010
2009-09-20Add a couple of g_assertsKovarththanan Rajaratnam1-0/+3
svn path=/trunk/; revision=29992
2009-09-14(Trivial) Fix a typo in a commentBill Meier1-1/+1
svn path=/trunk/; revision=29899
2009-09-11Make sure that we point the current column to a constant string if we have ↵Kovarththanan Rajaratnam1-1/+3
no address. Fixes http://wiki.wireshark.org/Development/OptimizePacketList?action=diff&rev1=20&rev2=21 svn path=/trunk/; revision=29860
2009-09-11Move some CHECK_COL to our public functions, allowing us to bail our more ↵Kovarththanan Rajaratnam1-6/+9
quickly svn path=/trunk/; revision=29859
2009-09-08Add an option to col_fill_in() to allow us to disable column expression ↵Kovarththanan Rajaratnam1-25/+58
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-08Hoist COL_CHECK_REF_TIME in the call hierarchy. Use it in our public ↵Kovarththanan Rajaratnam1-28/+14
functions, not our internal functions svn path=/trunk/; revision=29798
2009-09-08Custom columnfication:Kovarththanan Rajaratnam1-3/+0
* Deprecate COL_DCE_CTX ("Context ID). Use dcerpc.cn_ctx_id svn path=/trunk/; revision=29797
2009-09-08Custom column deprecation:Kovarththanan Rajaratnam1-5/+0
We fill out the COL_DSTIDX column by using 'pinfo->dst_idx'. This member is only set by the MDS Header dissector based on 'mdshdr.dstidx'. So remove COL_DSTIDX and migrate to 'mdshdr.dstidx' custom column. svn path=/trunk/; revision=29795
2009-09-08Custom column deprecation:Kovarththanan Rajaratnam1-5/+0
We fill out the COL_SRCIDX column by using 'pinfo->src_idx'. This member is only set by the MDS Header dissector based on 'mdshdr.srcidx'. So remove COL_SRCIDX and migrate to 'mdshdr.srcidx' custom column. svn path=/trunk/; revision=29794
2009-09-08Custom column deprecation:Kovarththanan Rajaratnam1-5/+0
We fill out the COL_RXID column by using 'pinfo->rxid'. This member is only set by the Fibre Channel dissector based on 'fc.rx_id'. So remove COL_RXID and migrate to 'fc.rx_id' custom column. svn path=/trunk/; revision=29793
2009-09-08Custom column deprecation:Kovarththanan Rajaratnam1-5/+0
We fill out the COL_OXID column by using 'pinfo->oxid'. This member is only set by the Fibre Channel dissector based on 'fc.ox_id'. So remove COL_OXID and migrate to 'fc.ox_id' custom column. svn path=/trunk/; revision=29792
2009-09-08From : Didier GautheronAnders Broman1-2/+12
speed up a little proto_custom_set. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3972 svn path=/trunk/; revision=29789
2009-09-08Remove an unused parameter.Anders Broman1-14/+13
svn path=/trunk/; revision=29784