aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
AgeCommit message (Collapse)AuthorFilesLines
2002-10-09Link to libsnmp under Win32.Gerald Combs1-3/+21
In gtk/main.c and tethereal.c set MIBDIRS to <get_program_path()>\snmp\mibs so that we can drop the MIB files there, instead of the default c:\usr\... path. Add NET_SNMP_DIR to config.nmake and modify Makefile.nmake to adjust CFLAGs, ethereal_LIBS and tethereal_LIBS accordingly. Define HAVE_UCD_SNMP in config.h.win32. I tested this by creating c:\program files\ethereal\snmp\mibs and dropping in the MIB files that come with Net-SNMP. Ethereal resolved system.sysDescr.0 to "iso.3.6.1.2.1.1.1.0" under Windows. Under Linux it resolved to "SNMPv2-MIB::sysDescr.0". Ethereal.nsi still needs to be updated. A compiled version of the Net-SNMP library can be found at http://www.ethereal.com/distribution/win32/development/ svn path=/trunk/; revision=6385
2002-09-27Update tethereal to put the filter string in the statistics table for RPC_STAT.Ronnie Sahlberg3-18/+58
Update gtk and gtk2 versions of RPC_STAT to allow a filter string to be specified on both the command line as well as the GUI. Update the documentation for ethereal to reflect this. svn path=/trunk/; revision=6343
2002-09-26From Ulf Lamping: Prettyfied Colorization dialogRonnie Sahlberg1-138/+214
svn path=/trunk/; revision=6335
2002-09-23Change to color filters :Olivier Abad6-44/+47
- moved color_filter_t in color.h - change color_filter_t to use color_t instead of GdkColor This changed allowed to remove the last gtk includes in file.c. It is now completely free of any gtk related code. svn path=/trunk/; revision=6324
2002-09-23Add packet_list.obj to Makefile.nmake - spotted by Ulf LampingJörg Mayer1-1/+2
svn path=/trunk/; revision=6322
2002-09-22From Graeme Hewson:Gerald Combs2-20/+32
In my recent patches to set and use a default directory, I neglected to set the directory when the user enters a file name directly into the "Capture Options" and "Print" dialogs instead of using the file dialog. This set of patches corrects this. svn path=/trunk/; revision=6318
2002-09-21Removed all gtk calls in file.c :Olivier Abad6-10/+172
- created a few packet_list_xxx functions (ui_util.h gtk/packet_list.c gtk2/packet_list.c) ; - removed almost all "gtk/xxx" and "gtk2/xxx" includes in file.c The only remaining includes are related to color filters. We have to make color_filter_t GUI independent by replacing GdkColor with color_t. I'll work on this later. svn path=/trunk/; revision=6311
2002-09-10Add "/I$(ZLIB_DIR)" to the list of "/I" flags in the top-level directoryGuy Harris1-1/+2
and the "gtk" and "gtk2" directories, so that we find "zlib.h", as we now define "HAVE_ZLIB" in the top-level "config.h.win32" and thus try to include "zlib.h" on Windows. svn path=/trunk/; revision=6246
2002-09-09From Graeme Hewson:Guy Harris5-27/+151
Currently Ethereal sets and uses a default directory for reading and writing, but only in some places. This set of patches extends the setting of the default directory to the -w option as well as the -r option, and causes all file dialogs to use and set the default consistently. (I haven't changed the Preferences/Printing/File dialog, though, as that's a special case.) There's also a fix for a bug where Ethereal was issuing the message "Ring buffer requested, but capture isn't being saved to a permanent file" even though a file was specified with -w. There also appear to be some other cleanups in his patch. svn path=/trunk/; revision=6238
2002-09-09Add/fix cvs id tagsJörg Mayer2-1/+3
svn path=/trunk/; revision=6237
2002-09-09Put back missing include of <stdio.h>.Guy Harris1-3/+2
Fix the RCS ID. svn path=/trunk/; revision=6235
2002-09-07Tap system supprot for Gtk1 and both rpc_stat and rpc_progsRonnie Sahlberg8-5/+1052
Gtk1 is still single threaded so if the tap extensions need to do something time consuming or cpu intensive, then the main application will suffer. It is better than nothing. svn path=/trunk/; revision=6215
2002-09-07Add back stdio.hJörg Mayer1-1/+2
svn path=/trunk/; revision=6214
2002-09-07Add back more string.h includesJörg Mayer1-0/+2
svn path=/trunk/; revision=6205
2002-09-06From Vassilii Khachaturov, cleanup of redundant code.Ronnie Sahlberg1-20/+2
svn path=/trunk/; revision=6202
2002-09-06Put needed include back in (<string.h>, to declare "memset()").Guy Harris1-1/+2
svn path=/trunk/; revision=6201
2002-09-05Include cleanups in gtk and gtk2:Jörg Mayer38-194/+58
Remove unneded includes Add include wrappers where missing svn path=/trunk/; revision=6191
2002-08-31Remove redundant HAVE_LIBPCAP check (copied from gtk2)Jörg Mayer1-4/+1
svn path=/trunk/; revision=6158
2002-08-31Remove trailing whitespaces.Jörg Mayer2-7/+7
svn path=/trunk/; revision=6155
2002-08-31Cast the Mbits/s calculation as a float, so that we display the valueGerald Combs1-2/+3
correctly for large captures. svn path=/trunk/; revision=6150
2002-08-28Make the "start_time" argument to "delayed_create_progress_dlg()" aGuy Harris1-5/+5
pointer to const, to emphasize that it does *not* modify the time pointed to by the argument. Make the initial delay for delayed progress bars 1/10 second rather than 1/2 second, as a 1/2 second delay is noticeable, especially when loading a file for the first time (as the main window looks a bit blank). Even at 1/10 second you can still notice it, but it's not *as* noticeable. svn path=/trunk/; revision=6118
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer67-781/+781
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
2002-08-28From Ulf Lamping: extend the progress dialog box to give more progressGuy Harris1-22/+145
information. Fix the types of some variables (make the file position in "read_cap_file()" a "long", as Wiretap supports "long" offsets, and make processed-packet counts in packet-processing loops "int"s, as the total packet count in a "capture_file" structure is an "int"). svn path=/trunk/; revision=6112
2002-08-24Give the routines that implement the "Match" and "Prepare" menu itemsGuy Harris3-87/+87
more meaningful names, indicating whether they look at something in the protocol tree or the packet list. svn path=/trunk/; revision=6077
2002-08-13On Win32:Guy Harris1-1/+12
don't show "Command" and "File" as printer options, show "Printer" and "File"; don't show the command to be used for printing. svn path=/trunk/; revision=5986
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer14-103/+39
equivalents for the gtk/ directory. svn path=/trunk/; revision=5930
2002-08-01Fix a few more memleaks found by valgrind (all derivingJörg Mayer2-4/+10
from the get_persconffile_path mess). svn path=/trunk/; revision=5927
2002-07-30From Graeme Hewson:Guy Harris1-1/+61
Ethereal sometimes creates a progress dialog bar and then, if the processing is fast, quickly destroys it. The resulting "flash" can be disconcerting. This set of patches ensures a progress bar is either not created or is displayed for a minimum time. svn path=/trunk/; revision=5916
2002-07-30#ifdef out some variables not used on Windows.Guy Harris1-30/+32
If printing a single packet to a file, don't use the "print to a printer" code for Windows. Only free "print_args.dest" *after* the last usage. svn path=/trunk/; revision=5913
2002-07-29From Joerg Mayer:Guy Harris1-2/+5
gtk/colors.c: Fix a memleak found by valgrind (Note that there are similar bugs in other functions that use the same construct with path!) svn path=/trunk/; revision=5910
2002-07-17From Joerg Mayer:Guy Harris3-15/+3
dftest.c: Remove #if-0-ed includes packet-ieee80211.c, packet-wtls.c, packet-afp.c, packet-wsp.c, packet-wtp.c, ethereal_gen.py: Remove redundant include varargs (already in snprintf.h, and required only for snprintf.h) Remove unused include of snprintf.h from files not using "snprintf()". svn path=/trunk/; revision=5889
2002-07-17Get rid of some "unused variable" and "unused static function" warnings,Guy Harris2-26/+71
and some compile errors in Tethereal, when compiling without libpcap. If libpcap is missing (whether that's detected at compile time or, as on Windows, at run time), don't call any of the "capture_prefs" routines - the routine to create the capture preferences page wasn't called, so the other routines can try to refer to non-existent widgets and other items and crash. Get rid of the stub routines in "capture_prefs()" used when compiling without libpcap, as they're no longer called. svn path=/trunk/; revision=5888
2002-07-07Fields can be up to 2^32-1 bytes long, as they may have come from aGuy Harris1-3/+5
reassembled packet and are thus not limited to the maximum frame size; leave room for a Really Big number in the length item in the status bar, and use "snprintf()" to format the length item Just To Be Sure. svn path=/trunk/; revision=5839
2002-07-07From Liviu Daia <Liviu.Daia[AT]imar.ro>: move "col_init()" call afterGuy Harris1-3/+3
the command-line options are processed, so that we don't crash if you've set the "column.format" preference from the command line. Fix a grammaro in a comment. svn path=/trunk/; revision=5838
2002-07-06From a suggestion by PEN <codes [at] lycos.com>, add the length in bytes toGerald Combs1-5/+12
the status bar when a tree item is selected. svn path=/trunk/; revision=5825
2002-06-28Trim leading and trailing white space from the capture device in theGuy Harris1-3/+12
preference setting, and, if it's empty, treat that as an indication that the user doesn't want to wire in a default device, and just wants the first device in the list chosen. svn path=/trunk/; revision=5773
2002-06-27From Anand V. Narwani: add in two missing files, so they're put into theGuy Harris1-4/+5
source tarball. Update Gerald's e-mail address. svn path=/trunk/; revision=5769
2002-06-24Update the URL for WinPcap.Guy Harris1-2/+2
svn path=/trunk/; revision=5759
2002-06-24As we've done with the hex dump output for printing, use as many digitsGuy Harris1-22/+135
to display the offset as are necessary to show the largest offset - which could be bigger than 65535, so there may be more than 4 digits. svn path=/trunk/; revision=5751
2002-06-22From Devin Heitmueller: give the user a warning if they click "New" inGuy Harris1-1/+8
the filter list editing code without having specified a filter name and string. svn path=/trunk/; revision=5737
2002-06-19Added MS Window printing to ethereal.Jeff Foster4-34/+320
svn path=/trunk/; revision=5711
2002-06-16Handle the "bool" members the same way we handled the members forGuy Harris1-7/+7
enumerated values - "boolp" for pointers, "boolval" for values. svn path=/trunk/; revision=5678
2002-06-16From Chris Waters: don't use "bool" as a variable name or structureGuy Harris1-7/+7
member, as it's a C++ keyword. svn path=/trunk/; revision=5677
2002-06-04From Graeme Hewson: varargs code cleanup in "simple_dialog.c".Guy Harris1-1/+2
svn path=/trunk/; revision=5617
2002-06-04Clean up white space.Guy Harris1-2/+2
svn path=/trunk/; revision=5615
2002-06-04Get rid of the "data_src" member of the "frame_data" structure; put itGuy Harris4-62/+46
in the "packet_info" structure instead, as we don't need a pointer for every single frame in the capture file, just for each frame for which we currently have an open "epan_dissect_t". svn path=/trunk/; revision=5614
2002-05-30Don't assume that just because a purported font name begins with "-"Guy Harris1-4/+23
it's an XLFD font name. svn path=/trunk/; revision=5596
2002-05-27Clean up the data structures for the color filter code a bit. The oldGuy Harris4-168/+173
"colfilter" structure contained items of use only when the colorizing dialog was up, so make the items in it private to "gtk/color_dlg.c". Make the "Edit" and "Delete" buttons sensitive only when a row is selected, and make the "Up" and "Down" buttons sensitive only when a row is selected *and* that row has somewhere to move in the specified direction. svn path=/trunk/; revision=5575
2002-05-24Get rid of an unused variable.Guy Harris1-2/+1
svn path=/trunk/; revision=5540
2002-05-23Save the whole capture device name in the preferences file. UnderGerald Combs1-7/+4
Windows, this saves the description + device name. svn path=/trunk/; revision=5534