aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
AgeCommit message (Collapse)AuthorFilesLines
2005-08-24EVERYTHING IN THE BUILDBOT IS GOING TO BE RED!!! Sorry! Ulf Lamping13-95/+77
I've done more than a day to change the timestamp resolution from microseconds to nanoseconds. As I really don't want to loose those changes, I'm going to check in the changes I've done so far. Hopefully someone else will give me a helping hand with the things left ... What's done: I've changed the timestamp resolution from usec to nsec in almost any place in the sources. I've changed parts of the implementation in nstime.s/.h and a lot of places elsewhere. As I don't understand the editcap source (well, I'm maybe just too tired right now), hopefully someone else might be able to fix this soon. Doing all those changes, we get native nanosecond timestamp resolution in Ethereal. After fixing all the remaining issues, I'll take a look how to display this in a convenient way... As I've also changed the wiretap timestamp resolution from usec to nsec we might want to change the wiretap version number... svn path=/trunk/; revision=15520
2005-08-24From Graeme HewsonRonnie Sahlberg1-2/+3
Fix for infinite loop of configure events that were present for early GTK 2.4 in addition to 2.2 svn path=/trunk/; revision=15517
2005-08-22Add a "time_stat_init()" routine to initialize the fields of aGuy Harris2-63/+34
"timestat_t". Move "nstime_to_msec()" to "epan/nstime.c", as it has nothing to do with a "timestat_t". Use structure assignment when possible. Fix the "addtime()" macro and use it in "time_stat_update()". Use "timestat_t"s, and the routines to manipulate them, in the service response time table code. svn path=/trunk/; revision=15509
2005-08-21Use "g_strdup_printf()" rather than formatting into a fixed-lengthGuy Harris1-46/+41
buffer and "g_strdup()"ing it. Use the nstime.c routines to compute time deltas and to add up times. Don't add rows to the CList until a procedure gets a non-zero call count, so only the ones with non-zero call counts are displayed (and especially so that procedure numbers not corresponding to real procedures aren't displayed!). Ethereal requires 64-bit integer support, so don't bother checking whether we have it. Use the right format for 64-bit integers. svn path=/trunk/; revision=15506
2005-08-21Use the tap_dfilter_dlg mechanism.Guy Harris1-116/+10
svn path=/trunk/; revision=15504
2005-08-21Use the tap_dfilter_dlg code.Guy Harris1-116/+10
svn path=/trunk/; revision=15503
2005-08-21As per a suggestion by Ulf Lamping, rename gtk_*.[ch] to gui_*.[ch], soGuy Harris52-54/+54
that it doesn't appear to be part of GTK+. svn path=/trunk/; revision=15501
2005-08-21The protocol item in the protocol tree will have a gray background now, ↵Ulf Lamping1-0/+39
which makes it much better visible. Add some more optional flags to the protocol items, so more "special cases" can be marked in the protocol tree. New flags: /** The protocol field has a bad checksum */ FI_CHECKSUM_ERROR /** The protocol field has an unusual sequence (e.g. TCP window is zero) */ FI_SEQUENCE_WARNING /** The protocol field has a bad sequence (e.g. TCP segment is lost) */ FI_SEQUENCE_ERROR svn path=/trunk/; revision=15499
2005-08-21"gtk_tap_dfilter_dlg_cb()" is no longer used outsideGuy Harris14-284/+27
gtk/tap_dfilter_dlg.c; don't export it. That means that gtk/tap_dfilter_dlg.h is no longer useful; get rid of it. Rename "gtk_tap_dfilter_dlg_cb()" to "tap_dfilter_dlg_cb()", as it's inside GTK+-specific code, so there's no need to distinguish it from non-GTK+ callbacks. Update some comments to reflect the name change and the new API for registering tap_dfilter_dlg stats. Make the AFP and SMB stats use the gtk/tap_dfilter_dlg.c stuff. svn path=/trunk/; revision=15496
2005-08-21Have "register_dfilter_stat()" add "..." to the menu item, as all menuGuy Harris8-8/+16
items registered with it pop up a dialog box before displaying the stat. Don't pass a name with "..." to it. Put "..." into other menu items that pop up a dialog box before displaying the stat; remove "..." from other menu items that don't. svn path=/trunk/; revision=15495
2005-08-21Add a "register_dfilter_stat()", to register stats that take a displayGuy Harris62-127/+134
filter as an argument on the command line and have a dialog box to enter the display filter through the GUI. Use it for all stats using "gtk_tap_dfilter_dlg_cb()". Add a top-level "stat_menu.h" file to declare "REGISTER_STAT_GROUP_E" for the benefit of the declaration of "register_dfilter_stat()" in the top-level "tap_dfilter_dlg.h". Rename the "stat_menu.h" in the gtk directory to "gtk_stat_menu.h", so as not to have two headers with the same name. Get rid of headers not declaring any functions not being used in the module. svn path=/trunk/; revision=15493
2005-08-20The routines registered with "register_stat_cmd_arg()" *are* called ifGuy Harris5-83/+123
you use the "-z" command-line options for them; make them pop up the appropriate windows. Move the calls to "register_stat_cmd_arg()" after the code to register the tap, just as the calls to "register_stat_menu_item()" are done after registering the tap. Use "g_strdup_printf()" rather than formatting into a fixed-length buffer and "g_strdup()"ing that buffer. svn path=/trunk/; revision=15489
2005-08-20We already have a tap that registers as a command-line stat under theGuy Harris1-10/+0
name "rtp"; we don't need another one, especially given that "rtp_stream.c" doesn't directly implement a stat (note that it doesn't register a menu item). svn path=/trunk/; revision=15488
2005-08-20Rename epan/stat.[ch] to epan/stat_cmd_args.[ch] - it only deals withGuy Harris48-48/+48
implementing the "-z" command-line arguments, it doesn't deal with *all* issues for stats. svn path=/trunk/; revision=15483
2005-08-20Explain in more detail the split between the stuff in ui_util.h and inGuy Harris2-3/+5
gtk/gui_utils.h. svn path=/trunk/; revision=15482
2005-08-20And if we add a file, add it to Makefile.am as well Jörg Mayer1-0/+1
svn path=/trunk/; revision=15477
2005-08-20- Include the .h files in their .c files.Jörg Mayer1-0/+2
- Remove epan/dissectors/packet-sna.h, it isn't used anywhere. svn path=/trunk/; revision=15475
2005-08-20One file missed in last checkinJörg Mayer1-1/+2
svn path=/trunk/; revision=15472
2005-08-20- Declare some functions staticJörg Mayer35-1424/+1457
- Add plugins_dlg.h - Include .h files in their respective .c files - Include .h and remove extern declarations in .c files - set eol-style and keywords on gui_utils.[hc] svn path=/trunk/; revision=15471
2005-08-20- Include ../ui_util.h into files that implement functions declard inJörg Mayer3-1/+4
ui_util.h - Replace one instance of ui_util.h by gui_utils.h svn path=/trunk/; revision=15468
2005-08-20renamed ui_util.c/.h to gui_utils.c/.h to prevent confusion with identical ↵Ulf Lamping82-1436/+1430
named ui_util.h in / dir svn path=/trunk/; revision=15465
2005-08-20For AFP requests, add in the frame with the (last part of the) reply, ifGuy Harris2-0/+319
possible, and, for AFP replies, add in the frame with the request and the time between those two frames. Have AFP per-request-type RTT statistics, similar to SMB's statistics. svn path=/trunk/; revision=15456
2005-08-20remove sprintf from mtp3Ronnie Sahlberg1-3/+5
svn path=/trunk/; revision=15451
2005-08-19Add APIs to Wiretap to return the file of the size as supplied by the OSGuy Harris2-20/+5
(so if the file's gzipped, it's *NOT* the size of the file after uncompressing), and an approximation of the amount of that data read sequentially so far. Use those for various progress bars and the like. Make the fstat() in the Ascend trace reader directly use wth->fd, as it's inside Wiretap; that gets rid of the last caller of wtap_fd() (as we're no longer directly using fstat() or lseek() in Ethereal), so get rid of wtap_fd(). svn path=/trunk/; revision=15437
2005-08-19Move the stats.[ch] stuff into epan, so plugins can use it.Guy Harris47-47/+47
svn path=/trunk/; revision=15429
2005-08-19Move the APIs for registering and processing "-z" command-line argumentsGuy Harris61-226/+272
and "Statistics" menu items into "stat.h" and "stat.c", to separate them from the core tapping APIs. A tap could conceivably not register as a "-z" command-line argument or "Statistics" menu item, and a stat could conceivably not be implemented as a tap, and dissectors that implement tapping points don't need the UI-related stuff from "stat.h", they just want the tap-related stuff in <epan/tap.h>. svn path=/trunk/; revision=15427
2005-08-19From Michael Lum:Ronnie Sahlberg4-15/+13
Statistics data structure was not being passed to the draw routine. svn path=/trunk/; revision=15425
2005-08-19Include <string.h> to declare "strrchr()".Guy Harris1-16/+18
Clean up indentation. svn path=/trunk/; revision=15417
2005-08-19Have "f_datalen" keep track of the number of bytes of uncompressed fileGuy Harris1-10/+10
data, so that "f_len" still keeps the size of the underlying file (which is necessary in order to make the progress bar when files are being read work correctly). svn path=/trunk/; revision=15415
2005-08-18fix #305: don't get file creation date/time of the file but just use the ↵Ulf Lamping1-2/+34
filename svn path=/trunk/; revision=15413
2005-08-18init the file set submenu items, so that the next and previous file items ↵Ulf Lamping1-0/+1
are disabled by default svn path=/trunk/; revision=15410
2005-08-17strdup -> g_strdup and alikeUlf Lamping1-3/+3
svn path=/trunk/; revision=15392
2005-08-16Move SVNVERSION handling into version_info. That way, we won't haveJörg Mayer2-13/+5
to recompile tethereal.o etc each time the svn version has changed, relinking is sufficient. I'm not sure what to do about mergecap, as it currently doesn't link against version_info, so it's "overhead" either way. svn path=/trunk/; revision=15371
2005-08-14Some 'no previous declararion' warning fixesJörg Mayer1-4/+4
svn path=/trunk/; revision=15355
2005-08-12Add beginning of seasonal allocation in addition to the existing ephemeral ↵Ronnie Sahlberg1-0/+1
ones. svn path=/trunk/; revision=15301
2005-08-10removed tons of MSVC const related warnings.Ulf Lamping19-47/+47
This might at some places interfere with the changes for gcc4, we might have to negotiate in that case :-) Please note that a lot of these warnings were GTK1.x related only! svn path=/trunk/; revision=15286
2005-08-10don't warn the user about the WinPcap 3.1 release version as being unknownUlf Lamping1-1/+2
svn path=/trunk/; revision=15283
2005-08-09"g_locale_to_utf8()" returns a "gchar *", and the string it returns isGuy Harris1-1/+1
dynamically allocated. Don't assign its result to "const gchar *". svn path=/trunk/; revision=15266
2005-08-08fix some MSVC const warningsUlf Lamping5-7/+7
svn path=/trunk/; revision=15263
2005-08-06Last set of char -> const char trivial warning fixes.Jörg Mayer9-45/+45
svn path=/trunk/; revision=15244
2005-08-06Squelch more const pointer warnings.Guy Harris1-1/+1
svn path=/trunk/; revision=15242
2005-08-06Make some structure members that are always set from mallocated data notGuy Harris1-3/+2
"const" pointers, so that we don't get warnings when we free the data they point to. svn path=/trunk/; revision=15241
2005-08-06Squelch more const warnings (and fix some memory leaks that found).Guy Harris38-150/+140
_U_-ify some unused arguments, rather than assigning them to themselves. Un-constify one variable that gets assigned a mallocated pointer. Clean up indentation. svn path=/trunk/; revision=15236
2005-08-05replace malloc and alike calls by their GLib pendants -> g_mallocUlf Lamping4-63/+63
svn path=/trunk/; revision=15232
2005-08-05have the definition of init_hostlist_table *ACTUALLY* match its declaration.Luis Ontanon1-1/+1
svn path=/trunk/; revision=15229
2005-08-05have the definition of init_hostlist_table match the declaration.Luis Ontanon1-1/+1
svn path=/trunk/; revision=15228
2005-08-05More char -> const char warning fixes.Jörg Mayer60-155/+154
Removed (very few) casts that only change the warning message but don't remove it (with gcc-4). svn path=/trunk/; revision=15227
2005-08-02Last set of trivial fixes for "no previous declaration" warnings.Jörg Mayer1-5/+5
svn path=/trunk/; revision=15191
2005-08-02add some minor comments around the GTK main loopUlf Lamping1-0/+2
svn path=/trunk/; revision=15189
2005-08-02Some warning fixes for "no previous declaration"Jörg Mayer1-1/+1
Remove svn:executable Add svn:eol-style native Add svn:keywords Id svn path=/trunk/; revision=15179