aboutsummaryrefslogtreecommitdiffstats
path: root/tap-rpcstat.c
AgeCommit message (Collapse)AuthorFilesLines
2003-11-27Fix comments to correctly refer to the "-z" option.guy1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9107 f5534014-38df-0310-8fa8-9805f1628bb7
2003-11-27From Michael Lum: fix the usage message to refer to "-z", not "-Z".guy1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9106 f5534014-38df-0310-8fa8-9805f1628bb7
2003-09-03fix to various stats tables.sahlberg1-5/+4
The code used to rely on min_time==0 to determine whether this was the first packet or not and whereby we had to initialize min_time to the current value. This obviously does not work for capture files with poor timestamp resolution where the response time is actually, according to the capture file, 0 and we got all sorts of weird effects like average response time being less than the minimum response time. note, the bug only affected the minimum response time in the tables and not max or average response time. it would "miss" tose minimum response times that were ==0 and display the minumin response time in the capture that were >0 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8358 f5534014-38df-0310-8fa8-9805f1628bb7
2003-04-23Make "register_tap_listener()" return NULL on success and a "GString *"guy1-4/+7
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". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7542 f5534014-38df-0310-8fa8-9805f1628bb7
2003-04-23Allow taps to have menu item registration routines; the menu itemguy1-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.) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7540 f5534014-38df-0310-8fa8-9805f1628bb7
2002-11-01Fix for small bug that crashed tethereal if a tap filter was applied and ↵sahlberg1-2/+2
tethereal forgot to tell epan_dissect_new() to build a tree git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6529 f5534014-38df-0310-8fa8-9805f1628bb7
2002-10-31From Ronnie Sahlberg: have a registration interface for tap listeners,guy1-10/+32
and generate the table of stuff to register from tap source files, so Tethereal doesn't need to know what tap listeners exist. Get rid of "tap-xxx.h" files, as they're now empty. Add "tethereal-tap-register.c" to the .cvsignore file, as it's a new generated file. Update "Makefile.nmake" to generate "tethereal-tap-register.c". Clean up "Makefile.am" and "Makefile.nmake" a bit. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6525 f5534014-38df-0310-8fa8-9805f1628bb7
2002-10-23From Ronnie Sahlberg: pass a pointer to the epan_dissect_t for a packetguy1-2/+2
to taps. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6487 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-27Update tethereal to put the filter string in the statistics table for RPC_STAT.sahlberg1-2/+10
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6343 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-26Updated RPCSTAT for tethereal. The command now takes a filter string as an ↵sahlberg1-12/+7
optional extra parameter. This makes it possible to generate any types of stats based on user defined subsets of the capture. Try -z rpc,rtt,100003,3,nfs.fh.hash==0x12345678 NFS rtt statistics for a specific file. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6337 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-04Tap api. tap is a simple api that can be used for arbitrary extensions.sahlberg1-0/+338
One example extension is rpcstat. Try -Z rpc,rtt,100003,3 as argument to tethereal when reading a capture containing NFSv3 packets. tap-rpcstat.[ch] is intended to demonstrate the api and can be used to base other extensions on. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6175 f5534014-38df-0310-8fa8-9805f1628bb7