aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
Commit message (Collapse)AuthorAgeFilesLines
* Add an item to the "File/Print" dialog box to ask that the full hex dataGuy Harris1999-09-292-15/+37
| | | | | | | | | | | | | of the packet be printed (this is only done if "Print detail" is selected; it should be grayed out of "Print summary" is selected). If that item is selected, suppress the hex printing of uninterpreted data items in the protocol tree. Move some GTK+ keys not used outside of "gtk/print_dlg.c" from "gtk/keys.h" into "gtk/print_dlg.c". svn path=/trunk/; revision=736
* Added name resolution in GUI part:Laurent Deniel1999-09-261-3/+12
| | | | | | | | | | | | | | | | | | | - Capture->Start->"Active name resolution" Allows the user to turn on/off name resolution during a live capture. - Display->Options->"Name resolution" Turn on/off name resolution for the displayed data (or during the -S mode). E.g. clicking on a packet captured with resolution disabled will resolve names in the detailed list if this option is set. And applying or resetting a display filter allows the update of the packet list as well. svn path=/trunk/; revision=726
* Packaging changesGilbert Ramirez1999-09-241-27/+0
| | | | svn path=/trunk/; revision=715
* Close the capture file in "do_capture()", right before unlinking theGuy Harris1999-09-231-1/+5
| | | | | | | | | | | | | | | | | | current capture file if it's a temporary file, out of paranoia (so that we don't get into a state where we have a capture file open but unlinked - it's probably harmless to be in that state, as the file will remain around until close, modulo NFS fun, and we may never be in that state for very long, but I'd rather have it obviously stated in the code). Remove the close in "capture()", and put one before the other call to "capture()", in "main_realize_cb()" (is that call necessary, e.g. if you pass "-r <filename>" *and* "-k", for some perverse reason, as command-line arguments?). If "cf.save_file" is non-null, free it before setting it, regardless of whether it refers to a temporary file name or not. svn path=/trunk/; revision=712
* If we forcibly turn off "fork_mode" if the user doesn't enable "UpdateGuy Harris1999-09-233-12/+9
| | | | | | | | | | | list of packets in real time" in the "Capture/Start" dialog box, "ethereal -F" won't work - you get your choice of non-forked capture or "-S". Don't have "fork_mode" track "sync_mode"; instead, in those places where we check for "fork_mode", check for "sync_mode" as well. svn path=/trunk/; revision=711
* Move the toolkit-independent code to create a temporary capture file,Guy Harris1999-09-232-100/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and to fork off and run a separate copy of "ethereal" for "-S" and "-F" captures or just call "capture()" otherwise, out of "gtk/capture_dlg.c" and into a routine in "capture.c". If the attempt to create said temporary capture file fails, pop up a dialog box and don't do the capture. Have the child capture process send a message upstream after it either successfully starts the capture and syncs out the header of the capture file, or fails to start the capture; the message indicates whether it succeeded or failed, and, if it failed, includes a failure message. This: avoids the use of a signal, and thus means we don't have to worry about whether to capture the signal, or whether to start or stop capturing depending on whether this particular capture is in sync mode or not; lets us pop up the message box for the error in the parent process if we're in sync mode, rather than doing it in the child, which didn't work well. Add a check button to the Capture/Start dialog box, so that we can control, for each capture, whether it's to be done in sync mode or not. svn path=/trunk/; revision=708
* This commit contains support for reading capture files compressed usingAshok Narayanan1999-09-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | gzip. The zLib library is used for this purpose. If zLib is not available (or it's use is disabled by the --disable-zlib option to configure), you can still compile Ethereal but it will be unable to read compressed capture files. IMPORTANT: Now all file accesses to capture files should be done through special macros. Specifically, for any use of the following functions on capture files, replace them. The arguments for the right-side functions are exactly the same as for the original stdio functions. fopen file_open fdopen filed_open fread file_read fwrite file_write fseek file_seek fclose file_close ferror file_error svn path=/trunk/; revision=695
* Fixed a bug found by Derek W Poon <dpoon@uclink.berkeley.edu>, where deletedGerald Combs1999-09-191-2/+2
| | | | | | filter list items were improperly removed from the filter list. svn path=/trunk/; revision=690
* Peter Torvals' Internet Cache Protocol dissector.Guy Harris1999-09-141-1/+2
| | | | svn path=/trunk/; revision=677
* Make "Expand all levels" and "Print as displayed" radioGuy Harris1999-09-122-11/+41
| | | | | | | | buttons insensitive if "Print summary" is selected, and make them sensitive if "Print detail" is selected, as they apply only to the "print detail" output. svn path=/trunk/; revision=672
* Add a "Expand all levels"/"Print as displayed" pair of radio buttons toGuy Harris1999-09-123-26/+65
| | | | | | | | | | the "File/Print" dialog box; "Expand all levels" means that all levels of the protocol tree should be printed, while "Print as displayed" means that only those levels shown in the display should be printed. Free the table of column widths once printing is done. svn path=/trunk/; revision=671
* Add summary-vs-detail radio buttons to the print dialog box; detailGuy Harris1999-09-123-31/+45
| | | | | | | | | | | | | | | | | | | | | 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
* Collapse/Expand All protocol tree added in Display menu.Laurent Deniel1999-09-115-7/+44
| | | | svn path=/trunk/; revision=660
* "capture.c" doesn't do socket "ioctl"s any more - the code to do that isGuy Harris1999-09-111-1/+14
| | | | | | | | | | | | now in "gtk/capture_dlg.c" - so it doesn't need to include <sys/sockio.h> on, for example, Solaris... ...but "gtk/capture_dlg.c" does need to include it. "gtk/capture_dlg.c" also may need to include "snprintf.h", as it uses "snprintf()". svn path=/trunk/; revision=655
* Give "globals.h" an RCS ID and copyright/GPL notice.Guy Harris1999-09-101-24/+1
| | | | | | | | | | | | | | | | | Move some defines that would be used even by a non-GTK+-based Ethereal from "gtk/main.h" to "globals.h". Remove the byte-order #defines from "packet.h", as they're now in "globals.h" (having been moved there from "gtk/main.h"). Fix up some files that use those #defines to include "globals.h". "resolv.c" doesn't use any GTK stuff, so it needn't include <gtk/gtk.h> nor "gtk/main.h" - it only did so to get the byte-order #defines for the benefit of "packet-ipv6.h", and "packet-ipv6.h" now includes them itself. svn path=/trunk/; revision=649
* We need to catch a "window delete" event for the preferences dialog boxGuy Harris1999-09-105-28/+56
| | | | | | | | | | | | | | | | | | | | | - 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
* Make stuff used only in "filter_prefs.c" static to it.Guy Harris1999-09-101-4/+4
| | | | svn path=/trunk/; revision=646
* Put RCS IDs (and a copyright notice and GPL notice) in several files,Guy Harris1999-09-097-6/+130
| | | | | | and fix up the introductory comment on some other files. svn path=/trunk/; revision=640
* Put in an RCS ID (and a copyright notice and GPL notice; unfortunately,Guy Harris1999-09-091-0/+24
| | | | | | | | this causes "Makefile.in" to have two GPL notices - "Makefile.in" and the "Makefile" generated from it are generated files, so maybe that's OK). svn path=/trunk/; revision=639
* I forgot to include this file move in my last commit.Gilbert Ramirez1999-09-092-0/+506
| | | | svn path=/trunk/; revision=637
* More shuffling of GTK-related routines to gtk subdirectory.Gilbert Ramirez1999-09-0911-13/+781
| | | | svn path=/trunk/; revision=636
* More shuffling of GTK-related files to gtk subdirectory.Gilbert Ramirez1999-09-096-3/+1245
| | | | svn path=/trunk/; revision=635
* Moved GTK-dependent routines for file dialogues, print dialogues, printGilbert Ramirez1999-09-018-1/+1072
| | | | | | preferences, and menus to gtk subdirectory. svn path=/trunk/; revision=623
* Changed gtk subdirectory to use only Makefile.am, and not have a configureGilbert Ramirez1999-08-315-1/+4
| | | | | | script. The configuration is faster this way. Also, moved version to 0.7.3. svn path=/trunk/; revision=614
* A slightly cleaner version - hide the "if it's the last row, the elementGuy Harris1999-08-281-88/+28
| | | | | | | | | is pointed to by 'row_list_end', otherwise use 'g_list_nth()'" stuff inside a macro. Use that macro in place of an additional "g_list_nth()" call. svn path=/trunk/; revision=603
* Touched these files to make 'make dist' happy.Gilbert Ramirez1999-08-274-0/+0
| | | | svn path=/trunk/; revision=595
* Added gtk subdirectory, with patched gtkclist.c in it. We can use thisGilbert Ramirez1999-08-277-0/+9254
optimized gtkclist until Guy's changes appear in the offical GTK+. svn path=/trunk/; revision=593