aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/sip_stat.c
AgeCommit message (Collapse)AuthorFilesLines
2006-03-07Use g_assert to save us from dereferencing a NULL pointer. g_warning is not ↵Lars Roland1-4/+4
strong enough. This should fix a defect discovered by coverity. svn path=/trunk/; revision=17493
2006-02-25From Martin MathiesonAnders Broman1-0/+1
- add SIP response code 412 ("Conditional Request Failed") to stats taps. svn path=/trunk/; revision=17409
2006-02-12Add userdata arguments to a bunch of stat initialization routines toGuy Harris1-1/+1
squelch compiler warnings. Tag one existing such argument as unused to squelch another warning. Fix up some indentation. svn path=/trunk/; revision=17261
2005-09-14Have cf_retap_packets() take an argument that indicates whether toGuy Harris1-1/+1
generate columns; use cf_retap_packets instead of cf_redissect_packets() when running taps (the general flow graph stat uses the Info column). svn path=/trunk/; revision=15793
2005-08-21"gtk_tap_dfilter_dlg_cb()" is no longer used outsideGuy Harris1-1/+0
gtk/tap_dfilter_dlg.c; don't export it. That means that gtk/tap_dfilter_dlg.h is no longer useful; get rid of it. Rename "gtk_tap_dfilter_dlg_cb()" to "tap_dfilter_dlg_cb()", as it's inside GTK+-specific code, so there's no need to distinguish it from non-GTK+ callbacks. Update some comments to reflect the name change and the new API for registering tap_dfilter_dlg stats. Make the AFP and SMB stats use the gtk/tap_dfilter_dlg.c stuff. svn path=/trunk/; revision=15496
2005-08-21Add a "register_dfilter_stat()", to register stats that take a displayGuy Harris1-6/+2
filter as an argument on the command line and have a dialog box to enter the display filter through the GUI. Use it for all stats using "gtk_tap_dfilter_dlg_cb()". Add a top-level "stat_menu.h" file to declare "REGISTER_STAT_GROUP_E" for the benefit of the declaration of "register_dfilter_stat()" in the top-level "tap_dfilter_dlg.h". Rename the "stat_menu.h" in the gtk directory to "gtk_stat_menu.h", so as not to have two headers with the same name. Get rid of headers not declaring any functions not being used in the module. svn path=/trunk/; revision=15493
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-20renamed ui_util.c/.h to gui_utils.c/.h to prevent confusion with identical ↵Ulf Lamping1-1/+1
named ui_util.h in / dir svn path=/trunk/; revision=15465
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-3/+4
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-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
2005-06-24Constify a bunch of structure members and function arguments, to squelchGuy Harris1-7/+7
compiler warnings. Clean up indentation. svn path=/trunk/; revision=14739
2005-04-16add 12 new toolbar/menu iconsUlf Lamping1-1/+1
add two toolbar toggle buttons add icons to various menu items create new Statistics telephony group and put telephony and alike protocols in it svn path=/trunk/; revision=14098
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-02-04huge cleanup of capture file API (functions in file.c/file.h).Ulf Lamping1-1/+1
This includes: all functions in file.h now have a cf_ prefix, will have doxygen tags, will have the capture_file *cf as the first parameter and I tried to generalize the return values for non trivial functions. Hopefully, I didn't introduced any new bugs, as I had to change a lot of files... svn path=/trunk/; revision=13289
2005-01-01As we've made the tap_specific_data field of a tap_packet_t structure aGuy Harris1-2/+2
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
2004-09-29Move the tap infrastructure to the epan directory.Guy Harris1-1/+1
svn path=/trunk/; revision=12128
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-1/+1
Also move ncp222.py, x11-fields, process-x11-fields.pl, make-reg-dotc, and make-reg-dotc.py. Adjust #include lines in files that include packet-*.h files. svn path=/trunk/; revision=11410
2004-07-18Set the svn:eol-style property on all text files to "native", so thatGuy Harris1-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
2004-05-23use new functions in window API (ui_util.h),Ulf Lamping1-23/+8
use window_new instead of dlg_window_new for the statistics windows (as these are no dialog windows) do some code cleanup svn path=/trunk/; revision=10979
2004-04-22From Martin MathiesonAnders Broman1-1/+21
add 2 hidden display filters for SIP - namely: (1) sip.error (for all responses with code >= 300) (2) sip.resend (for all packets that appear to have been retransmitted). A field showing a count of these is shown in the SIP stats window. svn path=/trunk/; revision=10662
2004-04-12added a close button to the dialogs,Ulf Lamping1-26/+31
use the dlg_window_new function for all dialogs svn path=/trunk/; revision=10586
2004-03-30From Lars Roland: Tethereal version of SIP statistics tap, and fixes toGuy Harris1-3/+6
the Ethereal version. svn path=/trunk/; revision=10522
2004-03-27From Lars Roland: use the generic filter dialog for the SIP, HTTP, WSP,Guy Harris1-120/+13
and BOOTP taps. Get rid of the "dlg" variable in some of those taps - it's never set, so it's always null, and nothing useful is done with it if it's null. Make static some variables and functions not used outside the source file in which they're defined. svn path=/trunk/; revision=10500
2004-03-26From Martin Mathieson: SIP statistics tap.Guy Harris1-0/+763
svn path=/trunk/; revision=10493