aboutsummaryrefslogtreecommitdiffstats
path: root/epan/column-utils.c
AgeCommit message (Collapse)AuthorFilesLines
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-01-14Don't cast away constness.Guy Harris1-2/+2
svn path=/trunk/; revision=54797
2014-01-06Expand a comment.Guy Harris1-2/+2
svn path=/trunk/; revision=54622
2014-01-06In col_fill_in() and col_fill_in_error(), use col_based_on_frame_data()Guy Harris1-105/+73
to determine whether to fill in the column from frame data or not. svn path=/trunk/; revision=54621
2013-12-18Added col_clear_fence().Stig Bjørlykke1-0/+16
svn path=/trunk/; revision=54220
2013-12-03Dissectors should not use dfilter.h, don't include it.Jakub Zawadzki1-1/+1
XXX ncp2222 dissector is using dfilter_compile(), why? svn path=/trunk/; revision=53766
2013-11-09Remove #if 0 code (introduced in r29489).Jakub Zawadzki1-285/+0
svn path=/trunk/; revision=53181
2013-11-06Add support for displaying dates as year and day-of-year (1-origin).Guy Harris1-36/+183
In the process, fix various man page descriptions of the -t flag, and add support for UTC absolute times in the iousers and iostat TShark taps. svn path=/trunk/; revision=53114
2013-10-27Remove "Cisco MDS-specific" fields from packet_info. 2 of the 3 fields were ↵Michael Mann1-8/+3
used strictly for columns that are considered "deprecated" and I think the third could be put in that category as well. I assume the column enumerations haven't already been removed because of legacy "indexing issues", but if I'm wrong, we should definitely remove the columns altogether. Could also see renaming columns to DEPRECATED_[X]. svn path=/trunk/; revision=52910
2013-10-18After looking for something in the column-*.h files andJörg Mayer1-1/+1
not finding it, I finally found it in column_info.h Renamed column_info.h to column-info.h to have consistency with the column*h files. svn path=/trunk/; revision=52667
2013-10-01FINALLY remove the check_col API so that reviewers won't have to mention ↵Michael Mann1-6/+0
that it's deprecated. Now it just won't compile if its included in a dissector. svn path=/trunk/; revision=52317
2013-09-13Explicitly include emem.h where it is neededJörg Mayer1-0/+1
svn path=/trunk/; revision=51997
2013-08-01Move a bunch of the crypt modules and pint.h into wsutil.Jeff Morriss1-1/+1
This means wsutil now links against libcrypt. Protect a bunch of the crypt header files from multiple inclusion. svn path=/trunk/; revision=51100
2013-07-21Replace relative timestamp with reference frame number. Saves 16B per frame.Jakub Zawadzki1-5/+14
svn path=/trunk/; revision=50772
2013-07-21Add helper function to epan_session which can be used to get absolute ↵Jakub Zawadzki1-6/+7
timestamp of given frame. Remove ->prev_cap, for testing purpose also replace ->prev_dis with number of previously displayed frame number. This patch reduce size of frame_data by 8B (amd64) This is what (I think) was suggested by Guy in comment 13 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5821#c13) svn path=/trunk/; revision=50765
2013-07-16This should fix warning: to be safe all intermediate pointers in cast from ↵Chris Maynard1-2/+2
'gchar **' to 'const char **' must be 'const' qualified. svn path=/trunk/; revision=50655
2013-06-25Indentation/Whitespace cleanup;Bill Meier1-635/+642
Add editor modelines. svn path=/trunk/; revision=50146
2013-06-04Fix for https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7546Sake Blok1-14/+18
Make sure unresolved columns are indeed unresolved svn path=/trunk/; revision=49776
2013-03-20 From beroset:Bill Meier1-2/+2
remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 attachment #10397 svn path=/trunk/; revision=48438
2013-02-25LUA API improvementsMichael Mann1-0/+20
1. Add col_set_fence() equivalent 2. Update __tostring function to actually return column text From Hadriel Kaplan, bug 8295 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8295) svn path=/trunk/; revision=47882
2012-12-26Fix a bunch of warnings.Guy Harris1-21/+21
Cast away some implicit 64-bit-to-32-bit conversion errors due to use of sizeof. Cast away some implicit 64-bit-to-32-bit conversion errors due to use of strtol() and strtoul(). Change some data types to avoid those implicit conversion warnings. When assigning a constant to a float, make sure the constant isn't a double, by appending "f" to the constant. Constify a bunch of variables, parameters, and return values to eliminate warnings due to strings being given const qualifiers. Cast away those warnings in some cases where an API we don't control forces us to do so. Enable a bunch of additional warnings by default. Note why at least some of the other warnings aren't enabled. randpkt.c and text2pcap.c are used to build programs, so they don't need to be in EXTRA_DIST. If the user specifies --enable-warnings-as-errors, add -Werror *even if the user specified --enable-extra-gcc-flags; assume they know what they're doing and are willing to have the compile fail due to the extra GCC warnings being treated as errors. svn path=/trunk/; revision=46748
2012-10-27Add comment explaining the addr->hf field to column-utils for futureEvan Huus1-0/+6
reference. Those lines were already starting to look like magic and it's only been 24 hours. svn path=/trunk/; revision=45806
2012-10-26Create SET_ADDRESS_HF that takes an additional hf_ value that can beEvan Huus1-0/+6
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-26Revert revision 44921.Evan Huus1-16/+5
See discussion on https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7728 svn path=/trunk/; revision=45791
2012-10-08col_cleanup() is undoing the allocations that col_init() does, so it'sGuy Harris1-19/+29
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-08col_data is not necessarily set to point to something g_malloc()ated,Guy Harris1-1/+0
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-08Explicitly cast away const-ness to fix windows build-bots.Evan Huus1-2/+2
svn path=/trunk/; revision=45390
2012-10-08Don't leak all of our column data in packet_list_recreate (I think we still leakEvan Huus1-0/+20
some of it?). Maybe part of https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7775 svn path=/trunk/; revision=45388
2012-09-23Store pointers to previously displayed and captured packet, not nstime_t deltas.Jakub Zawadzki1-10/+27
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-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-3/+1
svn path=/trunk/; revision=45016
2012-09-15From Pontus Fuchs via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7728Evan Huus1-5/+16
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-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