aboutsummaryrefslogtreecommitdiffstats
path: root/tap-stats_tree.c
Commit message (Collapse)AuthorAgeFilesLines
* Start moving files to ui/ and ui/cli/Jörg Mayer2012-02-171-145/+0
| | | | svn path=/trunk/; revision=41047
* Fix a typo & do whitespace cleanup.Bill Meier2010-12-031-1/+1
| | | | svn path=/trunk/; revision=35111
* Squelch some compiler warnings.Guy Harris2010-03-271-4/+4
| | | | svn path=/trunk/; revision=32305
* Have tap listeners specify whether the "packet" routine requiresGuy Harris2009-06-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | a protocol tree; the column values. This includes stats-tree listeners. Have the routines to build the packet list, and to retap packets, honor those requirements. This means that cf_retap_packets() no longer needs an argument to specify whether to construct the column values or not, so get rid of that argument. This also means that there's no need for a tap to have a fake filter to ensure that the protocol tree will be built, so don't set up a fake "frame" filter. While we're at it, clean up some cases where "no filter" was represented as a null string rather than a null pointer. Have a routine to return an indication of the number of tap listeners with filters; use that rather than the global num_tap_filters. Clean up some indentation and some gboolean vs. gint items. svn path=/trunk/; revision=28645
* More stats tree unsigned->signed char cleanupJeff Morriss2008-07-121-17/+24
| | | | svn path=/trunk/; revision=25718
* Fix some of the Errors/warnings detected by checkapi.Anders Broman2008-05-071-2/+2
| | | | svn path=/trunk/; revision=25248
* Remove almost all of the casts I committed recently and in place ofStephen Fisher2007-03-281-6/+6
| | | | | | | them, add -Wno-pointer-sign to CFLAGS when gcc will accept it. svn path=/trunk/; revision=21253
* Fix about 150 warnings new to gcc 4.0 in the error on warning directories.Stephen Fisher2007-03-231-11/+11
| | | | | | | Comment out -Werror in plugins/asn1/ until warnings can be fixed. svn path=/trunk/; revision=21158
* Tethereal/tethereal -> TShark/tshark.Gerald Combs2006-05-311-1/+1
| | | | svn path=/trunk/; revision=18268
* Ethereal->WiresharkAnders Broman2006-05-281-1/+1
| | | | svn path=/trunk/; revision=18235
* name changeRonnie Sahlberg2006-05-211-2/+2
| | | | svn path=/trunk/; revision=18197
* fix for coverity bug 156Ronnie Sahlberg2006-05-061-1/+2
| | | | | | | | | | it does not seem like it it is possible to trigger this bug since the condition where st is dereferenced and null should be impossible to create. Still handle this impossible situation better if the guarantee that st can not be null here is changed in the future. svn path=/trunk/; revision=18101
* add an userdata argument to register_stat_cmd_arg() and its callback to use ↵Luis Ontanon2006-02-111-3/+3
| | | | | | the callback for multiple registrations. svn path=/trunk/; revision=17252
* http://bugs.ethereal.com/bugzilla/show_bug.cgi?id=377Luis Ontanon2005-08-251-3/+7
| | | | svn path=/trunk/; revision=15530
* 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-1/+1
| | | | | | | | | | _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
* Remove svn:executableJörg Mayer2005-08-021-1/+1
| | | | | | | Add svn:eol-style native Add svn:keywords Id svn path=/trunk/; revision=15180
* 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
* Rename all stats_tree extern functions to start with stats_tree_Luis Ontanon2005-03-211-6/+6
| | | | svn path=/trunk/; revision=13840
* There was a design flaw that caused a crash on windows andLuis Ontanon2005-03-201-17/+25
| | | | | | | | | | | | left uninitialized successive copies of the stats tree. Split the stats_tree data in two different structs one for data that's always needed and it's not going to change at every run and another for each run of the tap. svn path=/trunk/; revision=13816
* Several fixes to the stats_treeLuis Ontanon2005-02-271-4/+6
| | | | | | | | | | | - Avoid creating a copy of every branch at reinitialization this used to cause some GTK warnings and a leakage of tree nodes - propperly check the optarg to avoid getting junk in the filter text this caused a crash svn path=/trunk/; revision=13534
* Update to the stats_tree tapping APILuis Ontanon2005-02-241-3/+6
| | | | | | | | | - change the tap init_string to %s,tree instead of %s,stat - change the registration key (it used to be tapname, that disallowed to register more than one tap per protocol) - add a "pivot" node for convenience svn path=/trunk/; revision=13502
* Initial checkin of the stats-tree tap APILuis Ontanon2005-02-161-0/+118
Makefiles have not been modified yet, there's still work to do. svn path=/trunk/; revision=13414