aboutsummaryrefslogtreecommitdiffstats
path: root/epan/stats_tree.c
AgeCommit message (Collapse)AuthorFilesLines
2012-12-26Fix a bunch of warnings.Guy Harris1-2/+2
Cast away some implicit 64-bit-to-32-bit conversion errors due to use of sizeof. Cast away some implicit 64-bit-to-32-bit conversion errors due to use of strtol() and strtoul(). Change some data types to avoid those implicit conversion warnings. When assigning a constant to a float, make sure the constant isn't a double, by appending "f" to the constant. Constify a bunch of variables, parameters, and return values to eliminate warnings due to strings being given const qualifiers. Cast away those warnings in some cases where an API we don't control forces us to do so. Enable a bunch of additional warnings by default. Note why at least some of the other warnings aren't enabled. randpkt.c and text2pcap.c are used to build programs, so they don't need to be in EXTRA_DIST. If the user specifies --enable-warnings-as-errors, add -Werror *even if the user specified --enable-extra-gcc-flags; assume they know what they're doing and are willing to have the compile fail due to the extra GCC warnings being treated as errors. svn path=/trunk/; revision=46748
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-2/+0
svn path=/trunk/; revision=45016
2012-07-15From Wonil Kim: Enable statistics menu register for the tap plug-in. Fixes ↵Anders Broman1-1/+23
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7466 svn path=/trunk/; revision=43726
2012-07-07From Michael Mann:Guy Harris1-0/+17
Add a preference for the packet length statistics. Fixes bug 3239. svn path=/trunk/; revision=43597
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2011-02-18Fix some dead code and zero division issues found by Clang scan-build.Gerald Combs1-102/+102
In convert_string_case() use g_utf8_strup() instead of converting each character by hand. Hopefully this won't cause any unexpected changes in behavior. svn path=/trunk/; revision=36006
2010-03-26Constify an argument.Guy Harris1-1/+1
svn path=/trunk/; revision=32303
2009-06-05Have tap listeners specify whether the "packet" routine requiresGuy Harris1-2/+7
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
2009-04-08More size_t fixes. Use a string buffer in range.c.Gerald Combs1-1/+1
svn path=/trunk/; revision=27999
2009-03-13From Jakub Zawadzki (bug 3331):Stig Bjørlykke1-4/+2
g_free() is NULL safe, so we don't need check against it. svn path=/trunk/; revision=27718
2009-02-10Remove an ugly hack:Ulf Lamping1-2/+14
There was an ugly hack while creating the menu, that tried to detect the stat_group a stats_tree belongs to by looking at the name string. That makes it unnecessarily hard to understand how the menu is really created. Fix: Add a new function stats_tree_register_with_group() that takes the stat_group as a parameter. Use this function where a stats_tree doesn't fit into the default "unsorted" group. svn path=/trunk/; revision=27407
2008-07-12More (mostly stats tree) unsigned->signed char cleanupJeff Morriss1-1/+1
svn path=/trunk/; revision=25717
2008-07-11Change the stats tree API to use signed chars instead of guint8s for all itsJeff Morriss1-108/+144
strings; this should fix a number of signed/unsigned char warnings. Reindent a bunch, too. svn path=/trunk/; revision=25716
2008-05-05Fix some of the Errors/warnings detected by checkapi,Anders Broman1-1/+1
make non ASCII char a warning for now. svn path=/trunk/; revision=25240
2008-04-07- Remove GLIB1 codeStephen Fisher1-1/+0
- Change ugly GLIB version checking statements to GLIB_CHECK_VERSION - Remove ws_strsplit files because we no longer need to borrow GLIB2's g_strsplit code for the no longer supported GLIB1 builds svn path=/trunk/; revision=24829
2007-03-28Remove almost all of the casts I committed recently and in place ofStephen Fisher1-15/+15
them, add -Wno-pointer-sign to CFLAGS when gcc will accept it. svn path=/trunk/; revision=21253
2007-03-26Fix a bunch more warnings. Add -Werror when using --with-warnings-as-errorsStephen Fisher1-22/+22
under gcc to tools/lemon, plugins/mate and epan/ svn path=/trunk/; revision=21204
2007-02-13From Sebastien Tandel:Stephen Fisher1-38/+33
Create two new files (ws_strsplit.[ch]) that use GTK2 code to override the buggy g_strsplit() function when compiling for GTK1. Include this work-around function (ws_strsplit) in libwireshark.def. Add notes on usage to README.developer. Include epan/ws_strsplit.h in all files that use g_strsplit(). svn path=/trunk/; revision=20804
2007-01-21From Sebastien Tandel:Stephen Fisher1-7/+52
patch against a crash of wireshark with gtk1.2 when using packet length statistics window. The crash was due to a difference of implementation of g_strsplit between gtk1.2 and gtk2. svn path=/trunk/; revision=20518
2006-05-31Tethereal/tethereal -> TShark/tshark.Gerald Combs1-1/+1
svn path=/trunk/; revision=18268
2006-05-28Ethereal->WiresharkAnders Broman1-2/+2
svn path=/trunk/; revision=18234
2006-05-21name changeRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18197
2006-03-15Fix bug 710 and avoid having it crash when more than one instance are open ↵Luis Ontanon1-0/+1
at once. I think that whoever wrote the whole stats_tree thing should rewrite it ASAP, because it sucks! I did ?!?!?? ooops! svn path=/trunk/; revision=17627
2006-03-07Fix a possible NULL pointer dereference (coverity bug id 32)Lars Roland1-1/+1
svn path=/trunk/; revision=17497
2005-11-26Get rid of unused function.Guy Harris1-4/+0
svn path=/trunk/; revision=16600
2005-09-28one leak less...Luis Ontanon1-1/+1
svn path=/trunk/; revision=16046
2005-09-22Instead of checking if this is a new packet at every call to avoid ↵Luis Ontanon1-9/+6
recounting the packets at every rerun remove the tap listener of this stats tree. fixes bug 474 svn path=/trunk/; revision=15960
2005-08-24EVERYTHING IN THE BUILDBOT IS GOING TO BE RED!!! Sorry! Ulf Lamping1-4/+4
I've done more than a day to change the timestamp resolution from microseconds to nanoseconds. As I really don't want to loose those changes, I'm going to check in the changes I've done so far. Hopefully someone else will give me a helping hand with the things left ... What's done: I've changed the timestamp resolution from usec to nsec in almost any place in the sources. I've changed parts of the implementation in nstime.s/.h and a lot of places elsewhere. As I don't understand the editcap source (well, I'm maybe just too tired right now), hopefully someone else might be able to fix this soon. Doing all those changes, we get native nanosecond timestamp resolution in Ethereal. After fixing all the remaining issues, I'll take a look how to display this in a convenient way... As I've also changed the wiretap timestamp resolution from usec to nsec we might want to change the wiretap version number... svn path=/trunk/; revision=15520
2005-08-20- Include the .h files in their .c files.Jörg Mayer1-0/+2
- Remove epan/dissectors/packet-sna.h, it isn't used anywhere. svn path=/trunk/; revision=15475
2005-08-02Last set of trivial fixes for "no previous declaration" warnings.Jörg Mayer1-1/+1
svn path=/trunk/; revision=15191
2005-07-23More 'char*' -> 'const char*' changes to fix warnings.Jörg Mayer1-3/+3
svn path=/trunk/; revision=15015
2005-05-20dup the filter string so that it can be freed without problems.Luis Ontanon1-6/+4
fixes bug 195 svn path=/trunk/; revision=14402
2005-03-21Fix the names that were not consistent after the rename.Luis Ontanon1-4/+10
svn path=/trunk/; revision=13852
2005-03-21Add a cleanup call-back to the stats_tree.Luis Ontanon1-3/+17
svn path=/trunk/; revision=13851
2005-03-21Rename all stats_tree extern functions to start with stats_tree_Luis Ontanon1-28/+28
svn path=/trunk/; revision=13840
2005-03-20bugfix: don't access node elements, after calling free_stat_nodeUlf Lamping1-3/+14
svn path=/trunk/; revision=13825
2005-03-20There was a design flaw that caused a crash on windows andLuis Ontanon1-62/+72
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-03-06- replace tabs with spaces while printingLuis Ontanon1-2/+2
- get rid of a warning in windows compile svn path=/trunk/; revision=13631
2005-02-27Several fixes to the stats_treeLuis Ontanon1-1/+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-25change to int the return type of manip_stat_node() so that it can be used as ↵Luis Ontanon1-3/+3
a parent svn path=/trunk/; revision=13508
2005-02-25some more work forLuis Ontanon1-7/+50
- beautify the text output - make gtk1 textbox implementation usable (I hope) svn path=/trunk/; revision=13506
2005-02-24Update to the stats_tree tapping APILuis Ontanon1-3/+48
- 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-20Fixes few things during reinitialization with gtk2 (it doesn't crash anymore),Luis Ontanon1-7/+17
there are still problems at reinit (gtk2 node->pr warns about an iterator not been OK) set up propperties of the given files svn path=/trunk/; revision=13448
2005-02-16Initial checkin of the stats-tree tap APILuis Ontanon1-0/+532
Makefiles have not been modified yet, there's still work to do. svn path=/trunk/; revision=13414