aboutsummaryrefslogtreecommitdiffstats
path: root/tap-stats_tree.c
AgeCommit message (Collapse)AuthorFilesLines
2010-12-03Fix a typo & do whitespace cleanup.wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35111 f5534014-38df-0310-8fa8-9805f1628bb7
2010-03-27Squelch some compiler warnings.guy1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32305 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-05Have tap listeners specify whether the "packet" routine requiresguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28645 f5534014-38df-0310-8fa8-9805f1628bb7
2008-07-12More stats tree unsigned->signed char cleanupmorriss1-17/+24
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25718 f5534014-38df-0310-8fa8-9805f1628bb7
2008-05-07Fix some of the Errors/warnings detected by checkapi.etxrab1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25248 f5534014-38df-0310-8fa8-9805f1628bb7
2007-03-28Remove almost all of the casts I committed recently and in place ofsfisher1-6/+6
them, add -Wno-pointer-sign to CFLAGS when gcc will accept it. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21253 f5534014-38df-0310-8fa8-9805f1628bb7
2007-03-23Fix about 150 warnings new to gcc 4.0 in the error on warning directories.sfisher1-11/+11
Comment out -Werror in plugins/asn1/ until warnings can be fixed. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21158 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-31Tethereal/tethereal -> TShark/tshark.gerald1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18268 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-28Ethereal->Wiresharketxrab1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18235 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-21name changesahlberg1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18197 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-06fix for coverity bug 156sahlberg1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18101 f5534014-38df-0310-8fa8-9805f1628bb7
2006-02-11 add an userdata argument to register_stat_cmd_arg() and its callback to use ↵lego1-3/+3
the callback for multiple registrations. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17252 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-25http://bugs.ethereal.com/bugzilla/show_bug.cgi?id=377lego1-3/+7
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15530 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-20Rename epan/stat.[ch] to epan/stat_cmd_args.[ch] - it only deals withguy1-1/+1
implementing the "-z" command-line arguments, it doesn't deal with *all* issues for stats. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15483 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-19Move the stats.[ch] stuff into epan, so plugins can use it.guy1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15429 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-19Move the APIs for registering and processing "-z" command-line argumentsguy1-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>. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15427 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-06Squelch more const warnings (and fix some memory leaks that found).guy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15236 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-02Remove svn:executablejmayer1-1/+1
Add svn:eol-style native Add svn:keywords Id git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15180 f5534014-38df-0310-8fa8-9805f1628bb7
2005-04-01Rename "register_ethereal_tap()" to "register_tap_listener_cmd_arg()" asguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13993 f5534014-38df-0310-8fa8-9805f1628bb7
2005-03-21Rename all stats_tree extern functions to start with stats_tree_lego1-6/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13840 f5534014-38df-0310-8fa8-9805f1628bb7
2005-03-20There was a design flaw that caused a crash on windows andlego1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13816 f5534014-38df-0310-8fa8-9805f1628bb7
2005-02-27Several fixes to the stats_treelego1-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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13534 f5534014-38df-0310-8fa8-9805f1628bb7
2005-02-24Update to the stats_tree tapping APIlego1-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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13502 f5534014-38df-0310-8fa8-9805f1628bb7
2005-02-16Initial checkin of the stats-tree tap APIlego1-0/+118
Makefiles have not been modified yet, there's still work to do. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13414 f5534014-38df-0310-8fa8-9805f1628bb7