aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
AgeCommit message (Collapse)AuthorFilesLines
2003-08-05From Greg Morris: add support for case-insensitive full-text searches.Guy Harris1-6/+24
svn path=/trunk/; revision=8132
2003-08-01From Chris Heath: fix up the check for printable ASCII done on WindowsGuy Harris1-2/+2
not to include DEL as printable ASCII. Also change the check in strutil.c to do it by redefining "isprint()", as is done in "gtk/gtkglobals.h", rather than by #ifdeffing the point at which the test is done. svn path=/trunk/; revision=8118
2003-07-25Fix signed/unsigned comparison warnings.Gilbert Ramirez2-8/+12
svn path=/trunk/; revision=8084
2003-07-25Add to the fundamental types passed between the scanner and the parser.Gilbert Ramirez1-2/+2
Besides "STRING", there is now "UNPARSED_STRING", where the distinction is that "STRING" was a double-quoted string and "UNPARSED_STRING" is just a sequence of characters that the scanner didn't know how to scan/parse, so it's up to the Ftype to parse it. This gives us more flexibility and prepares the dfilter parsing engine for the upcoming addition of the "contains" operator. In the process of doing this, I also re-did the double-quoted string support in the scanner, so that instead of the naively-simple support we used to have, double-quoted strings now can have embedded dobule-quotes, embedded octal sequences, and embedded hexadecimal sequences: "\"" embedded double-quote "\110" embedded octal "\x48" embedded hex Enhance the dfilter unit test script to be able to run a single collection of tests instead of having to run all of them all the time. svn path=/trunk/; revision=8083
2003-07-22From Greg Morris: code to support searches for text or raw binary dataGuy Harris1-16/+119
in a frame in Find Frame. svn path=/trunk/; revision=8067
2003-07-22Add two preferences to control ADNS, one to enable/disable it and one toGerald Combs2-5/+47
set its concurrency level. Fix an ADNS queueing bug. svn path=/trunk/; revision=8063
2003-07-19In packet_list_button_pressed_cb :Olivier Abad1-1/+3
we must check if the event occured in the clist_window (because the x,y pixel positions of the event are relative to this window), before calling gtk_clist_get_selection_info() Fixes debian bug #199763 svn path=/trunk/; revision=8053
2003-07-19In set_plist_sel_browse : change broken logic when determining if theOlivier Abad1-12/+10
mode has changed. svn path=/trunk/; revision=8051
2003-07-18Various fixes related to GTK2 :Olivier Abad3-12/+14
- give the focus to the packet_list when a capture file is opened, and each time we change the selection in the packet list (it seems that the tree view has the focus if we don't do this) ; - in set_plist_sel_browse() : it seems that packet_list->selection_mode is always 0 in GTK2 so we can't use it to determine the current mode. Use a static variable instead. This should fix the second part of debian bug #199763 svn path=/trunk/; revision=8045
2003-07-04From Lars Roland: load WinPcap *before* constructing the informationGuy Harris1-9/+9
about library versions. svn path=/trunk/; revision=7964
2003-06-28From Ian Schorr, limit the size of the (INFO) columns to prevent it from ↵Ronnie Sahlberg1-2/+11
becoming thousands of pixels wide. Temporary fix until someone perhaps gets rid of the autoresize of columns completely. svn path=/trunk/; revision=7947
2003-06-25Service Response Time measurements and statistics for Fibre ChannelRonnie Sahlberg3-2/+262
svn path=/trunk/; revision=7932
2003-06-22Ringbuffer rework.Laurent Deniel1-8/+19
Almost completely rewritten in order to: - be able to use a unlimited number of ringbuffer files 0 specified with -b argument or in the GUI, means that the number of file is unlimited. else the maximum number of ring buffer files is arbitrarily set to 1024. - close the current file and open (truncating it) the next file at switch - set the final file name once open (or reopen) - avoid the deletion of files that could not be truncated (can't arise now) and do not erase empty files The idea behind that is to remove the limitation of the maximum # of ringbuffer files being less than the maximum # of open fd per process and to be able to reduce the amount of virtual memory usage (having only one file open at most) or the amount of file system usage (by truncating the files at switch and not the capture stop, and by closing them which makes possible their move or deletion after a switch). svn path=/trunk/; revision=7912
2003-06-22From Lars Roland: Fix the service response time functions to work with GTK2.Gerald Combs4-15/+26
svn path=/trunk/; revision=7911
2003-06-21"gtk_window_set_default_size()" takes a GtkWindow *, not a GtkWidget *,Guy Harris3-6/+6
as its first argument. svn path=/trunk/; revision=7909
2003-06-21Cosmetic bug.Ronnie Sahlberg1-4/+4
When creating a new CList to display SRT stats, make the DECEND arrow for the second column be displayed since this is how the table will be sorted by default svn path=/trunk/; revision=7908
2003-06-21Update SMB statistics tap to use the new CList helper routines.Ronnie Sahlberg1-285/+62
svn path=/trunk/; revision=7907
2003-06-21Make the default sorting for the list be column 2 in descending order so weRonnie Sahlberg1-9/+12
get the rocedures with the most number of calls at the top. Fix a bug added in previous checkin. When the table can be sorted in different ways than just the procedure number sorted in ascending order, the row for a specific procedure may change everytime we drawi/sort the table. Add code to keep track of which row a procedure is currently positioned at in the list so that we statistics are added to the correct entry. svn path=/trunk/; revision=7906
2003-06-21Update the ServiceResponseTime helper routines so that the columnsRonnie Sahlberg1-4/+141
can be sorted. "borrowed" lots of code for this from gtkclist.c Columns 0,1 sort in ascending order by default Columns 2-5 sort in ascending order by default svn path=/trunk/; revision=7905
2003-06-21Update ONC-RPC response time tap to use the new helper functionRonnie Sahlberg1-183/+21
that displays the data using a CList. Renamed RTT to SRT (Service Response Time) svn path=/trunk/; revision=7904
2003-06-21Break out the code for the ahndling of the Service Response Time (formerly ↵Ronnie Sahlberg5-185/+321
known as RoundTripTime) table and change the table into a scrollable CList. As a first conversion to use the helper routines, convert DCERPC SRT statistics to use the new interface. This prevents some interfaces (SAMR/LSA) that contains a huge number of procedures from creating a huge table that does not fir on the screen. Later changes to the helpers may be to make the different columns sortable or to hide those procedures that has not been seen in the capture. svn path=/trunk/; revision=7903
2003-06-14Define GLIB_CFLAGS and GTK_CFLAGS variables in config.nmake (based onGuy Harris1-4/+2
variables the user configures - the user isn't expected to change GLIB_CFLAGS or GTK_CFLAGS, and there's a comment nothing that users shouldn't have to do so), which contain the appropriate "/I" flags for building stuff that requires only GLib, and stuff that required GTK+ and GLib, respectively, and use those macros in the Makefile.nmake files. svn path=/trunk/; revision=7884
2003-06-09Clean up the usage message a bit (using the convention, adhered to by atGuy Harris1-10/+8
least some UNIX utilities, of listing all the flags with no arguments in a single lump, and then listing the ones with arguments individually; also, make lines as long as possible, as long as they fit in 80 columns). svn path=/trunk/; revision=7815
2003-06-08Add a "--enable-threads" option, which allows to build the gtk+ v2Olivier Abad1-6/+6
ethereal with or without threads. The default is to use threads. (see http://www.ethereal.com/lists/ethereal-dev/200210/msg00111.html and http://www.ethereal.com/lists/ethereal-dev/200306/msg00061.html). svn path=/trunk/; revision=7807
2003-05-28Use freopen() instead of worrying about whether a particular FILE pointer isGerald Combs1-16/+3
NULL. svn path=/trunk/; revision=7754
2003-05-27Make the RTP tap analysis code use create_tempfile() instead of tmpnam().Gerald Combs1-6/+9
svn path=/trunk/; revision=7748
2003-05-20From Miha Jemec: clean up and simplify the RTP dissector and tap code.Guy Harris1-719/+326
svn path=/trunk/; revision=7701
2003-05-16Squelch some compiler complaints.Guy Harris1-2/+2
svn path=/trunk/; revision=7682
2003-05-15Implement a ring buffer switch duration:Laurent Deniel2-7/+116
when the new "Rotate capture file every n second(s)" checkbox or the -b <# of file>[:<duration>] argument are used, [t]ethereal will skip to the next ring buffer file if the specified duration has elapsed (even if the specified capture size is not reached). This is useful when you want to have separate capture files per hour or day for instance. I let the autostop filesize parameter mandatory (i.e. the "rotate capture file after n kilobytes") but this could be no longer strictly necessary when that new feature is used ... Another point: it might be interesting to really truncate the file at the switch and not the closure ... According to user comments and my own real case tests, I might plan to enhance this point and others (still ring buffer related) in the future. svn path=/trunk/; revision=7678
2003-05-15From Richard Urwin:Guy Harris3-96/+258
add support for a system-wide color filter file; fix a bug where "read_filters()" didn't close the file handle. Use the "get_datafile_path()" routine he added to construct the pathname of the Diameter directory, the global preferences file, and the manuf file. svn path=/trunk/; revision=7677
2003-05-04Add support for asynchronous DNS updates using the GNU ADNS library.Gerald Combs1-1/+6
Support can be enabled at configure time by using "--with-adns=DIR". If support is enabled, async queries happen whenever host name resolution is enabled. Do we need a separate preference for async queries? Currently, only IPv4 reverse queries are supported. I can add IPv4 forward lookup support, but I don't have any way to test IPv6 queries. svn path=/trunk/; revision=7640
2003-05-03Rename "proto_alloc_dfilter_string()" toGuy Harris2-18/+18
"proto_construct_dfilter_string()", to more accurately reflect what it does. Give it, and "proto_can_match_selected()", an "epan_dissect_t *" argument, which replaces the raw data pointer argument to "proto_construct_dfilter_string()". For fields that don't have a type we can directly filter on, we don't support filtering on the field as raw data if: the "epan_dissect_t *" argument is null; the data source tvbuff for the field isn't the tvbuff for the "epan_dissect_t" in question (i.e., it's in the result of a reassembly, and "frame[N:M]" can't get at it). Trim the length the raw data in the case of such a field to the length of the tvbuff for the "epan_dissect_t" in question, so we don't go past it. Fetch the raw data bytes to match from that tvbuff. Have "proto_construct_dfilter_string()" return a null pointer if it can't construct the filter string, and have "protocolinfo_packet()" in the tap-protocolinfo tap ignore a field if "proto_construct_dfilter_string()" can't construct a filter string for it - and have it pass NULL as the "epan_dissect_t *", for now. If somebody decides it makes sense to dump out a "frame[N:M] =" value for non-registered fields, it can be changed to pass "edt". svn path=/trunk/; revision=7635
2003-04-27From Lars Roland: add routines to use when creating statistics windowsGuy Harris3-16/+130
(at least with GTK+ 1.2[.x]), and make the MGCP statistics routine use them. The routines use a GtkCList and make it scrollable. svn path=/trunk/; revision=7586
2003-04-25From Lars Roland:Guy Harris6-134/+244
Filter dialog for the MGCP statistics tap. Routines for building GUI table displays for statistics taps. Use the timestats.c routines in the SMB statistics tap. svn path=/trunk/; revision=7561
2003-04-25Fix a compiler warning.Guy Harris1-2/+2
svn path=/trunk/; revision=7556
2003-04-24Fix a comment.Guy Harris1-2/+2
svn path=/trunk/; revision=7554
2003-04-24Make the dialog box "transient for" the main window, as we do with otherGuy Harris1-7/+50
pop-up dialogs. If thee's already one such dialog, and the user asks for another one, reactivate the old one (so it gets un-minimized if necessary), don't just raise it. Put the "Create Stat" button in a box, so it doesn't widen to the full width of the window, and add a "Cancel" button to dismiss the dialog box. Arrange that <ESC> dismisses the dialog box, and that typing <Enter> in the filter dialog box activates the dialog box. svn path=/trunk/; revision=7553
2003-04-24From Didier Gautheron: the files being processed by make-tapreg-dotc areGuy Harris1-2/+2
in srcdir, not top_srcdir. svn path=/trunk/; revision=7551
2003-04-23Change copyright date to 2003.Laurent Deniel1-2/+2
svn path=/trunk/; revision=7545
2003-04-23Make "register_tap_listener()" return NULL on success and a "GString *"Guy Harris8-38/+55
referring to a GString containing an error message on failure, and don't have it print anything on failure. If it fails, have its Tethereal-tap callers print an error message before exiting, and have its Ethereal callers pop up a dialog box with the error (except in cases where the failure is guaranteed not to be the user's fault, and where we exit, in which case we just print an error message before we exit). In all cases, the error message includes the text of the GString. Fix a scanf format string in the DCE RPC statistics Ethereal tap, so that it properly skips the comma before the filter string. Fix some Ethereal error messages not to say "tethereal". svn path=/trunk/; revision=7542
2003-04-23Have "register_tap_menu_item()" create submenus as necessary for a menuGuy Harris15-248/+110
item. Convert all Ethereal (GUI) taps to use "register_tap_menu_item()" rather than having hardcoded menu items in "gtk/menu.c". svn path=/trunk/; revision=7541
2003-04-23Allow taps to have menu item registration routines; the menu itemGuy Harris11-64/+34
registration routines, for taps with menu items (taps that can be run from the "Tools->Statistics" menu), create the menu item for the tap. "make-tapreg-dotc" constructs a "register_all_tap_menus()" function that calls all the tap menu item registration routines it finds, and Ethereal calls that routine after the main window has been constructed (so that the main menu exists, as the menu items are added to it). (Tethereal doesn't call it.) Get rid of the "menu" and "menu_init" arguments to "register_ethereal_tap"; the menu item is registered in the tap's menu item registration routine, not in its main registration routine. Have the RTP GUI tap register its menu item that way, rather than by having it compiled into "gtk/menu.c". (We're not ready yet to have taps whose menu items are under a submenu register themselves in that fashion, as "register_tap_menu_item()" can't yet create submenus.) svn path=/trunk/; revision=7540
2003-04-23Add a routine to create a new menu item under "/Tools/Statistics" forGuy Harris2-3/+49
taps. (It has to be called after we've created the main menu, but GUI taps are registered before that so that they can be referred to by command-line arguments, so that routine will only be usable if we have a "register menu item" routine for all GUI taps.) Disable the entire "/Tools/Statistics/MGCP" menu item, not just the "RTD" item under it, if we don't have an "mgcp" tap. svn path=/trunk/; revision=7539
2003-04-22Update to smb rtt stat for ethereal so that we can provide a filter for whichRonnie Sahlberg1-3/+66
packets we have data. Similar to oncrpc rtt stats smb rtt stats will also open a small window where a filter string can be specified. Only those packets matching the filter will be considered in calculating the rtt statistics. svn path=/trunk/; revision=7528
2003-04-22The main menu "/Display/{Match,Prepare}" menu items, and the tree viewGuy Harris1-8/+4
"{Match,Prepare}" pop-up menu items, should be enabled only if we have a field selected. The main menu item "/Tools/Statistics" should be enabled only if we have a capture. The packet list "Show Packet In New Window" pop-up menu item should be enabled only if there's a packet selected. svn path=/trunk/; revision=7523
2003-04-22"gtk_item_factory_get_widget()" returns, for a menu item with a submenu,Guy Harris1-4/+17
the submenu widget, not the menu item widget. For items with submenus, set the sensitivity on the menu item widget, not the submenu widget, so that the menu item is grayed out when not sensitive. svn path=/trunk/; revision=7522
2003-04-22Have "set_menu_sensitivity()" take, as an argument, a pointer to theGuy Harris1-98/+130
GtkItemFactory for the item it's modifying, with NULL meaning "all pop-up menus". Use the full path for the menu item in all such calls; have separate calls for the main menu item and pop-up menu items as necessary. svn path=/trunk/; revision=7521
2003-04-21From Brad Hards: don't mention the "Add Expression" button in theGuy Harris1-6/+12
message box popped up if you try to add a new capture filter but haven't specified a filter name or string, as there is no such button for capture filters. svn path=/trunk/; revision=7517
2003-04-16From Lars Roland:Guy Harris5-3/+399
Add Response-Time statistics for each known mgcp message-type. Fix a few bugs and remove trailing whitespace. Use "gdouble" for printing time-values and calculating the average. It is easier to use and shouldn't overflow on big trace files like "guint32". Move some functions for time statistics into the new file timestats.c in the main directory. This code may be useful in the rpc and smb rtt-taps as well. svn path=/trunk/; revision=7469
2003-04-16Pull the stuff done in "dissect_packet()" to initialize a column_infoGuy Harris1-2/+2
structure into its own routine; rename "col_init()" to "col_setup()", and call the new routine "col_init()". svn path=/trunk/; revision=7467