aboutsummaryrefslogtreecommitdiffstats
path: root/epan/column-utils.c
AgeCommit message (Collapse)AuthorFilesLines
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
2009-09-07Make sure that we fill in the frame_data before passing it onto ↵Kovarththanan Rajaratnam1-1/+1
col_fill_in_frame_data svn path=/trunk/; revision=29780
2009-09-07ntroduce some seasonal address name lookup functions which we use when ↵Kovarththanan Rajaratnam1-1/+6
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-07mark unused parameter.Anders Broman1-1/+1
svn path=/trunk/; revision=29769
2009-09-07Use constant strings for Addresses saves some memory.Anders Broman1-5/+1
svn path=/trunk/; revision=29768
2009-09-06Remove already #if 0'ed code that was made redundant due to COL_CIRCUIT_ID ↵Kovarththanan Rajaratnam1-98/+1
custom column deprecation svn path=/trunk/; revision=29745
2009-09-06Remove static custom column variable which is no longer usedKovarththanan Rajaratnam1-5/+0
svn path=/trunk/; revision=29744
2009-09-06Inline col_has_time_fmt() into col_based_on_frame_data()Kovarththanan Rajaratnam1-3/+6
svn path=/trunk/; revision=29739
2009-09-06Macrofy have_custom_cols() -> HAVE_CUSTOM_COLS() internally in columns-utils.cKovarththanan Rajaratnam1-15/+13
svn path=/trunk/; revision=29737
2009-09-06Macrofy check_col() -> CHECK_COL() internally in columns-utils.cKovarththanan Rajaratnam1-53/+53
svn path=/trunk/; revision=29736
2009-09-05col_custom_set_fstr() is unused. Remove itKovarththanan Rajaratnam1-44/+9
svn path=/trunk/; revision=29722
2009-09-05COL_BSSGP_TLLI is deprecatedKovarththanan Rajaratnam1-3/+0
svn path=/trunk/; revision=29721
2009-09-05Reorder col_fill_in()Kovarththanan Rajaratnam1-17/+9
svn path=/trunk/; revision=29720
2009-08-26Show correct time value for "Time since previous displayed frame".Martin Mathieson1-1/+1
svn path=/trunk/; revision=29572