aboutsummaryrefslogtreecommitdiffstats
path: root/tap-iostat.c
Commit message (Collapse)AuthorAgeFilesLines
* fix MSVC warnings of / and set CFLAGS to block new warningsUlf Lamping2007-03-211-4/+4
| | | | svn path=/trunk/; revision=21098
* Add separate union entries to fvalue.value for signed and unsignedMartin Mathieson2007-01-181-7/+23
| | | | | | | | | 32-bit numbers. Separate signed and unsigned accessors have been added and used where appropriate. Definitely not for 0.99.5. svn path=/trunk/; revision=20472
* Tethereal/tethereal -> TShark/tshark.Gerald Combs2006-05-311-10/+10
| | | | svn path=/trunk/; revision=18268
* Ethereal->WiresharkAnders Broman2006-05-281-10/+10
| | | | svn path=/trunk/; revision=18235
* name changeRonnie Sahlberg2006-05-211-2/+2
| | | | svn path=/trunk/; revision=18197
* add an userdata argument to register_stat_cmd_arg() and its callback to use ↵Luis Ontanon2006-02-111-2/+2
| | | | | | the callback for multiple registrations. svn path=/trunk/; revision=17252
* Make the processing of "-z" arguments in the Tethereal I/O stat tap moreGuy Harris2005-10-271-89/+102
| | | | | | | | | | like that of the Ethereal I/O stat tap. Improve error messages in both taps. Use nstime() routines and structure assignment to do operations on nstime_t values. svn path=/trunk/; revision=16346
* EVERYTHING IN THE BUILDBOT IS GOING TO BE RED!!! Sorry! Ulf Lamping2005-08-241-1/+1
| | | | | | | | | | | | | | 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
* Rename epan/stat.[ch] to epan/stat_cmd_args.[ch] - it only deals withGuy Harris2005-08-201-1/+1
| | | | | | | implementing the "-z" command-line arguments, it doesn't deal with *all* issues for stats. svn path=/trunk/; revision=15483
* Move the stats.[ch] stuff into epan, so plugins can use it.Guy Harris2005-08-191-1/+1
| | | | svn path=/trunk/; revision=15429
* Move the APIs for registering and processing "-z" command-line argumentsGuy Harris2005-08-191-1/+2
| | | | | | | | | | | 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
* Last set of char -> const char trivial warning fixes.Jörg Mayer2005-08-061-4/+4
| | | | svn path=/trunk/; revision=15244
* Squelch more const warnings (and fix some memory leaks that found).Guy Harris2005-08-061-3/+4
| | | | | | | | | | _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
* Rename "register_ethereal_tap()" to "register_tap_listener_cmd_arg()" asGuy Harris2005-04-011-1/+1
| | | | | | | | | | | | | | | | | | | | | it's used to register a callback for a tap listener invoked if the specified command line argument is specified to the "-z" flag. Move it, along with routines to: look up a "-z" argument in the table constructed by "register_tap_listener_cmd_arg()" and either save the full argument to "-z" and the corresponding listener if it's found or return a failure indication if it isn't; list the available tap listeners; call the "init" routines for the tap listeners saved in the table above; and have Ethereal and Tethereal use those routines. svn path=/trunk/; revision=13993
* Fix the signature of "iostat_packet()" - the pointer to data supplied byGuy Harris2005-01-011-1/+1
| | | | | | the dissector is a const pointer. svn path=/trunk/; revision=12917
* Make the signatures of functions passed to "register_tap_listener()"Guy Harris2005-01-011-4/+5
| | | | | | | | | | | match what "register_tap_listener()" expects (rather than squelching warnings about the differences by casting function pointers to "void *"). Make static some functions not used outside the module in which they're defined. svn path=/trunk/; revision=12913
* Move the tap infrastructure to the epan directory.Guy Harris2004-09-291-1/+1
| | | | svn path=/trunk/; revision=12128
* Set the svn:eol-style property on all text files to "native", so thatGuy Harris2004-07-181-1/+1
| | | | | | | | | they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. svn path=/trunk/; revision=11400
* From Didier Gautheron: put an "fvalue_t" structure into a "field_info"Guy Harris2003-12-021-10/+10
| | | | | | | | structure, rather than separately allocating "fvalue_t"s and having the "field_info" structure point to them - this appears to speed up protocol tree construction a bit. svn path=/trunk/; revision=9146
* Fix display bug for interval. Interval was displayed as seconds and not inRonnie Sahlberg2003-04-291-3/+3
| | | | | | | | ms units. Fix conversion bug when converting from float to integer. svn path=/trunk/; revision=7598
* Update to io-stat for tethereal.Ronnie Sahlberg2003-04-241-57/+388
| | | | | | | | | Make it able to calculate COUNT() SUM() MIN() MAX() and AVG() for integers and relative time fields. See tethereal manpage for examples. svn path=/trunk/; revision=7550
* Make "register_tap_listener()" return NULL on success and a "GString *"Guy Harris2003-04-231-3/+8
| | | | | | | | | | | | | | | | | | | 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
* Allow taps to have menu item registration routines; the menu itemGuy Harris2003-04-231-2/+2
| | | | | | | | | | | | | | | | | | | | | 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
* Update to the io,stat tethereal tap.Ronnie Sahlberg2003-04-221-12/+22
| | | | | | | | | | | | | | Make it possible to use subsecond granularity for the measurement intervals. io,stat is updated to accept the interval to be specified with ms resolution. Example -z io,stat,0.001,smb to generate 1ms statistics for all SMB traffic. svn path=/trunk/; revision=7527
* Gtk1 version of io-statRonnie Sahlberg2002-11-151-7/+1
| | | | svn path=/trunk/; revision=6636
* Use "strchr()", not "index()"; MSVC++ doesn't declare "index()" orGuy Harris2002-11-011-3/+3
| | | | | | | "rindex()" if you include <string.h>, and they're non-standard routines (the ANSI C names for those functions are "strchr()" and "strrchr()"). svn path=/trunk/; revision=6538
* New tap for tethereal: io statistics that provides frames/bytes counts for ↵Ronnie Sahlberg2002-11-011-0/+313
frames matching user specified filters. Try it with -z io,stat,1,nfs,smb,arp on a capture containing both nfs, cifs and arp traffic. svn path=/trunk/; revision=6531