aboutsummaryrefslogtreecommitdiffstats
path: root/epan/column-utils.c
AgeCommit message (Collapse)AuthorFilesLines
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
2002-10-18Add an AT_ARCNET address type for ARCNET addresses, and have the ARCNETGuy Harris1-1/+17
dissector set the source and destination link-layer addresses. svn path=/trunk/; revision=6452
2002-10-15Add a new port type, PT_IPX, for IPX socket numbers; set "pinfo->ptype",Guy Harris1-1/+12
"pinfo->srcport", and "pinfo->destport" appropriately in the IPX dissector. Add support for PT_IPX port types in display columns. Have an "spx.socket" dissector table, similar to the "ipx.socket" dissector table, and have the SPX dissector use that, with the IPX socket numbers from "pinfo->srcport" and "pinfo->destport", so that dissectors for protocols that run atop SPX can register with particular socket numbers. (Think of it as similar to what would have been the case had the IP header had 16-bit source and destination port numbers, and had TCP and UDP used those port numbers rather than having port numbers in their headers.) Also, have the SPX dissector dissect subprotocols regardless of whether we're building a protocol tree or not. Use the dissector handle for the IPX message dissector for both IPX socket numbers; there's no need to create separate handles for both registrations. Have NDPS register as a subdissector of the SPX dissector, using "spx.socket", and get rid of the duplicate SPX dissection in the NDPS dissector. Make the NDPS dissector set the columns regardless of whether a protocol tree is being built, and clean up the dissector (fixing some bugs). Get rid of unneeded includes in "packet-ndps.c". svn path=/trunk/; revision=6424
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-15/+15
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6116
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer1-5/+1
equivalents for the epan/ directory but leave winsock2.h in inet_pton.c and inet_ntop.c for now (can't estimate the consequences). svn path=/trunk/; revision=5928
2002-06-29From Didier Gautheron:Guy Harris1-3/+3
Add Zone Information Protocol support. Rename "ddp.dst.socket" and "ddp.src.socket" to "ddp.dst_socket" and "ddp.src_socket", as the socket number is no longer considered part of the DDP address. svn path=/trunk/; revision=5800
2002-06-28There are no "ipx.src" or "ipx.dst" filterable fields.Guy Harris1-6/+1
svn path=/trunk/; revision=5787
2002-06-28From Didier Gautheron: move port number from AppleTalk addresses toGuy Harris1-1/+16
separate column, and put in hidden fields for AppleTalk source and destination addresses. svn path=/trunk/; revision=5778
2002-01-31There's no need to dynamically allocate the string buffer inGuy Harris1-7/+4
"col_prepend_fstr()" - just put it on the stack, and give it the size of the largest string you'll stuff into it. svn path=/trunk/; revision=4649
2002-01-31Don't include "inet_v6defs.h" in "column-utils.c"; nothing from it isGuy Harris1-11/+9
necessary. Don't use "alloca()", as it's not guaranteed to be present on all platforms. svn path=/trunk/; revision=4644
2002-01-29Support for capturing on, and reading captures from, OpenBSD firewallGuy Harris1-1/+41
logging virtual interface, from Mike Frantzen. svn path=/trunk/; revision=4616
2002-01-11From Jirka Novak:Guy Harris1-19/+75
Support for generating filter expressions based on packet list column values Support for adding filter expressions generated from column or protocol tree field values to the current expression rather than replacing the current expression svn path=/trunk/; revision=4522
2001-12-10The packet length is an unsigned quantity; print it with "%u".Guy Harris1-2/+3
If we get an illegal column type in "fill_in_columns()", crash. svn path=/trunk/; revision=4373
2001-12-10Move the pointer to the "column_info" structure in the "frame_data"Guy Harris1-154/+139
structure to the "packet_info" structure; only stuff that's permanently stored with each frame should be in the "frame_data" structure, and the "column_info" structure is not guaranteed to hold the column values for that frame at all times - it was only in the "frame_data" structure so that it could be passed to dissectors, and, as all dissectors are now passed a pointer to a "packet_info" structure, it could just as well be put in the "packet_info" structure. That saves memory, by shrinking the "frame_data" structure (there's one of those per frame), and also lets us clean up the code a bit. svn path=/trunk/; revision=4370
2001-11-21Remove the global packet_info called "pi". Dissectors now onlyGilbert Ramirez1-18/+18
access their own "pinfo". A packet_info is stored in epan_dissect_t, which is created for the dissection of a single packet. GUI functions which need to access the packet_info of the currently selected packet used to use "pi"; now they use cfile.edt->pi. cfile's "edt" member is the epan_dissect_t of the currently-selected packet. The functionality of blank_packetinfo() was moved into dissect_packet(), as that's the only place that called blank_packetinfo(), after a spurious call to blank_packetinfo() was removed from packet_list_select_cb(). svn path=/trunk/; revision=4246
2001-09-14Get rid of no-longer-necessary includes of <sys/time.h>.Guy Harris1-5/+1
svn path=/trunk/; revision=3936
2001-09-14Make the resolution for time values be nanoseconds rather thanGuy Harris1-3/+3
microseconds. Fix some "signed vs. unsigned" comparison warnings. svn path=/trunk/; revision=3934
2001-07-15Fixes, from Scott Renfro, for some calls to "localtime()" that didn'tGuy Harris1-15/+23
check whether the call succeeded (it doesn't always do so on Windows, for example). svn path=/trunk/; revision=3722
2001-04-02Don't use "u_int" for IPv4 addresses in "column-utils.c", as that'llGuy Harris1-2/+2
require that it drag in <winsock.h> on Windows; instead, use "guint32". svn path=/trunk/; revision=3245
2001-04-02Include <sys/time.h> as well as <time.h> in "column-utils.c" andGuy Harris1-4/+8
"value_string.c", as they include "epan/to_str.h", and that uses "struct timeval" in some function prototypes. In "to_str.c", include <sys/types.h> before including <netinet/in.h>; on at least some platforms, definitions in <netinet/in.h> require types defined in <sys/types.h>. In "to_str.c", include <sys/socket.h>, so that AF_INET6 is defined. svn path=/trunk/; revision=3238
2001-04-01Moved the the remaining column related routines out of packet.{c,h}Ed Warnicke1-0/+575
and into column-utils{c,h}. svn path=/trunk/; revision=3231