aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
AgeCommit message (Collapse)AuthorFilesLines
2001-07-27Fix AC_ETHEREAL_PCAP_CHECK so that, if a directory was specified withGuy Harris1-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
2001-07-26MacOS support changes, from Michael Tuexen (with some modifications):Guy Harris1-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
2001-07-22Check for valid column titles (non-zero-length) and valid column formatsGuy Harris1-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
2001-07-20Get rid of some unused variables.Guy Harris1-3/+1
svn path=/trunk/; revision=3744
2001-07-17Added a "Mark Frame" option to the packet_list_menu_itemsEd Warnicke1-1/+3
so that you can right click on a packet in the packet list and mark it. svn path=/trunk/; revision=3737
2001-07-17Added a "Suppress Unmarked" option to the print dialog toEd Warnicke1-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
2001-07-09Support for {Enter,Return} keys toggling expansion of selected protocolGuy Harris1-7/+20
tree item, from Heikki Vatiainen. svn path=/trunk/; revision=3672
2001-07-05"open_cap_file()" in Ethereal and Tethereal don't use the FILE_T theyGuy Harris1-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
2001-06-27Don't offer the ability to edit capture filters if Ethereal wasn'tGuy Harris2-2/+10
linked with libpcap. svn path=/trunk/; revision=3613
2001-06-27Fix a problem that shows up if you build without libpcap.Guy Harris1-3/+3
svn path=/trunk/; revision=3612
2001-06-25A better fix - we don't use "assigned" if the action was E_DECODE_NO, soGuy Harris1-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
2001-06-25In "decode_network()", get the information about the currently selectedGuy Harris1-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
2001-06-19In a capture child process, *completely ignore* the preference settingGuy Harris1-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
2001-06-18Get rid of an unnecessary declaration of "packet_list".Guy Harris1-4/+2
svn path=/trunk/; revision=3565
2001-06-08When printing the contents of a raw-data field, don't use the raw dataGuy Harris1-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
2001-06-05Enable "Match Selected" only if there's a field selected *and* we can doGuy Harris6-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
2001-06-02Changes to structure initializations not to initialize some but not allGuy Harris1-5/+5
members, from Joerg Mayer. svn path=/trunk/; revision=3501
2001-05-31Support for "-N" flag enabling selected forms of name resolution, fromGuy Harris4-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
2001-05-31Free the string you "g_strdup()"ed, rather than handing "g_free()" theGuy Harris1-2/+2
null pointer that provoked you to free the string. svn path=/trunk/; revision=3485
2001-05-30No old-style dissectors call "old_dissector_try_port()", so get rid ofGuy Harris1-2/+2
"old_dissector_try_port()". There are no longer any old-style heuristic or conversation dissectors, so get rid of "old_heur_dissector_add()" and "old_conv_dissector_add()" and the data-structure members that support old-style heuristic and conversation dissectors. svn path=/trunk/; revision=3478
2001-05-27Give protocol tree windows a horizontal scrollbar - yes, sometimesGuy Harris1-2/+2
protocol tree lines can be long enough that you might want, or even need, one (consider really long names for SNMP OIDs, for example). svn path=/trunk/; revision=3466
2001-05-12Fix a bug reported by Christopher McAvaney inGerald Combs1-12/+31
http://www.ethereal.com/lists/ethereal-dev/200104/msg00152.html. In the display filter help window, the height of the text widget can easily exceed the maximum height of an X window, which results in a nonfunctioning vertical scroll bar. This fix disables the GtkScrolledWindow vertical scroll bar, and creates a new scroll bar attached directly to the GtkText widget. The layout is a little off - the horizontal scroll bar now occupies the full height of the GtkScrolledWindow widget. There doesn't seem to be an easy way to grab the height of the horizontal scroll bar in order to pad out the are underneath the vertical scroll bar. svn path=/trunk/; revision=3411
2001-05-01"-l" command-line option to turn on automatic scrolling in "Update listGuy Harris1-3/+6
of captures in real time" captures, from Christian Lacunza. svn path=/trunk/; revision=3389
2001-05-01"prefs.capture_real_time", not "prefs.capture_auto_scroll", shouldGuy Harris1-2/+2
control whether we have a child process do the capturing; a user might want the packet list to be updated as packets arrive but *not* want it to scroll so that the most recently arrived packets are shown. "prefs.capture_auto_scroll", not "auto_scroll_live", should control whether we scroll a real-time-update capture's packet list; "auto_scroll_live" isn't set by the capture dialog box, "prefs_capture_auto_scroll" is. svn path=/trunk/; revision=3388
2001-04-25Undefine "isprint()" before re-defining it, to squelch a compilerGuy Harris1-1/+8
warning. Put in a comment indicating that non-ASCII characters may well pass "isprint()". svn path=/trunk/; revision=3381
2001-04-24Signed vs. unsigned fixes from Joerg Mayer.Guy Harris3-10/+10
svn path=/trunk/; revision=3373
2001-04-23Move the declarations of IP protocol numbers to "ipproto.h" fromGuy Harris1-2/+2
"packet-ip.h". Fix Gerald's address in some files while we're at it. svn path=/trunk/; revision=3366
2001-04-20When displaying the numeric value for the value_string string that wasGuy Harris1-1/+2
selected in the filter-construction GUI, treat BASE_BIN like BASE_DEC, as that's currently how it's treated elsewhere. svn path=/trunk/; revision=3351
2001-04-19Patch from Ronnie Sahlberg to cause the field description section of theGuy Harris1-9/+28
status bar to display nothing, rather than "Text (text)", when a "proto_tree_add_text()" field is selected. While we're at it, use a similar test to eliminate the text pseudo-field from the output of "{ethereal,tethereal} -G", as well. svn path=/trunk/; revision=3335
2001-04-18Check the validity of numbers specified in command-line options.Guy Harris1-6/+31
svn path=/trunk/; revision=3326
2001-04-17Fix to a preferences dialog bug, from <inoue@ainet.or.jp>.Guy Harris1-2/+4
svn path=/trunk/; revision=3315
2001-04-15There's no "enable name resolution in captures" preference in Ethereal,Guy Harris5-16/+17
and never was - there's only an Ethereal-wide "enable name resolution" preference. Name it just "name_resolve". Replace all tests of "g_resolving_actif" with tests of "prefs.name_resolv", and replace all code that sets "g_resolving_actif" with code that sets "prefs.name_resolv", so that the setting of "prefs.name_resolv" actually affects whether names are resolved or not. svn path=/trunk/; revision=3300
2001-04-13Added the ethereal capture preferences to the preference file.Jeff Foster4-23/+26
svn path=/trunk/; revision=3298
2001-04-10Check in isprint() hack for Win32 so that Ethereal is usably whileGilbert Ramirez4-8/+42
we figure out what the real bug is. Fix set_last_open_dir() to use G_DIR_SEPARATOR and G_DIR_SEPARATOR_S for cross-platform compatibility. svn path=/trunk/; revision=3281
2001-04-09last_open_dir needs a trailing slash in order for the GTK+Gilbert Ramirez3-28/+31
file-selection dialogue to open the directory and show its contents, otherwise it opens the parent directory and shows *its* contents. svn path=/trunk/; revision=3279
2001-04-05Win32 build fix, show "0.5.2 (WinPcap 2.1)" as the libpcap versionGilbert Ramirez3-8/+5
for Win32, and show a slightly more informative (i.e., geared to the user) help message when trying to capture without having WinPcap installed. svn path=/trunk/; revision=3261
2001-04-03Now that WinPcap is a DLL, I can load it at run-time rather than load-time.Gilbert Ramirez2-2/+26
That means that I no longer need to distribute capture and non-capture versions of Ethereal for Win32; one version (compiled with WinPcap headers) can run on systems with or without WinPcap. For systems that don't have WinPcap, instead of disabling the Capture menu, Capture|Start brings up a dialogue informing the user that wpcap.dll was not loadable, and gives a URL to the WinPcap home page. svn path=/trunk/; revision=3249
2001-04-02"get_home_dir()", in "epan/filesystem.c", usesGuy Harris2-3/+4
"find_last_pathname_separator()" on Win32; move the other pathname manipulation routines from "util.c" into "epan/filesystem.c". Remove from "util.h" the declarations of routines not defined in "util.c", and put them into "epan/filesystem.h" if they're not already there. Adjust #includes to make the above work. svn path=/trunk/; revision=3241
2001-04-02Use GLib types rather than "u_int" and "u_char" in "resolv.h"; "u_int"Guy Harris1-2/+2
and "u_char" aren't declared in <sys/types.h> in Win32, you have to include <winsock.h>, which is a pain. Throw in some "const"s while we're at it. svn path=/trunk/; revision=3240
2001-04-02Added two new arguments to epan_init() and proto_init() toEd Warnicke1-2/+3
allow the passing of register_all_protocols() and register_all_protocol_handoffs() through epan_init() to proto_init(). This allows the removal of the compile time dependence of proto.c on register.h. Modified dftest.c, tethereal.c, and gtk/main.c to use the new style epan_init() and depend on register.h. svn path=/trunk/; revision=3237
2001-03-29Change name of "Last-Protocol" columns to "End" so that there'sGilbert Ramirez1-4/+4
a better chance of them fitting horizontally into the window, for users of small screens. svn path=/trunk/; revision=3203
2001-03-27Make "comp_info_str" static in Ethereal - there's no need for it outsideGuy Harris1-22/+37
"gtk/main.c" in Ethereal. Add the GLib version to it in Ethereal, and put in the GLib version rather than the GTK+ version in Tethereal (which isn't linked with GTK+...). Make it a GString; this makes the code to construct it slightly less ugly, especially now that we're putting the GLib version in. Fix the code for the "-D" flag in Tethereal to compile in a no-libpcap version (in a no-libpcap version, it just says that this version of Tethereal wasn't compiled with capture support). svn path=/trunk/; revision=3196
2001-03-27There's no "-D" option to Ethereal - remove the "D" from the getopt flagGuy Harris1-2/+2
list argument. svn path=/trunk/; revision=3195
2001-03-26GUI code fixes from Eduardo P�rez Ureta.Guy Harris2-5/+4
svn path=/trunk/; revision=3189
2001-03-26Create dialogue box as top-level window, not transient window.Gilbert Ramirez1-4/+6
svn path=/trunk/; revision=3188
2001-03-24Get rid of extra definition of "byte_nb_ptr"; it's defined inGuy Harris1-8/+8
"gtk/main.c", and declared in "gtk/gtkglobals.h". The last argument to "gtk_object_set_data()" is a "gpointer"; cast it to that. svn path=/trunk/; revision=3186
2001-03-24Fix typos in comments.Guy Harris1-3/+3
svn path=/trunk/; revision=3185
2001-03-24"reactivate_window()" is used only by stuff in the "gtk" directory, andGuy Harris3-3/+41
has an API that depends on GTK+. "set_main_window_name()" is UI-toolkit-independent. Declare the former in a new "gtk/ui_util.h" file, rather than in "ui_util.h"; this helps separate UI-toolkit-independent stuff from UI-toolkit-dependent stuff. svn path=/trunk/; revision=3181
2001-03-24The declaration of "destroy_packet_wins()" belongs inGuy Harris2-3/+8
"gtk/packet_win.h", along with the declarations of the other packet window manipulation routines; put it there. svn path=/trunk/; revision=3180
2001-03-24Give the code that computes protocol statistics a progress dialog box,Guy Harris2-9/+15
as, on a large capture, it could take a significant amount of time. Let the user stop the computation and, if they do, don't pop up the statistics dialog box. Create a new header file declaring the routines to create, update, and destroy progress dialog boxes; those routines' APIs don't depend on GTK+, but others declared in "ui_util.h" do, and we don't want to oblige a source file to depend on GTK+ headers unless it uses a GTK+ API or an API that depends on GTK+. svn path=/trunk/; revision=3179