Move the stats.[ch] stuff into epan, so plugins can use it.

svn path=/trunk/; revision=15429
This commit is contained in:
Guy Harris 2005-08-19 10:00:14 +00:00
parent 0a1de06a24
commit 4ddd504bb4
73 changed files with 75 additions and 70 deletions

View File

@ -82,7 +82,6 @@ ETHEREAL_COMMON_SRC = \
print.c \
ps.c \
ringbuffer.c \
stat.c \
timestats.c \
util.c \
version_info.c
@ -107,7 +106,6 @@ ETHEREAL_COMMON_INCLUDES = \
ps.h \
register.h \
ringbuffer.h \
stat.h \
timestats.h \
util.h \
version_info.h

View File

@ -69,6 +69,7 @@ LIBETHEREAL_SRC = \
sigcomp-udvm.c \
sminmpec.c \
sna-utils.c \
stat.c \
stats_tree.c \
strutil.c \
t35.c \
@ -136,6 +137,7 @@ LIBETHEREAL_INCLUDES = \
slab.h \
sminmpec.h \
sna-utils.h \
stat.h \
stats_tree.h \
stats_tree_priv.h \
strutil.h \

View File

@ -339,6 +339,7 @@ isup_message_type_value DATA
isup_message_type_value_acro DATA
is_big_endian
is_tpkt
list_stat_cmd_args
LocationRejectReason_vals DATA
match_strval
match_strval_idx
@ -369,6 +370,7 @@ prefs_register_string_preference
prefs_register_uint_preference
prefs_set_pref
process_reassembled_data
process_stat_cmd_arg
protocols_module DATA
proto_can_match_selected
proto_can_toggle_protocol
@ -488,6 +490,7 @@ register_giop_user_module
register_heur_dissector_list
register_init_routine
register_postseq_cleanup_routine
register_stat_cmd_arg
register_tap
register_tap_listener
RegistrationRejectReason_vals DATA
@ -519,6 +522,7 @@ sid_name_snooping DATA
sid_name_table DATA
smb_cmd_vals DATA
sminmpec_values DATA
start_requested_stats
stats_tree_branch_max_namelen
stats_tree_branch_to_str
stats_tree_create_node

View File

@ -33,7 +33,7 @@
#include <glib.h>
#include "stat.h"
#include <epan/stat.h>
/* structure to keep track of what stats have registered command-line
arguments.

View File

View File

@ -40,7 +40,7 @@
#include "epan/packet_info.h"
#include "epan/epan.h"
#include "epan/value_string.h"
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include "image/clist_ascend.xpm"
#include "image/clist_descend.xpm"

View File

@ -40,7 +40,7 @@
#include "epan/packet_info.h"
#include "epan/epan.h"
#include "epan/value_string.h"
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include "image/clist_ascend.xpm"
#include "image/clist_descend.xpm"

View File

@ -33,7 +33,7 @@
#include <epan/packet_info.h>
#include <epan/epan.h>
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include "simple_dialog.h"
#include "ui_util.h"

View File

@ -33,7 +33,7 @@
#include <gtk/gtk.h>
#include <string.h>
#include "epan/packet.h"
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include <epan/tap.h>
#include "../register.h"

View File

@ -33,7 +33,7 @@
#include <gtk/gtk.h>
#include <string.h>
#include "epan/packet.h"
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include <epan/tap.h>
#include "../register.h"

View File

@ -33,7 +33,7 @@
#include <gtk/gtk.h>
#include <string.h>
#include "epan/packet.h"
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include <epan/tap.h>
#include "../register.h"

View File

@ -33,7 +33,7 @@
#include <gtk/gtk.h>
#include <string.h>
#include "epan/packet.h"
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include <epan/tap.h>
#include "../register.h"

View File

@ -33,7 +33,7 @@
#include <gtk/gtk.h>
#include <string.h>
#include "epan/packet.h"
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include <epan/tap.h>
#include "../register.h"

View File

@ -34,7 +34,7 @@
#include <gtk/gtk.h>
#include <string.h>
#include "epan/packet.h"
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include <epan/tap.h>
#include "../register.h"

View File

@ -33,7 +33,7 @@
#include <gtk/gtk.h>
#include <string.h>
#include "epan/packet.h"
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include <epan/tap.h>
#include "../register.h"

View File

@ -33,7 +33,7 @@
#include <gtk/gtk.h>
#include <string.h>
#include "epan/packet.h"
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include <epan/tap.h>
#include "../register.h"

View File

@ -33,7 +33,7 @@
#include <gtk/gtk.h>
#include <string.h>
#include "epan/packet.h"
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include <epan/tap.h>
#include "../register.h"

View File

@ -33,7 +33,7 @@
#include <gtk/gtk.h>
#include <string.h>
#include "epan/packet.h"
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include <epan/tap.h>
#include "../register.h"

View File

@ -33,7 +33,7 @@
#include <gtk/gtk.h>
#include <string.h>
#include "epan/packet.h"
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include <epan/tap.h>
#include "../register.h"

View File

@ -40,7 +40,7 @@
#include <epan/packet_info.h>
#include <epan/epan.h>
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include "simple_dialog.h"
#include "dlg_utils.h"

View File

@ -38,7 +38,7 @@
#include <epan/epan.h>
#include <epan/value_string.h>
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include <epan/tap.h>
#include <epan/dissectors/packet-fc.h>

View File

@ -33,7 +33,7 @@
#include "epan/filesystem.h"
#include "graph_analysis.h"
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include "dlg_utils.h"
#include "ui_util.h"

View File

@ -40,7 +40,7 @@
#include "epan/packet_info.h"
#include "epan/epan.h"
#include "epan/value_string.h"
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include "image/clist_ascend.xpm"
#include "image/clist_descend.xpm"

View File

@ -40,7 +40,7 @@
#include "epan/packet_info.h"
#include "epan/epan.h"
#include "epan/value_string.h"
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include "image/clist_ascend.xpm"
#include "image/clist_descend.xpm"

View File

@ -39,7 +39,7 @@
#include <epan/epan.h>
#include <epan/value_string.h>
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include <epan/tap.h>
#include "../register.h"

View File

@ -39,7 +39,7 @@
#include <epan/epan.h>
#include <epan/value_string.h>
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include <epan/tap.h>
#include "../register.h"

View File

@ -33,7 +33,7 @@
#include <gtk/gtk.h>
#include <string.h>
#include "epan/packet.h"
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include <epan/tap.h>
#include "../register.h"

View File

@ -33,7 +33,7 @@
#include <gtk/gtk.h>
#include <string.h>
#include "epan/packet.h"
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include <epan/tap.h>
#include "../register.h"

View File

@ -33,7 +33,7 @@
#include <gtk/gtk.h>
#include <string.h>
#include "epan/packet.h"
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include <epan/tap.h>
#include "../register.h"

View File

@ -35,7 +35,7 @@
#include <gtk/gtk.h>
#include <string.h>
#include "epan/packet.h"
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include <epan/tap.h>
#include "../register.h"

View File

@ -33,7 +33,7 @@
#include <gtk/gtk.h>
#include <string.h>
#include "epan/packet.h"
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include <epan/tap.h>
#include "../register.h"

View File

@ -33,7 +33,7 @@
#include <gtk/gtk.h>
#include <string.h>
#include "epan/packet.h"
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include <epan/tap.h>
#include "../register.h"

View File

@ -33,7 +33,7 @@
#include <gtk/gtk.h>
#include <string.h>
#include "epan/packet.h"
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include <epan/tap.h>
#include "../register.h"

View File

@ -33,7 +33,7 @@
#include <gtk/gtk.h>
#include <string.h>
#include "epan/packet.h"
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include <epan/tap.h>
#include "../register.h"

View File

@ -33,7 +33,7 @@
#include <gtk/gtk.h>
#include <string.h>
#include "epan/packet.h"
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include <epan/tap.h>
#include "../register.h"

View File

@ -33,7 +33,7 @@
#include <gtk/gtk.h>
#include <string.h>
#include "epan/packet.h"
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include <epan/tap.h>
#include "../register.h"

View File

@ -42,7 +42,7 @@
#include "gtkglobals.h"
#include "ui_util.h"
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include <epan/tap.h>
#include "../register.h"

View File

@ -38,7 +38,7 @@
#include <epan/epan.h>
#include <epan/value_string.h>
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include <epan/tap.h>
#include <epan/dissectors/packet-ldap.h>

View File

@ -83,7 +83,7 @@
#include "ringbuffer.h"
#include "../ui_util.h" /* beware: ui_util.h exists twice! */
#include <epan/tap.h>
#include "../stat.h"
#include <epan/stat.h>
#include "util.h"
#include "clopts_common.h"
#include "version_info.h"

View File

@ -39,7 +39,7 @@
#include <epan/epan.h>
#include <epan/value_string.h>
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include <epan/tap.h>
#include "../register.h"

View File

@ -40,7 +40,7 @@
#include "epan/packet_info.h"
#include "epan/epan.h"
#include "epan/value_string.h"
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include "image/clist_ascend.xpm"
#include "image/clist_descend.xpm"

View File

@ -37,7 +37,7 @@
#include <epan/packet_info.h>
#include <epan/epan.h>
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include <epan/tap.h>
#include "../register.h"

View File

@ -37,7 +37,7 @@
#include <epan/packet_info.h>
#include <epan/epan.h>
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include "simple_dialog.h"
#include "ui_util.h"

View File

@ -63,7 +63,7 @@
#include <gtk/gtk.h>
#include "gtkglobals.h"
#include "../stat.h"
#include <epan/stat.h>
#include "dlg_utils.h"
#include "ui_util.h"
#include "alert_box.h"

View File

@ -33,7 +33,7 @@
#include "rtp_stream_dlg.h"
#include "globals.h"
#include "../stat.h"
#include <epan/stat.h>
#include <epan/tap.h>
#include "register.h"

View File

@ -40,7 +40,7 @@
#include <epan/epan.h>
#include <epan/value_string.h>
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include <epan/tap.h>
#include "../register.h"

View File

@ -32,7 +32,7 @@
#include "globals.h"
#include "epan/packet_info.h" /* Needed for packet_info */
#include <epan/tap.h> /* Needed for register_tap_listener */
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include "dlg_utils.h"
#include "compat_macros.h"

View File

@ -34,7 +34,7 @@
#include <epan/packet_info.h>
#include <epan/epan.h>
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include "simple_dialog.h"
#include "ui_util.h"

View File

@ -38,7 +38,7 @@
#include <epan/epan.h>
#include <epan/value_string.h>
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include <epan/tap.h>
#include "../smb.h"

View File

@ -34,7 +34,7 @@
#include "simple_dialog.h"
#include "globals.h"
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include "ui_util.h"
#include "dlg_utils.h"

View File

@ -50,7 +50,7 @@
#include "epan/filesystem.h"
#include <epan/tap.h>
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include "dlg_utils.h"
#include "ui_util.h"

View File

@ -34,7 +34,7 @@
#include <epan/packet_info.h>
#include <epan/epan.h>
#include "../stat.h"
#include <epan/stat.h>
#include "stat_menu.h"
#include "simple_dialog.h"
#include "ui_util.h"

View File

@ -42,9 +42,9 @@
#include "epan/packet_info.h"
#include "epan/value_string.h"
#include <epan/tap.h>
#include <epan/stat.h>
#include <epan/dissectors/packet-bssap.h>
#include <epan/dissectors/packet-ansi_a.h>
#include "stat.h"
#include "register.h"

View File

@ -31,7 +31,7 @@
#include "epan/packet_info.h"
#include <epan/tap.h>
#include "stat.h"
#include <epan/stat.h>
#include "register.h"

View File

@ -35,8 +35,8 @@
#include <string.h>
#include "epan/packet_info.h"
#include <epan/tap.h>
#include <epan/stat.h>
#include <epan/dissectors/packet-dcerpc.h>
#include "stat.h"
#include "register.h"
/* used to keep track of statistics for a specific procedure */

View File

@ -42,9 +42,9 @@
#include "epan/packet_info.h"
#include "epan/value_string.h"
#include <epan/tap.h>
#include <epan/stat.h>
#include <epan/dissectors/packet-bssap.h>
#include <epan/dissectors/packet-gsm_a.h>
#include "stat.h"
#include "register.h"

View File

@ -36,8 +36,8 @@
#include <string.h>
#include "epan/packet_info.h"
#include <epan/tap.h>
#include <epan/stat.h>
#include "epan/value_string.h"
#include "stat.h"
#include "register.h"
#include <epan/dissectors/packet-h225.h>

View File

@ -36,8 +36,8 @@
#include <string.h>
#include "epan/packet_info.h"
#include <epan/tap.h>
#include <epan/stat.h>
#include "epan/value_string.h"
#include "stat.h"
#include "register.h"
#include <epan/dissectors/packet-h225.h>
#include "timestats.h"

View File

@ -32,7 +32,7 @@
#include "epan/packet_info.h"
#include "epan/value_string.h"
#include <epan/tap.h>
#include "stat.h"
#include <epan/stat.h>
#include "register.h"
#include <epan/dissectors/packet-http.h>

View File

@ -36,7 +36,7 @@
#include "epan/epan_dissect.h"
#include "epan/packet_info.h"
#include <epan/tap.h>
#include "stat.h"
#include <epan/stat.h>
#include "register.h"

View File

@ -37,7 +37,7 @@
#include <epan/packet.h>
#include <epan/addr_resolv.h>
#include <epan/tap.h>
#include "stat.h"
#include <epan/stat.h>
#include "register.h"
#include <epan/dissectors/packet-ip.h>
#include <epan/dissectors/packet-ipx.h>

View File

@ -35,8 +35,8 @@
#include <string.h>
#include "epan/packet_info.h"
#include <epan/tap.h>
#include <epan/stat.h>
#include "epan/value_string.h"
#include "stat.h"
#include "register.h"
#include "plugins/mgcp/packet-mgcp.h"
#include "timestats.h"

View File

@ -39,7 +39,7 @@
#include "epan/column-utils.h"
#include "epan/proto.h"
#include <epan/tap.h>
#include "stat.h"
#include <epan/stat.h>
#include "register.h"
typedef struct _pci_t {

View File

@ -39,7 +39,7 @@
#include "epan/epan_dissect.h"
#include "epan/proto.h"
#include <epan/tap.h>
#include "stat.h"
#include <epan/stat.h>
#include "register.h"
typedef struct _phs_t {

View File

@ -39,8 +39,8 @@
#include <string.h>
#include "epan/packet_info.h"
#include <epan/tap.h>
#include <epan/stat.h>
#include <epan/dissectors/packet-rpc.h>
#include "stat.h"
#include "register.h"
/* used to keep track of statistics for a specific program/version */

View File

@ -41,8 +41,8 @@
#include <string.h>
#include "epan/packet_info.h"
#include <epan/tap.h>
#include <epan/stat.h>
#include <epan/dissectors/packet-rpc.h>
#include "stat.h"
#include "register.h"
/* used to keep track of statistics for a specific procedure */

View File

@ -37,8 +37,8 @@
#include "epan/packet_info.h"
#include "epan/addr_resolv.h"
#include <epan/tap.h>
#include <epan/stat.h>
#include "epan/value_string.h"
#include "stat.h"
#include "register.h"
#include <epan/dissectors/packet-sctp.h>

View File

@ -36,8 +36,8 @@
#include <string.h>
#include "epan/packet_info.h"
#include <epan/tap.h>
#include <epan/stat.h>
#include "epan/value_string.h"
#include "stat.h"
#include "register.h"
#include <epan/dissectors/packet-sip.h>

View File

@ -35,9 +35,9 @@
#include <string.h>
#include "epan/packet_info.h"
#include <epan/dissectors/packet-smb-sidsnooping.h>
#include "stat.h"
#include "register.h"
#include <epan/tap.h>
#include <epan/stat.h>
#include "epan/value_string.h"
#include "smb.h"

View File

@ -35,8 +35,8 @@
#include <string.h>
#include "epan/packet_info.h"
#include <epan/tap.h>
#include <epan/stat.h>
#include "epan/value_string.h"
#include "stat.h"
#include "smb.h"
#include "register.h"
#include "timestats.h"

View File

@ -31,7 +31,7 @@
#include <stdio.h>
#include <glib.h>
#include <epan/stats_tree_priv.h>
#include "stat.h"
#include <epan/stat.h>
/* actually unused */
struct _st_node_pres {

View File

@ -40,7 +40,7 @@
#include <string.h>
#include "epan/packet_info.h"
#include <epan/tap.h>
#include "stat.h"
#include <epan/stat.h>
#include "register.h"
#include "epan/value_string.h"
#include <epan/dissectors/packet-wsp.h>

View File

@ -84,6 +84,7 @@
#include "capture_ui_utils.h"
#include <epan/epan_dissect.h>
#include <epan/tap.h>
#include <epan/stat.h>
#include <epan/timestamp.h>
#ifdef HAVE_LIBPCAP