aboutsummaryrefslogtreecommitdiffstats
path: root/epan/column-utils.c
AgeCommit message (Collapse)AuthorFilesLines
2006-01-20Mike Hall:Jörg Mayer1-0/+3
This will add the ability to configure a .1q vlan column in ethereal. Me: Change 1q -> 1Q svn path=/trunk/; revision=17058
2005-12-18"Fix" for warning: enumeration value 'TS_NOT_SET' not handled in switchJörg Mayer1-0/+4
Just g_assert until someone who understands the code checks in a real fix. svn path=/trunk/; revision=16855
2005-10-04in svn 15335 the tcp analysis was changed to do its stuff and to populate ↵Ronnie Sahlberg1-0/+45
(prepend to) COL_INFO before callking the subdissectors instead of calling the tcp analysis (and prepend colingo) eitehr after the subdissector returned normally or if an exception caused by a subdissector was rised. this as a sideffect caused tcp analysis data to be overwritten if the subdissector caused any output to the info column. (and made tcp analysis suboptimal) this change adds a new function col_prepend_fence_fstr() that will prepend the info column with the string and also, if there was no fence already defined, create a fence and set it after the prepended col info text. This way, even if the subdissectors generate and rewrite col info, the tcp analysis data will still be displayed on the info column. svn path=/trunk/; revision=16116
2005-10-02add doxygen comments to column-utils.h and do a slight code cleanupUlf Lamping1-17/+17
svn path=/trunk/; revision=16066
2005-08-31If we set one or more time references and then changed the time displayGerald Combs1-30/+20
format, our time-formatted columns would display a time value instead of "*REF*". Don't to that. svn path=/trunk/; revision=15645
2005-08-25timestamp display precision:Ulf Lamping1-9/+191
- automatic adjustment depending on file format - manual adjustment through menu items save the setting in the recent file svn path=/trunk/; revision=15534
2005-08-24EVERYTHING IN THE BUILDBOT IS GOING TO BE RED!!! Sorry! Ulf Lamping1-6/+6
I've done more than a day to change the timestamp resolution from microseconds to nanoseconds. As I really don't want to loose those changes, I'm going to check in the changes I've done so far. Hopefully someone else will give me a helping hand with the things left ... What's done: I've changed the timestamp resolution from usec to nsec in almost any place in the sources. I've changed parts of the implementation in nstime.s/.h and a lot of places elsewhere. As I don't understand the editcap source (well, I'm maybe just too tired right now), hopefully someone else might be able to fix this soon. Doing all those changes, we get native nanosecond timestamp resolution in Ethereal. After fixing all the remaining issues, I'll take a look how to display this in a convenient way... As I've also changed the wiretap timestamp resolution from usec to nsec we might want to change the wiretap version number... svn path=/trunk/; revision=15520
2005-08-18several times replacing:Ulf Lamping1-3/+3
sprintf -> g_snprintf snprintf -> g_snprintf vsnprintf -> g_vsnprintf strdup -> g_strdup svn path=/trunk/; revision=15412
2005-08-08various code cleanup:Ulf Lamping1-38/+34
-use g_snprintf instead of sprintf and snprintf -use g_strdup_printf where appropriate -remove #include "snprintf.h" (as only g_snprintf should be used) -replace some more alloc/realloc/calloc/free with their glib pendants svn path=/trunk/; revision=15264
2005-06-30add a new DCE/RPC related column, which contains the call_id for connection ↵Ulf Lamping1-0/+3
oriented packets or the sequence number for connectionless (datagram) packets. This is extremely useful, to keep track of the corresponding request/response packets of a DCE/RPC call (which can be quite a lot packets if fragmentation is used). svn path=/trunk/; revision=14826
2005-04-01From Mark C Brown NETTL updatesRonnie Sahlberg1-0/+4
svn path=/trunk/; revision=13999
2005-03-06Handle XNS IDP socket numbers.Guy Harris1-0/+11
Handle SMB-over-SPP. svn path=/trunk/; revision=13635
2005-02-22From Francisco Alcoba:Luis Ontanon1-7/+3
changed the behaviour of get_addr_name: - resolve to a name if the address supports it - call address_to_str if it does not, but the address is valid - return "NONE" if it is AT_NONE svn path=/trunk/; revision=13463
2004-12-31Properly cast the pointer assigned to col_info->col_data.Guy Harris1-1/+1
svn path=/trunk/; revision=12889
2004-12-30Make the "col_data" field in a "column_info" structure a pointer to anGuy Harris1-9/+9
array of "const char *" rather than to an array of "char *", and make the second argument of "col_set_str()" a "const char *" - there's no guarantee that "col_data" points to something you're allowed to modify. svn path=/trunk/; revision=12875
2004-12-30Add a "get_addr_name()" routine that takes an "address *" and attemptsGuy Harris1-30/+5
to resolve it to a name. Fix up some const-pointer-to-non-const-pointer, and function-pointer-to-void-*, conversions. Fix some comments. svn path=/trunk/; revision=12863
2004-10-12From Tomas Kukosa: fix "col_set_str()" to work correctly with fencedGuy Harris1-3/+2
columns. svn path=/trunk/; revision=12283
2004-08-24When deciding whether to add a separator or not, look at the buffer toGuy Harris1-36/+62
which we're going to append the data. svn path=/trunk/; revision=11820
2004-08-24In "col_append_sep_fstr()" and "col_append_sep_str()", check "col_data"Guy Harris1-2/+2
rather than "col_buf", so that we correctly handle a column set with "col_set_str()" (where we set "col_data" to point to the string, and leave "col_buf" alone). svn path=/trunk/; revision=11818
2004-08-10From Neil Piercy: put in some missing "put in the terminating NUL"sGuy Harris1-0/+3
after "vsnprintf()" calls. svn path=/trunk/; revision=11648
2004-08-06From Albert Chin: rename resolv.{ch} to addr_resolv.{ch}, so that anGuy Harris1-1/+1
include of <resolv.h> in any system header file gets the system <resolv.h> (needed for builds on Tru64 with GTK+ 1.2[.x]). svn path=/trunk/; revision=11615
2004-07-18Set the svn:eol-style property on all text files to "native", so thatGuy Harris1-1/+1
they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. svn path=/trunk/; revision=11400
2004-04-02From Olivier Biot: support AT_STRINGZ columns.Guy Harris1-4/+25
svn path=/trunk/; revision=10544
2004-03-18From Lars Roland: Move timestamp_type into libethereal and provide accessorOlivier Biot1-2/+2
methods for getting and setting the timestamp type. This is a move towards a real libethereal shared library. svn path=/trunk/; revision=10402
2004-02-29From Jeff Morriss:Guy Harris1-1/+8
support the ISUP CIC as a circuit ID; add a preference option to control whether to put the CIC into the Info column or not. svn path=/trunk/; revision=10265
2004-02-05Add new col_append methods which will prepend the (format) string with theOlivier Biot1-1/+46
provided separator (or a default ", ") if the column is not empty. svn path=/trunk/; revision=9986
2004-01-31Fix the spelling of "cumulative" (and variables whose names derive fromGuy Harris1-3/+4
that spelling). svn path=/trunk/; revision=9917
2004-01-29Clean up whitespace, and use "%u" to print unsigned quantities.Guy Harris1-15/+13
svn path=/trunk/; revision=9900
2004-01-19move timestamp format options from "View->Options" dialog intoUlf Lamping1-5/+5
menuitems under "View->Time Display Format". renamed timestamp enum items e.g. from ABSOLUTE to TS_ABSOLUTE, to prevent conflicting definitions with MSVC svn path=/trunk/; revision=9729
2003-12-09Don't automatically size the columns - that's expensive in largeGuy Harris1-2/+1
captures, as it has to compute the width of an auto-resizing column in every row. Just pick fixed widths for the columns (and tune the width of the "Protocol" column so that it's not narrower than the column title). svn path=/trunk/; revision=9219
2003-12-02From Didier Gautheron: for each column format type, save the first andGuy Harris1-15/+36
last columns, if any, with that format, and use that to speed up processing of columns with a particular format and checking whether we're displaying a column with a particular format. svn path=/trunk/; revision=9147
2003-09-12Added TimeReference frames.Ronnie Sahlberg1-6/+31
One can now select a packet and mark it as a TimeReference packet using the menu. A TimeReference packet will be indicated by having all timestamp related column entries replaced by the string *REF* A TimeReference packet will always be displayed in the packet pane, and overrides any display filters. When a frame is a TimeReference frame, all later frames will calculate the TimeRelativeToFirstPacket relative to the timestamp of the TimeReference frame instead of the first frame of the capture. You can have any number of TimeReference frames you like. svn path=/trunk/; revision=8459
2003-09-03And for Cal,Ronnie Sahlberg1-1/+5
Ethereal presents a column to display culmulative bytes into the capture. A new column type is added : Culmulative Bytes. While PacketLength column type specifies the number of bytes in the current packet, Culmulative Bytes specifies the culmulative number of bytes from the start of the capture. svn path=/trunk/; revision=8359
2003-08-26In "col_set_addr()", don't do anything other than clearing the columnGuy Harris1-1/+3
expression information if the address type is AT_NONE - "address_to_str_buf()" panics if passed an AT_NONE address, as there's nothing sensible one can do with them. (A null string wouldn't be appropriate here, as a dissector might have set the address columns to a string.) svn path=/trunk/; revision=8269
2003-08-26Use "address_to_str_buf()" to generate column data for non-resolvedGuy Harris1-68/+32
addresses. svn path=/trunk/; revision=8262
2003-08-26Create an "address_to_str_buf()" routine, called by "address_to_str()",Guy Harris1-19/+2
which fills in a caller-supplied buffer. Create "_buf()" versions of various "to_str" routines for various address types, and create a routine to map SNA FIDs to strings, and use them to finish up "address_to_str_buf()". Get rid of the declaration of "sna_fid_type_4_addr_to_str()" in "packet-sna.h", as that routine has been swallowed up in "sna_fid_to_str()". svn path=/trunk/; revision=8260
2003-04-16Pull the stuff done in "dissect_packet()" to initialize a column_infoGuy Harris1-2/+18
structure into its own routine; rename "col_init()" to "col_setup()", and call the new routine "col_init()". svn path=/trunk/; revision=7467
2003-04-16Add the notion of a "fence" to columns. A dissector can set the fenceGuy Harris1-28/+132
to "protect" what's currently in the column, so that attempts to clear the column will only clear stuff after the fence and attempts to overwrite the column will append stuff after the fence. This, for example, allows a dissector to arrange that the Info column contain information for its protocol and for protocols running atop it. svn path=/trunk/; revision=7466
2003-01-28Thou shalt not cast pointers of unknown alignment to pointers toGuy Harris1-10/+7
multi-byte integral quantities and blithely dereference them, lest thou enrage those of us who work on machines that trap on unaligned references. svn path=/trunk/; revision=7021
2003-01-22From Dinesh Dutt:Guy Harris1-1/+21
- A new decoder called MDSHDR which decodes the internal header of the Cisco MDS switch (this is different from the Boardwalk header). - Support for some more new columns as part of FC support. - Fixed the decoding of the Special Frame in FCIP. - Fixed the decoding of credit management type field in FLOGI/PLOGI frame in FC-ELS. svn path=/trunk/; revision=6974
2002-12-10Add a new type of column for the circuit ID (Frame Relay DLCI, ISDNGuy Harris1-17/+101
channel number, X.25 logical channel number). Clean up white space and the like, and get rid of unnecessary arguments to "col_set_port()". svn path=/trunk/; revision=6772
2002-12-10From Alfred Koebler: add support for a column for the interface andGuy Harris1-1/+2
direction in Firewall-1 monitor files. svn path=/trunk/; revision=6771
2002-12-08From Dinesh Dutt: Add Fibre Channel support, including FCIP, Basic FCGerald Combs1-1/+24
header, Extended Link Service, Interswitch Link Service, FCP, and IPFC. svn path=/trunk/; revision=6757
2002-12-03Show all 6 digits of precision in the time stamp column when displayingGuy Harris1-5/+5
absolute time stamps (we were already doing that for relative and delta time stamps). svn path=/trunk/; revision=6735
2002-12-02Make the format argument to the "col_XXX_fstr()" routines, and the "str"Guy Harris1-5/+5
argument to "col_append_str()", const pointers; they're not modified by the routines in question. svn path=/trunk/; revision=6725
2002-11-11Instead of tweaking a "Protocol configuration options" extension headerGuy Harris1-6/+1
item to look more-or-less like a PPP packet, just dissect it in place and hand off to the appropriate subdissector using the PPP dissector's handoff table (which we export, along with its value_string table for protocol IDs, which we use to report the protocol ID symbolically). This means there's no point in having a configurable option to control whether to do that tweaking; make it an obsolete option. Bring "col_get_writable()" back from the dead, and have the GTP dissector save the current "writable" flag for columns, mark the columns non-writable before calling the subdissector for the PPP configuration protocol, and restore the state of the writable flag, rather than putting the columns back after the PPP configuration protocol's dissector is done. Fix some more typos in comments. Don't register the IP dissector in the "ppp.protocol" table in the GTP dissector's handoff registration routine - it's already being done in the IP dissector's handoff routine. Fix the name for CHAP to match what RFC 1994 calls it (if the name changed, it should be changed in all places, but, at least according to this message, a while ago, from Bob Sutterfield, "since the RFC defines the protocol, the RFC defines the name": http://mail-index.netbsd.org/netbsd-help/1996/05/16/0011.html and the RFC defines the name as "PPP Challenge Handshake Authentication Protocol (CHAP)"). svn path=/trunk/; revision=6617
2002-10-23Put a leading "0x" in front of the hex value for ARCNET addresses whenGuy Harris1-2/+2
generating a filter expression to match the address, so it's parsed correctly (as a hex number rather than a string) if there are non-decimal digits (A through F). svn path=/trunk/; revision=6481
2002-10-19The Frame Relay DLCI is a virtual circuit identifer, not a source orGuy Harris1-10/+1
destination address, so yank out the AT_DLCI stuff. Clean up indentation. svn path=/trunk/; revision=6455
2002-10-19"addr->data", not "addr", points to the DLCI.Guy Harris1-2/+2
svn path=/trunk/; revision=6454
2002-10-18Put in code to handle AT_DLCI.Guy Harris1-2/+7
svn path=/trunk/; revision=6453