aboutsummaryrefslogtreecommitdiffstats
path: root/column.c
Commit message (Collapse)AuthorAgeFilesLines
* Move the column preferences stuff to epan (the rest of the preferencesGuy Harris2004-09-291-451/+0
| | | | | | | | stuff is already there). Update Gerald's e-mail address in column.h. svn path=/trunk/; revision=12131
* Move prefs.c and prefs.h into the epan subdirectory.Guy Harris2004-09-271-1/+1
| | | | svn path=/trunk/; revision=12115
* Set the svn:eol-style property on all text files to "native", so thatGuy Harris2004-07-181-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
* From Jouni Malinen: add columns for the 802.11 data rate and signalGuy Harris2004-07-051-2/+22
| | | | | | | | | strength for AVS headers. Also add them for the Prism and Radiotap headers, and for the pseudo-header from non-native captures. svn path=/trunk/; revision=11316
* From Lars Roland: Move timestamp_type into libethereal and provide accessorOlivier Biot2004-03-181-3/+3
| | | | | | | | methods for getting and setting the timestamp type. This is a move towards a real libethereal shared library. svn path=/trunk/; revision=10402
* Fix the spelling of "cumulative" (and variables whose names derive fromGuy Harris2004-01-311-4/+4
| | | | | | that spelling). svn path=/trunk/; revision=9917
* move timestamp format options from "View->Options" dialog intoUlf Lamping2004-01-191-3/+3
| | | | | | | | 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
* Don't automatically size the columns - that's expensive in largeGuy Harris2003-12-091-65/+2
| | | | | | | | | 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
* And for Cal,Ronnie Sahlberg2003-09-031-2/+11
| | | | | | | | | | 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
* Make the list of column format descriptions "static", and size it basedGuy Harris2003-01-271-21/+45
| | | | | | | | | on the number of column formats - and fix that list by adding a missing comma between "Circuit ID" and "Src PortIdx". Add to "col_format_desc()" a check that the argument is valid. svn path=/trunk/; revision=7008
* From Dinesh Dutt:Guy Harris2003-01-221-5/+38
| | | | | | | | | | | - 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
* Add a new type of column for the circuit ID (Frame Relay DLCI, ISDNGuy Harris2002-12-101-6/+17
| | | | | | | | | 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
* From Alfred Koebler: add support for a column for the interface andGuy Harris2002-12-101-3/+13
| | | | | | direction in Firewall-1 monitor files. svn path=/trunk/; revision=6771
* From Dinesh Dutt: Add Fibre Channel support, including FCIP, Basic FCGerald Combs2002-12-081-8/+30
| | | | | | header, Extended Link Service, Interswitch Link Service, FCP, and IPFC. svn path=/trunk/; revision=6757
* Removed trailing whitespaces from .h and .c files using theJörg Mayer2002-08-281-12/+12
| | | | | | | winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
* Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer2002-08-021-5/+1
| | | | | | | | equivalents for the toplevel directory. The removal of winsock2.h will hopefully not cause any problems under MSVC++, as those files using struct timeval still include wtap.h, which still includes winsock2.h. svn path=/trunk/; revision=5932
* Include files from the "epan" directory and subdirectories thereof withGuy Harris2002-01-211-5/+4
| | | | | | | | | | | | | "epan/..." pathnames, so as to avoid collisions with header files in any of the directories in which we look (e.g., "proto.h", as some other package has its own "proto.h" file which it installs in the top-level include directory). Don't add "-I" flags to search "epan", as that's no longer necessary (and we want includes of "epan" headers to fail if the "epan/" is left out, so that we don't re-introduce includes lacking "epan/"). svn path=/trunk/; revision=4586
* "col_format_to_pref_str()" is used only in "prefs.c", and knows aboutGuy Harris2001-07-221-53/+1
| | | | | | | | the format of string lists in a preferences file; rename it to "put_string_list()", make it take the list as an argument rather than working only on "prefs.col_list", and put it in "prefs.c". svn path=/trunk/; revision=3776
* Check for valid column titles (non-zero-length) and valid column formatsGuy Harris2001-07-221-2/+2
| | | | | | | | | | in preference settings. In the process of doing that, fix a memory leak (we were handing a null pointer, rather than a pointer to the list of strings in "column.format", to "clear_string_list()"). svn path=/trunk/; revision=3775
* Put in a comment noting that the format of a preferences string isGuy Harris2001-07-221-2/+7
| | | | | | | | | | determined by the code in "prefs.c", so arguably "col_format_to_pref_str()" belongs there. Put in a comment noting that said format includes support for escaping quotation marks in quoted strings, and that we should handle that. svn path=/trunk/; revision=3774
* From Todd Sabin: cleaned up "get_column_format_matches()".Guy Harris2001-07-111-54/+52
| | | | svn path=/trunk/; revision=3684
* Add #include <string.h>, to get prototypes for mem* and str* functions.Gilbert Ramirez2000-11-171-1/+2
| | | | svn path=/trunk/; revision=2654
* Add a fourth choice of time format in the packet list display, whichGuy Harris2000-11-011-8/+19
| | | | | | | shows the date (in YYYY-MM-DD format) as well as the time of day when the packet arrived. svn path=/trunk/; revision=2547
* Miscellaneous code cleaningLaurent Deniel2000-08-111-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - add <stdarg.h> or <varargs.h> in snprintf.h and remove those inclusions in the other #ifdef NEED_SNPRINTF_H codes - remove the check of multiple inclusions in source (.c) code (there is a bit loss of _cpp_ performance, but I prefer the gain of code reading and maintenance; and nowadays, disk caches and VM are correctly optimized ;-). - protect all (well almost) header files against multiple inclusions - add header (i.e. GPL license) in some include files - reorganize a bit the way header files are included: First: #include <system_include_files> #include <external_package_include_files (e.g. gtk, glib etc.)> Then #include "ethereal_include_files" with the correct HAVE_XXX or NEED_XXX protections. - add some HAVE_XXX checks before including some system header files - add the same HAVE_XXX in wiretap as in ethereal Please forgive me, if I break something (I've only compiled and regression tested on Linux). svn path=/trunk/; revision=2254
* Move the code in "column.c" that implements the column preferences tabGuy Harris2000-01-101-357/+16
| | | | | | | | | | | into "gtk/column_prefs.c". Get rid of "get_column_width()" - instead, export "get_column_longest_string()", and have "get_column_width()"'s callers make the GDK call to get the width of that string, so that "column.c" contains no GTK+/GDK code. svn path=/trunk/; revision=1447
* Get rid of the "(UDP)" and "(TCP)" in various NetBIOS-over-TCP protocolGuy Harris1999-12-291-2/+2
| | | | | | columns. svn path=/trunk/; revision=1392
* Fix typo in preferences-display name for COL_RES_NET_SRC.Guy Harris1999-10-171-2/+2
| | | | svn path=/trunk/; revision=869
* Add summary-vs-detail radio buttons to the print dialog box; detailGuy Harris1999-09-121-25/+42
| | | | | | | | | | | | | | | | | | | | | prints the protocol tree, and summary prints the fields in the summary clist, with a header line at the beginning of the printout. Print only packets selected by the current packet filter. Just have "ARP" and "RARP" in the "Protocol" field for ARP packets; whether it's a request or a reply can be seen in the "Info" field. Add to the "Frame" section of the protocol tree the time between the current packet and the previous displayed packet, and the packet number. Have FT_RELATIVE_TIME fields be a "struct timeval", and display them as seconds and fractional seconds (we didn't have any fields of that type, and that type of time fits the delta time above). Add an FT_DOUBLE field type (although we don't yet have anything using it). svn path=/trunk/; revision=666
* Fix a comment, to reflect the demise of "ethereal.h".Guy Harris1999-09-101-3/+3
| | | | svn path=/trunk/; revision=648
* We need to catch a "window delete" event for the preferences dialog boxGuy Harris1999-09-101-2/+8
| | | | | | | | | | | | | | | | | | | | | - that event happens if, say, you nuke the dialog box from a window manager - and call "delete" routines for each of the preferences tabs, so that, for preferences tabs that include list widgets, we can set a flag on the preferences tab widget telling the selection callback for the list widget that the buttons it would normally set the sensitivity of, based on whether any row in the list is selected or not, have Joined the Choir Invisible, and therefore that we shouldn't change their sensitivity because GTK+ will whine at us if we do, just as is the case if we press the "OK" or "Cancel" button (which also cause the window to go away). Can we just do this in the "window delete" handler? I.e., does that get called if we explicitly destroy the widget? Or should we catch a "destroy" event instead? (There must be a better way to do this....) svn path=/trunk/; revision=647
* Fix up the comment before "get_column_width()" to reflect currentGuy Harris1999-07-281-6/+12
| | | | | | reality. svn path=/trunk/; revision=397
* Have:Guy Harris1999-07-281-1/+55
| | | | | | | | | | | | | | COL_INFO columns resize automatically even during a live capture; columns showing network addresses never resize automatically; other columns resize only when a capture is done; and make all columns resizeable by hand (once they've resized, for auto-resizeable columns). svn path=/trunk/; revision=394
* Add a "File/Print" menu item, which prints *all* the packets in theGuy Harris1999-07-231-3/+1
| | | | | | | | | | | | | | | | | capture to a file or printer. This should eventually get the ability to print either all the packets or only the packets selected by the display filter, and possibly also the ability to print only packets M through N. Get rid of "cur" member of "capture_file" structure; nobody used it. There's no need to pass a pointer to a "dialog_button" variable to "simple_dialog()" for the error boxes displayed if a file copy or move fails; that dialog box is just a message box and has only an "OK" button. Put the declaration of "prefs" into "prefs.h". svn path=/trunk/; revision=378
* Revert to static sizing of columns.Guy Harris1999-07-221-1/+66
| | | | svn path=/trunk/; revision=377
* Added "Packet Length in bytes" as an optional column.Gilbert Ramirez1999-07-221-3/+6
| | | | svn path=/trunk/; revision=375
* Since ethereal is now dependent on GTK+-1.2.x (because of proto_tree andGilbert Ramirez1999-07-131-5/+1
| | | | | | | display filter code, which uses features in GLIB-1.2.x), I removed the vestigial code supporting old 1.0.x and 1.1.x GTK+ versions. svn path=/trunk/; revision=360
* Added support for compiling on win32 with Visual C and 'nmake'. It compiles,Gilbert Ramirez1999-07-131-1/+5
| | | | | | | | | | | | but does not link. Perhaps someone who understands the MS tools can help out. I made it link a few months ago, but with different version of glib/gtk+. I can't remember how I made it link. Most of the compatibility issues were resolved with adding #ifdef HAVE_UNISTD_H the the source code. Please be sure to add this to all future code. svn path=/trunk/; revision=359
* Found some erroneous usages of gtk_signal_connect_object. I always wonderedGilbert Ramirez1999-06-211-2/+2
| | | | | | | | | | | | why I had to swap fields (data = w) in some of the callback functions when I added support for gtk+-1.1. Because of the use of gtk_signal_connect_object, the wrong value was being sent to the callback function. We were just lucky that with gtk+-1.0 it worked. gtk_signal_connect_object is for use with callbacks that take one argument. gtk_signal_connect is for use with callbacks that take two arguments. svn path=/trunk/; revision=324
* Use "gtk_toggle_button_set_state()" rather thanGuy Harris1999-06-191-63/+1
| | | | | | | | | | | "gtk_toggle_button_set_active()" to set the state of radio buttions; "gtk_toggle_button_set_active()" doesn't exist in GTK+ 1.0[.x], and "gtk_toggle_button_set_state()" is an alias for it in GTK+ 1.2[.x]. Compute the column widths in the summary display based on the longest string in the column; recompute it whenever we update the columns. svn path=/trunk/; revision=319
* Update the column widths if we change the time stamp format from theGuy Harris1999-06-191-2/+2
| | | | | | | | | | | | | | | "Display/Options" dialog box. "get_column_width()" should check "timestamp_type" against ABSOLUTE, not against COL_ABS_TIME. Clean up the code to check the state of the time stamp radio buttons in the "Display/Options" dialog box. Check in "timestamp.h", which we failed to check in on the previous commit. svn path=/trunk/; revision=318
* Added "Capture" and "Display" menus; "Capture" has a "Start" item, whichGuy Harris1999-06-191-15/+2
| | | | | | | | | | | | | | | is the same as "Tools/Capture", and "Display" has an "Options" item, which pops up a dialog box to let you change the "default" time-stamp column display format on the fly (the "default" is what the "-t" command-line option sets), and have the display change when you do that. Made infrastructure changes to make the immediate display update work. Removed some unused functions, declared some functions used only in the file in which they're defined "static", and removed some unnecessary #includes. svn path=/trunk/; revision=317
* Removed all references to gtk objects from packet*.[ch] files. They nowGilbert Ramirez1999-03-231-1/+2
| | | | | | | | | | reference the protocol tree with struct proto_tree and struct proto_item objects. That way, the packet decoding source code file can be used with non-gtk packet decoders, like a curses-based ethereal, e.g. I also re-arranged some of the information in packet.h to more appropriate places (like other packet-*.[ch] files). svn path=/trunk/; revision=223
* IPX addresses in the Destination/Source fields of the "column" part of the GUIGilbert Ramirez1999-03-051-2/+2
| | | | | | are now written in NNNNNNNN.hhhhhhhhhhhh form, N=IPX network, h=hwaddr. svn path=/trunk/; revision=211
* * Final commit for version 0.5.1Gerald Combs1999-01-041-4/+5
| | | | | | | * Added RPM .spec file (Martin Maciaszek) * Added Martin to AUTHORS svn path=/trunk/; revision=149
* * Added Joerg Mayer's Vines patchGerald Combs1998-12-291-9/+43
| | | | | | | | * Added Joerg to the AUTHORS file * Added Guy's bitfield decode patch * Fixed time output svn path=/trunk/; revision=142
* Fixed more bugs with dialogues and gtk+-1.1.x.Gilbert Ramirez1998-12-221-1/+5
| | | | svn path=/trunk/; revision=137
* A patch spread across many files to let Ethereal compile under GTK+-1.1.x.Gilbert Ramirez1998-12-171-1/+2
| | | | | | | | | | | Tests for GTK versions are done during compilation, not during "./configure". The big problems have been taken care of in this patch (functional change in the packet clist and conversion of menu_factory to item_factory), but plenty of smaller problems with dialogue boxes abound. I have fixed a small problem with file_open*(), but have left 2 comments in just in case I'm not going about this the right way. Can someone verify? svn path=/trunk/; revision=127
* Note that wiring the current longest string in a column intoGuy Harris1998-12-161-1/+5
| | | | | | | "get_column_width()" is somewhat fragile, and suggest a possible alternative. svn path=/trunk/; revision=126
* * Added patches from Laurent and GuyGerald Combs1998-11-181-14/+11
| | | | svn path=/trunk/; revision=103
* * Fixes for TCP and UDP port number display.Gerald Combs1998-11-171-1/+7
| | | | svn path=/trunk/; revision=98