aboutsummaryrefslogtreecommitdiffstats
path: root/tap-protohierstat.c
Commit message (Collapse)AuthorAgeFilesLines
* More rewrite of prohibited APIs (sprintf, strcpy, strcat).Stig Bjørlykke2008-02-031-2/+1
| | | | svn path=/trunk/; revision=24258
* Use G_GINT64_MODIFIER rather than PRI[duox]64 to print gint64's andGuy Harris2007-12-061-1/+1
| | | | | | guint64's. svn path=/trunk/; revision=23781
* Change bytes counters to 64 bits and use the PRI macros to print them.Jeff Morriss2007-04-181-6/+6
| | | | svn path=/trunk/; revision=21461
* Tethereal/tethereal -> TShark/tshark.Gerald Combs2006-05-311-3/+3
| | | | svn path=/trunk/; revision=18268
* Ethereal->WiresharkAnders Broman2006-05-281-3/+3
| | | | 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
* fix the phs tap so it does not write beyond the end of the string (which ↵Ronnie Sahlberg2005-10-121-4/+10
| | | | | | | | | sits on the stack) this fixes the bug that sunil reported to the mailinglist svn path=/trunk/; revision=16196
* 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
* Squelch more const warnings (and fix some memory leaks that found).Guy Harris2005-08-061-2/+2
| | | | | | | | | | _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
* Constify a bunch of structure members and function arguments, to squelchGuy Harris2005-06-241-1/+1
| | | | | | | | compiler warnings. Clean up indentation. svn path=/trunk/; revision=14739
* 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
* As we've made the tap_specific_data field of a tap_packet_t structure aGuy Harris2005-01-011-1/+1
| | | | | | | | | | | | | | | const pointer (so that we don't get complaints when we make the tap-specific data argument to "tap_queue_packet()" a const pointer, allowing dissectors to hand const data to a tap without a complaint), we should make the tap per-packet function take a const pointer as an argument as well. Do so. In some taps, use _U_, or actually use the argument, rather than sticking in dummy "X = X" assignments to fake use of parameters. (This means that the tap functions in question no longer have the notion that they act on a particular static structure wired in.) svn path=/trunk/; revision=12910
* 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
* Don't use GNodes for the protocol tree, put the sibling pointer, andGuy Harris2003-12-041-3/+3
| | | | | | | | | | pointers to the first *and* last child, in the "proto_node" structure itself. That saves us one level of indirection and memory allocation, and lets us append to a tree by appending to the last child directly, rather than having to scan through the list of siblings of the first child to find the end of that list. svn path=/trunk/; revision=9171
* The "ptr_u" unions no longer have a "next" pointer - they now just haveGuy Harris2003-12-031-6/+6
| | | | | | one member - or have one that's not used, so get rid of those unions. svn path=/trunk/; revision=9151
* Make the recent epan/proto.{c,h} change compile.Guy Harris2003-11-241-6/+6
| | | | svn path=/trunk/; revision=9075
* Make "register_tap_listener()" return NULL on success and a "GString *"Guy Harris2003-04-231-3/+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". 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
* New tap extension for tethereal : ProtocolHierarchyStatistics.Ronnie Sahlberg2002-11-011-0/+217
Similar to what is available on ethereal:/Tools/ProtocolHierarchyStatistics but this one can handle ALL protocols that tethereal has dissectors for. Maybe a gtk/gtk2 version of this should replace the existing one in ethereal? Try -z io,phs or -z io,phs,<filter> to test it. svn path=/trunk/; revision=6532