path: root/tap-stats_tree.c
AgeCommit message (Collapse)AuthorFilesLines
2012-02-17Start moving files to ui/ and ui/cli/Jörg Mayer1-145/+0
svn path=/trunk/; revision=41047
2010-12-03Fix a typo & do whitespace cleanup.Bill Meier1-1/+1
svn path=/trunk/; revision=35111
2010-03-27Squelch some compiler warnings.Guy Harris1-4/+4
svn path=/trunk/; revision=32305
2009-06-05Have tap listeners specify whether the "packet" routine requiresGuy Harris1-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
2008-07-12More stats tree unsigned->signed char cleanupJeff Morriss1-17/+24
svn path=/trunk/; revision=25718
2008-05-07Fix some of the Errors/warnings detected by checkapi.Anders Broman1-2/+2
svn path=/trunk/; revision=25248
2007-03-28Remove almost all of the casts I committed recently and in place ofStephen Fisher1-6/+6
them, add -Wno-pointer-sign to CFLAGS when gcc will accept it. svn path=/trunk/; revision=21253
2007-03-23Fix about 150 warnings new to gcc 4.0 in the error on warning directories.Stephen Fisher1-11/+11
Comment out -Werror in plugins/asn1/ until warnings can be fixed. svn path=/trunk/; revision=21158
2006-05-31Tethereal/tethereal -> TShark/tshark.Gerald Combs1-1/+1
svn path=/trunk/; revision=18268
2006-05-28Ethereal->WiresharkAnders Broman1-1/+1
svn path=/trunk/; revision=18235
2006-05-21name changeRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18197
2006-05-06fix for coverity bug 156Ronnie Sahlberg1-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
2006-02-11 add an userdata argument to register_stat_cmd_arg() and its callback to use ↵Luis Ontanon1-3/+3
the callback for multiple registrations. svn path=/trunk/; revision=17252
2005-08-25http://bugs.ethereal.com/bugzilla/show_bug.cgi?id=377Luis Ontanon1-3/+7
svn path=/trunk/; revision=15530
2005-08-20Rename epan/stat.[ch] to epan/stat_cmd_args.[ch] - it only deals withGuy Harris1-1/+1
implementing the "-z" command-line arguments, it doesn't deal with *all* issues for stats. svn path=/trunk/; revision=15483
2005-08-19Move the stats.[ch] stuff into epan, so plugins can use it.Guy Harris1-1/+1
svn path=/trunk/; revision=15429
2005-08-19Move the APIs for registering and processing "-z" command-line argumentsGuy Harris1-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
2005-08-06Squelch more const warnings (and fix some memory leaks that found).Guy Harris1-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
2005-08-02Remove svn:executableJörg Mayer1-1/+1
Add svn:eol-style native Add svn:keywords Id svn path=/trunk/; revision=15180
2005-04-01Rename "register_ethereal_tap()" to "register_tap_listener_cmd_arg()" asGuy Harris1-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
2005-03-21Rename all stats_tree extern functions to start with stats_tree_Luis Ontanon1-6/+6
svn path=/trunk/; revision=13840
2005-03-20There was a design flaw that caused a crash on windows andLuis Ontanon1-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
2005-02-27Several fixes to the stats_treeLuis Ontanon1-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
2005-02-24Update to the stats_tree tapping APILuis Ontanon1-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
2005-02-16Initial checkin of the stats-tree tap APILuis Ontanon1-0/+118
Makefiles have not been modified yet, there's still work to do. svn path=/trunk/; revision=13414