aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
Commit message (Collapse)AuthorAgeFilesLines
* If a non-option command-line argument is specified to Ethereal, treat itGuy Harris2001-11-241-3/+36
| | | | | | | | | as the pathname of a capture file to be read. If more than one such option is specified, print a usage message. Fix the documentation of the "-r" option to Ethereal and Tethereal. svn path=/trunk/; revision=4253
* Remove the global packet_info called "pi". Dissectors now onlyGilbert Ramirez2001-11-215-27/+23
| | | | | | | | | | | | | | | | 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
* Get rid of some unused variables.Guy Harris2001-11-211-3/+1
| | | | svn path=/trunk/; revision=4239
* Have a routine to add all the hex dump tabs to the hex dump notebook,Guy Harris2001-11-203-23/+30
| | | | | | | and call it both from "select_packet()" and "create_new_window()", rather than having two similar loops in both places. svn path=/trunk/; revision=4233
* If bytes in a hex dump view are selected, the field in the correspondingGuy Harris2001-11-203-11/+28
| | | | | | | text view should be selected, rather than always selecting a field in the main text view. svn path=/trunk/; revision=4232
* Allow the tvbuff pointer to various "proto_tree_add" routines to be nullGuy Harris2001-11-203-12/+23
| | | | | | | | | | | | | if (and only if) the length of the item being added is 0 (so that it has no data backing it). This means the data stream name pointer for the item in question is null; make sure we handle that. Use that for some "uses the value from the matching request" fields in the SMB Pipe protocol. svn path=/trunk/; revision=4231
* Wrap calls to "pcap_datalink()" in a routine that attempts to compensateGuy Harris2001-11-092-4/+6
| | | | | | | | | | | | | | for AIX 5.x's non-standard libpcap, where "pcap_datalink()" doesn't return DLT_ values, it returns RFC 1573 ifType values. Put that wrapper, and the routine to get the interface list, in a separate file, for packet-capture utility routines, so not everybody who includes "util.h" needs to include <pcap.h>. Fix up the Wiretap hack for dealing with said incompatibility to use the correct ifType value for Token Ring. svn path=/trunk/; revision=4184
* From <a.stockmeier[AT]avm.de>: fix the file dialog box code to useGuy Harris2001-11-091-2/+2
| | | | | | "g_strdup()", not "strdup()" to copy strings. svn path=/trunk/; revision=4181
* Include protocols for TCP conversation dissectors in the list ofGuy Harris2001-11-041-1/+2
| | | | | | protocols that can be used to decode stuff. svn path=/trunk/; revision=4152
* Allow a dissector to register preferences that it no longer supports asGuy Harris2001-11-042-3/+17
| | | | | | | | | | | | | | | | | | | | | | obsolete; we silently ignore attempts to set those in a preferences file, so that we don't spam the user with error messages caused by them having saved preferences in an earlier release that contained those preferences. Make the Diameter and iSCSI dissectors register obsolete preferences. Crash if some code tries to register a preferences module with a name that contains something other than lower-case ASCII letters, numbers, or underscores, or that has already been registered, or if some code tries to register a preference with a name that contains something other than lower-case ASCII letters, numbers, underscores, or periods, or that has already been registered, so that we don't put code like that in a release and have to shovel code into "prefs.c" to fix it up later. (The problem with multiple modules or preferences with the same name should be obvious; the problem with names with blanks, or upper-case letters, or punctuation, is that they're a pain to type on the command line.) svn path=/trunk/; revision=4148
* Add the Ethereal Web site's mirror of WinPcap to the dialog popped up ifGuy Harris2001-10-311-2/+5
| | | | | | you try to capture on Windows without having WinPcap installed. svn path=/trunk/; revision=4113
* Get rid of a bunch of stuff that was there to support non-tvbuffifiedGuy Harris2001-10-311-19/+8
| | | | | | dissectors and that's no longer needed. svn path=/trunk/; revision=4112
* Have a routine that takes a file name for a personal configuration fileGuy Harris2001-10-243-27/+8
| | | | | | | | | | and generates the path name; have it, if the file is to be opened for reading on Win32, check whether it exists and, if not, check for it in the old home directory-based configuration directory and, if so, return that path instead, so that files saved with earlier versions of Ethereal will be seen. svn path=/trunk/; revision=4072
* On Windows, put Ethereal configuration files under the "ApplicationGuy Harris2001-10-243-7/+11
| | | | | | | Data\Ethereal" directory under the user's profile, as that appears to be the Windows 2000 standard. svn path=/trunk/; revision=4071
* Add a new routine to create the ".ethereal" directory for a user.Guy Harris2001-10-233-11/+41
| | | | | | | | | | | | | Use that routine rather than duplicating that code in the routines to write out the preference file and filter files. Use it in the code for the color filter dialog, so that the directory in question is created if necessary. As that routine returns an error indication, have the code that calls that routine put up a message box if the attempt fails. svn path=/trunk/; revision=4065
* Add a routine to get the directory in which personal configuration filesGuy Harris2001-10-224-25/+40
| | | | | | | | | | reside. Use it, rather than concatenating the user's home directory and ".ethereal" in a number of files. Fix up some additional places to use G_DIR_SEPARATOR_S as the pathname separator. svn path=/trunk/; revision=4061
* Use G_DIR_SEPARATOR_S rather than "/" as a pathname separator in formatGuy Harris2001-10-211-3/+3
| | | | | | strings used to generate pathnames. svn path=/trunk/; revision=4057
* Use G_DIR_SEPARATOR_S rather than "/" as a pathname separator in formatGuy Harris2001-10-211-4/+2
| | | | | | | | | | | | | | | | strings used to generate pathnames. Move the definition of PF_DIR from <epan/epan.h> to <epan/filesystem.h>, so that files requiring only the definition of PF_DIR don't have to include <epan/epan.h>, and get rid of no-longer-necessary includes of <epan/epan.h>. Add a routine to get the directory for "system files" such as "/etc/ethers" - it's "/etc" on UNIX, and the datafile directory on Windows (as there's no "/etc" on Windows). Use that to construct the pathname of the ethers and ipxnet files. svn path=/trunk/; revision=4056
* Add little arrows to the column titles to indicate which column we'reGerald Combs2001-10-211-6/+63
| | | | | | using to sort as well as the sort direction. svn path=/trunk/; revision=4050
* A small patch from Moronori Shindo to fix compiles under MSVC etc ...Richard Sharpe2001-10-131-1/+2
| | | | svn path=/trunk/; revision=4026
* Put the scrollbar for the scrolled window containing the CList in theGuy Harris2001-10-131-1/+3
| | | | | | | preferences dialog where the user specified, and register that scrolled window so that if the preference is changed the scrollbar moves. svn path=/trunk/; revision=4025
* Set the data for E_{PRINT,COLUMN,STREAM,GUI}_PAGE_KEY to the notebookGuy Harris2001-10-131-5/+5
| | | | | | | | page for the preferences item rather than to the frame for the preferences item, as that's what the code in "gtk/gui_prefs.c" expects (otherwise you get errors). svn path=/trunk/; revision=4024
* Reduce the CinemaScope-like proportions of the preferences dialog byGerald Combs2001-10-111-24/+131
| | | | | | getting rid of the notebook tabs and using a CTree to select pages. svn path=/trunk/; revision=4015
* The Wiretapped.net mirror is OK again (it was a problem with theGuy Harris2001-09-291-3/+6
| | | | | | | | | mirroring procedure, due to the Politecnico di Torino site's IIS not being configured to allow the relevant "virtual directories" to be listed, thus keeping Wiretapped.net from figuring out what files were there and whether they've changed), so put back the references to it. svn path=/trunk/; revision=3976
* Sigh. The wiretapped.net site appears to have an old version ofGuy Harris2001-09-281-3/+4
| | | | | | | WinPcap's installer (it dates back to May, meaning it may be a beta of 2.2 or may even be 2.1), so don't suggest that people go there. svn path=/trunk/; revision=3964
* Make the message popped up if you try to do a capture on a Win32 machineGuy Harris2001-09-261-6/+9
| | | | | | | | | when wpcap.dll couldn't be loaded more detailed, in the hopes that it'll reduce the chances that somebody will see that message and not know what to do. Also, mention the Wiretapped.net mirror of the WinPcap site, as the WinPcap site is all-too-often down due to networking glitches. svn path=/trunk/; revision=3955
* The "Save only marked packets" checkbox should change as the file typeGuy Harris2001-09-101-1/+14
| | | | | | | changes, just as the "Save only packets currently being displayed" checkbox should. svn path=/trunk/; revision=3913
* From Frank Singleton: add some missing includes of <string.h>.Guy Harris2001-08-311-1/+3
| | | | svn path=/trunk/; revision=3889
* Fix a typo.Guy Harris2001-08-211-2/+2
| | | | svn path=/trunk/; revision=3860
* On Windows, use the directory in which the binary resides as theGuy Harris2001-08-216-22/+13
| | | | | | | | | | | | | | | | | | | | | | directory in which global data files are stored. If an installed binary is being run, that's the correct directory for them; if a build-tree binary is being run, the "manuf" file will be there, and you can put other data files there as well, if necessary. Do the same with plugins, except that, if there's no "plugins\\{version}" subdirectory of that directory, fall back on the default installation directory, so you at least have a place where you can put plugins for use by build-tree binaries. (Should we, instead, have the Windows build procedure create a subdirectory of the "plugins" source directory, with the plugin version number as its name, and copy the plugins there, so you'd use the build-tree plugin binaries?) Move "test_for_directory()" out of "util.c" and into "epan/filesystem.c", with the other file system access portability wrappers and convenience routines. Fix "util.h" not to declare it - or other routines moved to "epan/filesystem.c" a while ago. svn path=/trunk/; revision=3858
* Use system's version of AM_PATH_GLIB macro.Gilbert Ramirez2001-08-201-1/+1
| | | | | | | | Optimize use of AC_CHECK_FUNC in wiretap/acinclude.m4 Move #include "config.h" to be first include in some files. From albert chin (china@thewrittenword.com) svn path=/trunk/; revision=3857
* Fix AC_ETHEREAL_PCAP_CHECK so that, if a directory was specified withGuy Harris2001-07-271-13/+10
| | | | | | | | | | | | | | | | | "--with-pcap", it adds the "include" subdirectory of that directory to the list of directories to search for include files, rather than adding the directory itself. Check whether libpcap defines "pcap_version", and define HAVE_PCAP_VERSION if it does. Use "pcap_version" iff HAVE_PCAP_VERSION is defined, rather than special-casing MacOS X. Don't #define a string for the WinPcap version; just leave HAVE_PCAP_VERSION undefined on Windows, as WinPcap 2.2beta is out, so we can no longer assume that the Windows version of Ethereal is using WinPcap 2.1. svn path=/trunk/; revision=3792
* MacOS support changes, from Michael Tuexen (with some modifications):Guy Harris2001-07-261-1/+5
| | | | | | | | | | | | | | | | | | | replace "--with-plugindir" with "--with-plugins", and have the plugin directory optional - this allows plugins to be disabled; add "--traditional-cpp" on MacOS X/Darwin (Apple's "cc" compiler requires it, for some annoying reason, even though it is, as far as I know, GCC-based, and other GCC's don't require it); on MacOS X, don't use "pcap_version[]", as, for some annoying reason, libpcap on MacOS X doesn't define it. Clean up some whitespace in the help messages for the configure script. Move the AM_CONDITIONAL for SETUID_INSTALL after the point at which "enable_setuid_install" is set, as it tests "enable_setuid_install". svn path=/trunk/; revision=3788
* Check for valid column titles (non-zero-length) and valid column formatsGuy Harris2001-07-221-1/+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
* Get rid of some unused variables.Guy Harris2001-07-201-3/+1
| | | | svn path=/trunk/; revision=3744
* Added a "Mark Frame" option to the packet_list_menu_itemsEd Warnicke2001-07-171-1/+3
| | | | | | | so that you can right click on a packet in the packet list and mark it. svn path=/trunk/; revision=3737
* Added a "Suppress Unmarked" option to the print dialog toEd Warnicke2001-07-171-2/+16
| | | | | | | | | | | | | | allow you to suppress the printing of unmarked packets. This allows a user to mark the packets they wish to print and print ONLY those packets by suppressing all other unmarked packets. This may seem like a bit of a convoluted way of expressing things, as usually the desired behavior would be to print the marked packets. However, we do NOT print marked packets that are not displayed under the current filter. To be maximally explicite I've expressed this as suppressing unmarked frames. svn path=/trunk/; revision=3736
* Support for {Enter,Return} keys toggling expansion of selected protocolGuy Harris2001-07-091-7/+20
| | | | | | tree item, from Heikki Vatiainen. svn path=/trunk/; revision=3672
* "open_cap_file()" in Ethereal and Tethereal don't use the FILE_T theyGuy Harris2001-07-051-1/+5
| | | | | | | | | | | | | | | | | get from calling "wtap_file()", so get rid of the call and the (otherwise unused) variable to which its result gets assigned. That lets us get rid of "wtap_file()" in Wiretap. It also lets us get rid of the include of "zlib.h" in "file.h"; the #defines of "file_open()", "filed_open()", and "file_close()" are also unnecessary, so we get rid of those as well. However, that means we need to include <zlib.h> in "gtk/main.c" and "tethereal.c", so that the version number of libz is defined and can show up in the version string. svn path=/trunk/; revision=3652
* Don't offer the ability to edit capture filters if Ethereal wasn'tGuy Harris2001-06-272-2/+10
| | | | | | linked with libpcap. svn path=/trunk/; revision=3613
* Fix a problem that shows up if you build without libpcap.Guy Harris2001-06-271-3/+3
| | | | svn path=/trunk/; revision=3612
* A better fix - we don't use "assigned" if the action was E_DECODE_NO, soGuy Harris2001-06-251-14/+9
| | | | | | | | | don't bother fetching it if the action is E_DECODE_NO; that means we can also avoid fetching the currently selected row if the action is E_DECODE_NO, so the fact that we've cleared the selection if the action is E_DECODE_NO doesn't matter. svn path=/trunk/; revision=3606
* In "decode_network()", get the information about the currently selectedGuy Harris2001-06-251-6/+13
| | | | | | | row *before* calling "decode_simple()", as, if the "Do not decode" radio button is selected, "decode_simple()" will clear the current selection. svn path=/trunk/; revision=3605
* In a capture child process, *completely ignore* the preference settingGuy Harris2001-06-191-2/+12
| | | | | | | for promiscuous mode; just do what the parent process told you, i.e. do a non-promiscuous capture iff a "-p" flag was specified. svn path=/trunk/; revision=3575
* Get rid of an unnecessary declaration of "packet_list".Guy Harris2001-06-181-4/+2
| | | | svn path=/trunk/; revision=3565
* When printing the contents of a raw-data field, don't use the raw dataGuy Harris2001-06-081-4/+3
| | | | | | | of the current frame as the source, use the raw data of the tvbuff that's the data source of that field. svn path=/trunk/; revision=3531
* Enable "Match Selected" only if there's a field selected *and* we can doGuy Harris2001-06-056-44/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a "Match Selected" on it - we can't do a "Match Selected" if the field has no value (e.g., FT_NULL) and has a length of 0. If we unselect the current packet, we don't have a protocol tree, so we don't have a currently selected field - clear the "Match Selected" menu item and the display in the status line of information about the currently selected field. Move the low-level statusbar manipulation into "gtk/main.c", in routines whose API doesn't expose anything GTK+-ish. "close_cap_file()" calls one of those routines to clear out the status bar, so it doesn't need to take a pointer to the statusbar widget as an argument. "clear_tree_and_hex_views()" is purely a display-manipulating routine; move it to "gtk/proto_draw.c". Extract from "tree_view_unselect_row_cb()" an "unselect_field()" routine to do all the work that needs to be done if the currently selected protocol tree row is unselected, and call it if the currently selected packet list row is unselected (if it's unselected, there *is* no protocol tree, so no row can be selected), as well as from "tree_view_unselect_row_cb()". Before pushing a new field-description message onto the statusbar, pop the old one off. Get rid of an unused variable (set, but not used). svn path=/trunk/; revision=3513
* Changes to structure initializations not to initialize some but not allGuy Harris2001-06-021-5/+5
| | | | | | members, from Joerg Mayer. svn path=/trunk/; revision=3501
* Support for "-N" flag enabling selected forms of name resolution, fromGuy Harris2001-05-314-60/+163
| | | | | | | | | | | | Joerg Meyer. Support for saving to the preferences file the settings for all types of name resolution. Do a case-insensitive check for "true" and "false" in Boolean preference settings. svn path=/trunk/; revision=3489
* Free the string you "g_strdup()"ed, rather than handing "g_free()" theGuy Harris2001-05-311-2/+2
| | | | | | null pointer that provoked you to free the string. svn path=/trunk/; revision=3485