summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt1
-rw-r--r--Makefile.common3
-rw-r--r--asn1/cmp/packet-cmp-template.c1
-rw-r--r--asn1/goose/packet-goose-template.c1
-rw-r--r--asn1/mms/packet-mms-template.c1
-rw-r--r--asn1/sv/packet-sv-template.c1
-rw-r--r--editcap.c2
-rw-r--r--epan/CMakeLists.txt1
-rw-r--r--epan/Makefile.common2
-rw-r--r--epan/column.c1
-rw-r--r--epan/dissectors/packet-cmp.c13
-rw-r--r--epan/dissectors/packet-goose.c11
-rw-r--r--epan/dissectors/packet-iscsi.c1
-rw-r--r--epan/dissectors/packet-mms.c11
-rw-r--r--epan/dissectors/packet-sv.c11
-rw-r--r--epan/frame_data.h2
-rw-r--r--epan/ftypes/ftypes.h2
-rw-r--r--epan/proto.h2
-rw-r--r--epan/to_str.h2
-rw-r--r--epan/wslua/init_wslua.c1
-rw-r--r--epan/wslua/wslua.h2
-rw-r--r--tap-megaco-common.c2
-rw-r--r--ui/cli/tap-afpstat.c2
-rw-r--r--ui/cli/tap-camelsrt.c2
-rw-r--r--ui/cli/tap-comparestat.c2
-rw-r--r--ui/cli/tap-diameter-avp.c1
-rw-r--r--ui/cli/tap-funnel.c1
-rw-r--r--ui/cli/tap-h225rassrt.c2
-rw-r--r--ui/cli/tap-megacostat.c2
-rw-r--r--ui/cli/tap-mgcpstat.c2
-rw-r--r--ui/cli/tap-radiusstat.c2
-rw-r--r--ui/cli/tap-smbstat.c2
-rw-r--r--ui/cli/tap-sv.c1
-rw-r--r--ui/gtk/afp_stat.c1
-rw-r--r--ui/gtk/camel_counter.c1
-rw-r--r--ui/gtk/camel_srt.c1
-rw-r--r--ui/gtk/compare_stat.c3
-rw-r--r--ui/gtk/conversations_table.c1
-rw-r--r--ui/gtk/diameter_stat.c1
-rw-r--r--ui/gtk/fc_stat.c1
-rw-r--r--ui/gtk/filter_expression_save_dlg.c1
-rw-r--r--ui/gtk/funnel_stat.c1
-rw-r--r--ui/gtk/gtp_stat.c1
-rw-r--r--ui/gtk/h225_ras_srt.c2
-rw-r--r--ui/gtk/ldap_stat.c1
-rw-r--r--ui/gtk/megaco_stat.c2
-rw-r--r--ui/gtk/mgcp_stat.c2
-rw-r--r--ui/gtk/ncp_stat.c1
-rw-r--r--ui/gtk/packet_list_store.c1
-rw-r--r--ui/gtk/radius_stat.c2
-rw-r--r--ui/gtk/service_response_time_table.h4
-rw-r--r--ui/gtk/smb2_stat.c1
-rw-r--r--ui/gtk/smb_stat.c1
-rw-r--r--ui/qt/capture_file_dialog.cpp2
-rw-r--r--ui/qt/packet_list_model.cpp2
-rw-r--r--ui/time_shift.h2
-rw-r--r--wsutil/CMakeLists.txt2
-rw-r--r--wsutil/Makefile.common4
-rw-r--r--wsutil/nstime.c (renamed from epan/nstime.c)0
-rw-r--r--wsutil/nstime.h (renamed from epan/nstime.h)0
-rw-r--r--wsutil/timestats.c (renamed from timestats.c)0
-rw-r--r--wsutil/timestats.h (renamed from timestats.h)8
62 files changed, 56 insertions, 86 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b1b0316005..42b22fc746 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -659,7 +659,6 @@ set(WIRESHARK_COMMON_SRC
ps.c
svnversion.h
sync_pipe_write.c
- timestats.c
tap-megaco-common.c
tap-rtp-common.c
version_info.c
diff --git a/Makefile.common b/Makefile.common
index 635e8c4ff0..6e3b3572c6 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -56,7 +56,6 @@ SHARK_COMMON_SRC = \
print.c \
ps.c \
sync_pipe_write.c \
- timestats.c \
tap-megaco-common.c \
tap-rtp-common.c \
version_info.c
@@ -81,7 +80,6 @@ SHARK_COMMON_INCLUDES = \
ps.h \
register.h \
tempfile.h \
- timestats.h \
tap-megaco-common.h \
tap-rtp-common.h \
version_info.h \
@@ -176,7 +174,6 @@ mergecap_SOURCES = \
editcap_SOURCES = \
editcap.c \
epan/crypt/md5.c \
- epan/nstime.c \
$(WTAP_PLUGIN_SOURCES)
# reordercap specifics
diff --git a/asn1/cmp/packet-cmp-template.c b/asn1/cmp/packet-cmp-template.c
index 857290b7d8..2281da2298 100644
--- a/asn1/cmp/packet-cmp-template.c
+++ b/asn1/cmp/packet-cmp-template.c
@@ -41,7 +41,6 @@
#include "packet-tcp.h"
#include "packet-http.h"
#include <epan/prefs.h>
-#include <epan/nstime.h>
#define PNAME "Certificate Management Protocol"
#define PSNAME "CMP"
diff --git a/asn1/goose/packet-goose-template.c b/asn1/goose/packet-goose-template.c
index 0577d5f6ab..c65a9b1d9f 100644
--- a/asn1/goose/packet-goose-template.c
+++ b/asn1/goose/packet-goose-template.c
@@ -30,7 +30,6 @@
#include <epan/asn1.h>
#include <epan/etypes.h>
#include <epan/expert.h>
-#include <epan/nstime.h>
#include "packet-ber.h"
#include "packet-acse.h"
diff --git a/asn1/mms/packet-mms-template.c b/asn1/mms/packet-mms-template.c
index 64753b2718..421cf8dcbb 100644
--- a/asn1/mms/packet-mms-template.c
+++ b/asn1/mms/packet-mms-template.c
@@ -30,7 +30,6 @@
#include <epan/packet.h>
#include <epan/asn1.h>
#include <epan/expert.h>
-#include <epan/nstime.h>
#include "packet-ber.h"
#include "packet-acse.h"
diff --git a/asn1/sv/packet-sv-template.c b/asn1/sv/packet-sv-template.c
index 5ad3a71e9f..e225eadfbe 100644
--- a/asn1/sv/packet-sv-template.c
+++ b/asn1/sv/packet-sv-template.c
@@ -30,7 +30,6 @@
#include <epan/asn1.h>
#include <epan/etypes.h>
#include <epan/expert.h>
-#include <epan/nstime.h>
#include <stdio.h>
#include <string.h>
diff --git a/editcap.c b/editcap.c
index 3332d5df6a..a0a4dfc227 100644
--- a/editcap.c
+++ b/editcap.c
@@ -89,7 +89,7 @@
#include "epan/plugins.h"
#include "epan/report_err.h"
#include "epan/filesystem.h"
-#include "epan/nstime.h"
+#include "wsutil/nstime.h"
#undef WS_BUILD_DLL
#define RESET_SYMBOL_EXPORT
diff --git a/epan/CMakeLists.txt b/epan/CMakeLists.txt
index 7eacdf14f0..b11ceaf361 100644
--- a/epan/CMakeLists.txt
+++ b/epan/CMakeLists.txt
@@ -1448,7 +1448,6 @@ set(LIBWIRESHARK_FILES
ipproto.c
ipv4.c
next_tvb.c
- nstime.c
oids.c
osi-utils.c
packet.c
diff --git a/epan/Makefile.common b/epan/Makefile.common
index c2f797f561..473b870e49 100644
--- a/epan/Makefile.common
+++ b/epan/Makefile.common
@@ -65,7 +65,6 @@ LIBWIRESHARK_SRC = \
ipproto.c \
ipv4.c \
next_tvb.c \
- nstime.c \
oids.c \
osi-utils.c \
packet.c \
@@ -203,7 +202,6 @@ LIBWIRESHARK_INCLUDES = \
llcsaps.h \
next_tvb.h \
nlpid.h \
- nstime.h \
oids.h \
osi-utils.h \
oui.h \
diff --git a/epan/column.c b/epan/column.c
index 231f1c5459..e25252b54c 100644
--- a/epan/column.c
+++ b/epan/column.c
@@ -35,7 +35,6 @@
#include <epan/timestamp.h>
#include <epan/prefs.h>
-#include <epan/nstime.h>
#include <epan/dfilter/dfilter.h>
#include <epan/column.h>
#include <epan/packet.h>
diff --git a/epan/dissectors/packet-cmp.c b/epan/dissectors/packet-cmp.c
index 99770656ba..b5823b443a 100644
--- a/epan/dissectors/packet-cmp.c
+++ b/epan/dissectors/packet-cmp.c
@@ -49,7 +49,6 @@
#include "packet-tcp.h"
#include "packet-http.h"
#include <epan/prefs.h>
-#include <epan/nstime.h>
#define PNAME "Certificate Management Protocol"
#define PSNAME "CMP"
@@ -237,7 +236,7 @@ static int hf_cmp_PKIFailureInfo_systemFailure = -1;
static int hf_cmp_PKIFailureInfo_duplicateCertReq = -1;
/*--- End of included file: packet-cmp-hf.c ---*/
-#line 70 "../../asn1/cmp/packet-cmp-template.c"
+#line 69 "../../asn1/cmp/packet-cmp-template.c"
/* Initialize the subtree pointers */
static gint ett_cmp = -1;
@@ -293,7 +292,7 @@ static gint ett_cmp_PollRepContent = -1;
static gint ett_cmp_PollRepContent_item = -1;
/*--- End of included file: packet-cmp-ett.c ---*/
-#line 74 "../../asn1/cmp/packet-cmp-template.c"
+#line 73 "../../asn1/cmp/packet-cmp-template.c"
/*--- Included file: packet-cmp-fn.c ---*/
#line 1 "../../asn1/cmp/packet-cmp-fn.c"
@@ -1453,7 +1452,7 @@ static void dissect_SuppLangTagsValue_PDU(tvbuff_t *tvb _U_, packet_info *pinfo
/*--- End of included file: packet-cmp-fn.c ---*/
-#line 75 "../../asn1/cmp/packet-cmp-template.c"
+#line 74 "../../asn1/cmp/packet-cmp-template.c"
static int
dissect_cmp_pdu(tvbuff_t *tvb, proto_tree *tree, asn1_ctx_t *actx)
@@ -2343,7 +2342,7 @@ void proto_register_cmp(void) {
NULL, HFILL }},
/*--- End of included file: packet-cmp-hfarr.c ---*/
-#line 332 "../../asn1/cmp/packet-cmp-template.c"
+#line 331 "../../asn1/cmp/packet-cmp-template.c"
};
/* List of subtrees */
@@ -2401,7 +2400,7 @@ void proto_register_cmp(void) {
&ett_cmp_PollRepContent_item,
/*--- End of included file: packet-cmp-ettarr.c ---*/
-#line 338 "../../asn1/cmp/packet-cmp-template.c"
+#line 337 "../../asn1/cmp/packet-cmp-template.c"
};
module_t *cmp_module;
@@ -2495,7 +2494,7 @@ void proto_reg_handoff_cmp(void) {
/*--- End of included file: packet-cmp-dis-tab.c ---*/
-#line 410 "../../asn1/cmp/packet-cmp-template.c"
+#line 409 "../../asn1/cmp/packet-cmp-template.c"
inited = TRUE;
}
diff --git a/epan/dissectors/packet-goose.c b/epan/dissectors/packet-goose.c
index a17e644ce3..7cd1c67eda 100644
--- a/epan/dissectors/packet-goose.c
+++ b/epan/dissectors/packet-goose.c
@@ -38,7 +38,6 @@
#include <epan/asn1.h>
#include <epan/etypes.h>
#include <epan/expert.h>
-#include <epan/nstime.h>
#include "packet-ber.h"
#include "packet-acse.h"
@@ -120,7 +119,7 @@ static int hf_goose_mMSString = -1; /* MMSString */
static int hf_goose_utc_time = -1; /* UtcTime */
/*--- End of included file: packet-goose-hf.c ---*/
-#line 52 "../../asn1/goose/packet-goose-template.c"
+#line 51 "../../asn1/goose/packet-goose-template.c"
/* Initialize the subtree pointers */
static int ett_goose = -1;
@@ -147,7 +146,7 @@ static gint ett_goose_SEQUENCE_OF_Data = -1;
static gint ett_goose_Data = -1;
/*--- End of included file: packet-goose-ett.c ---*/
-#line 57 "../../asn1/goose/packet-goose-template.c"
+#line 56 "../../asn1/goose/packet-goose-template.c"
/*--- Included file: packet-goose-fn.c ---*/
@@ -715,7 +714,7 @@ dissect_goose_GOOSEpdu(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset
/*--- End of included file: packet-goose-fn.c ---*/
-#line 59 "../../asn1/goose/packet-goose-template.c"
+#line 58 "../../asn1/goose/packet-goose-template.c"
/*
* Dissect GOOSE PDUs inside a PPDU.
@@ -1024,7 +1023,7 @@ void proto_register_goose(void) {
"UtcTime", HFILL }},
/*--- End of included file: packet-goose-hfarr.c ---*/
-#line 127 "../../asn1/goose/packet-goose-template.c"
+#line 126 "../../asn1/goose/packet-goose-template.c"
};
/* List of subtrees */
@@ -1052,7 +1051,7 @@ void proto_register_goose(void) {
&ett_goose_Data,
/*--- End of included file: packet-goose-ettarr.c ---*/
-#line 133 "../../asn1/goose/packet-goose-template.c"
+#line 132 "../../asn1/goose/packet-goose-template.c"
};
static ei_register_info ei[] = {
diff --git a/epan/dissectors/packet-iscsi.c b/epan/dissectors/packet-iscsi.c
index 5c01507896..c38b9432e0 100644
--- a/epan/dissectors/packet-iscsi.c
+++ b/epan/dissectors/packet-iscsi.c
@@ -44,7 +44,6 @@
#include <epan/prefs.h>
#include <epan/conversation.h>
#include "packet-scsi.h"
-#include <epan/nstime.h>
#include <epan/emem.h>
#include <epan/range.h>
#include <wsutil/crc32.h>
diff --git a/epan/dissectors/packet-mms.c b/epan/dissectors/packet-mms.c
index 97e12b6332..df18a337be 100644
--- a/epan/dissectors/packet-mms.c
+++ b/epan/dissectors/packet-mms.c
@@ -38,7 +38,6 @@
#include <epan/packet.h>
#include <epan/asn1.h>
#include <epan/expert.h>
-#include <epan/nstime.h>
#include "packet-ber.h"
#include "packet-acse.h"
@@ -723,7 +722,7 @@ static int hf_mms_Transitions_idle_to_active = -1;
static int hf_mms_Transitions_any_to_deleted = -1;
/*--- End of included file: packet-mms-hf.c ---*/
-#line 47 "../../asn1/mms/packet-mms-template.c"
+#line 46 "../../asn1/mms/packet-mms-template.c"
/* Initialize the subtree pointers */
static gint ett_mms = -1;
@@ -940,7 +939,7 @@ static gint ett_mms_DirectoryEntry = -1;
static gint ett_mms_FileAttributes = -1;
/*--- End of included file: packet-mms-ett.c ---*/
-#line 51 "../../asn1/mms/packet-mms-template.c"
+#line 50 "../../asn1/mms/packet-mms-template.c"
static expert_field ei_mms_mal_timeofday_encoding = EI_INIT;
static expert_field ei_mms_mal_utctime_encoding = EI_INIT;
@@ -7053,7 +7052,7 @@ dissect_mms_MMSpdu(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_,
/*--- End of included file: packet-mms-fn.c ---*/
-#line 56 "../../asn1/mms/packet-mms-template.c"
+#line 55 "../../asn1/mms/packet-mms-template.c"
/*
* Dissect MMS PDUs inside a PPDU.
@@ -9761,7 +9760,7 @@ void proto_register_mms(void) {
NULL, HFILL }},
/*--- End of included file: packet-mms-hfarr.c ---*/
-#line 95 "../../asn1/mms/packet-mms-template.c"
+#line 94 "../../asn1/mms/packet-mms-template.c"
};
/* List of subtrees */
@@ -9980,7 +9979,7 @@ void proto_register_mms(void) {
&ett_mms_FileAttributes,
/*--- End of included file: packet-mms-ettarr.c ---*/
-#line 101 "../../asn1/mms/packet-mms-template.c"
+#line 100 "../../asn1/mms/packet-mms-template.c"
};
static ei_register_info ei[] = {
diff --git a/epan/dissectors/packet-sv.c b/epan/dissectors/packet-sv.c
index d25e4d00b9..41428bbcee 100644
--- a/epan/dissectors/packet-sv.c
+++ b/epan/dissectors/packet-sv.c
@@ -38,7 +38,6 @@
#include <epan/asn1.h>
#include <epan/etypes.h>
#include <epan/expert.h>
-#include <epan/nstime.h>
#include <stdio.h>
#include <string.h>
@@ -127,7 +126,7 @@ static int hf_sv_seqData = -1; /* Data */
static int hf_sv_smpMod = -1; /* T_smpMod */
/*--- End of included file: packet-sv-hf.c ---*/
-#line 105 "../../asn1/sv/packet-sv-template.c"
+#line 104 "../../asn1/sv/packet-sv-template.c"
/* Initialize the subtree pointers */
static int ett_sv = -1;
@@ -143,7 +142,7 @@ static gint ett_sv_SEQUENCE_OF_ASDU = -1;
static gint ett_sv_ASDU = -1;
/*--- End of included file: packet-sv-ett.c ---*/
-#line 112 "../../asn1/sv/packet-sv-template.c"
+#line 111 "../../asn1/sv/packet-sv-template.c"
static expert_field ei_sv_mal_utctime = EI_INIT;
@@ -450,7 +449,7 @@ dissect_sv_SampledValues(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offse
/*--- End of included file: packet-sv-fn.c ---*/
-#line 195 "../../asn1/sv/packet-sv-template.c"
+#line 194 "../../asn1/sv/packet-sv-template.c"
/*
* Dissect SV PDUs inside a PPDU.
@@ -624,7 +623,7 @@ void proto_register_sv(void) {
NULL, HFILL }},
/*--- End of included file: packet-sv-hfarr.c ---*/
-#line 312 "../../asn1/sv/packet-sv-template.c"
+#line 311 "../../asn1/sv/packet-sv-template.c"
};
/* List of subtrees */
@@ -641,7 +640,7 @@ void proto_register_sv(void) {
&ett_sv_ASDU,
/*--- End of included file: packet-sv-ettarr.c ---*/
-#line 320 "../../asn1/sv/packet-sv-template.c"
+#line 319 "../../asn1/sv/packet-sv-template.c"
};
static ei_register_info ei[] = {
diff --git a/epan/frame_data.h b/epan/frame_data.h
index 050fa28c37..2efdb39ab4 100644
--- a/epan/frame_data.h
+++ b/epan/frame_data.h
@@ -27,7 +27,7 @@
#include <epan/column_info.h>
#include <epan/tvbuff.h>
-#include <epan/nstime.h>
+#include <wsutil/nstime.h>
#include "ws_symbol_export.h"
#define PINFO_FD_NUM(pinfo) ((pinfo)->fd->num)
diff --git a/epan/ftypes/ftypes.h b/epan/ftypes/ftypes.h
index bdf969ba84..82bbe25097 100644
--- a/epan/ftypes/ftypes.h
+++ b/epan/ftypes/ftypes.h
@@ -165,7 +165,7 @@ ftype_can_matches(enum ftenum ftype);
#include <epan/guid-utils.h>
#include <epan/tvbuff.h>
-#include <epan/nstime.h>
+#include <wsutil/nstime.h>
#include <epan/dfilter/drange.h>
typedef struct _fvalue_t {
diff --git a/epan/proto.h b/epan/proto.h
index a05d43fe9d..e82747f9c8 100644
--- a/epan/proto.h
+++ b/epan/proto.h
@@ -46,7 +46,7 @@
#include <glib.h>
#include "ipv4.h"
-#include "nstime.h"
+#include "wsutil/nstime.h"
#include "time_fmt.h"
#include "tvbuff.h"
#include "ftypes/ftypes.h"
diff --git a/epan/to_str.h b/epan/to_str.h
index a353304a3d..3e2f137ab9 100644
--- a/epan/to_str.h
+++ b/epan/to_str.h
@@ -27,7 +27,7 @@
#include <glib.h>
-#include "nstime.h"
+#include "wsutil/nstime.h"
#include "time_fmt.h"
#include <epan/packet_info.h>
#include "ws_symbol_export.h"
diff --git a/epan/wslua/init_wslua.c b/epan/wslua/init_wslua.c
index ad23c1ecb0..577dab9fe5 100644
--- a/epan/wslua/init_wslua.c
+++ b/epan/wslua/init_wslua.c
@@ -30,7 +30,6 @@
#include "wslua.h"
#include <epan/dissectors/packet-frame.h>
-#include <epan/nstime.h>
#include <math.h>
#include <epan/expert.h>
#include <epan/ex-opt.h>
diff --git a/epan/wslua/wslua.h b/epan/wslua/wslua.h
index eaf93b9adb..d761c4830a 100644
--- a/epan/wslua/wslua.h
+++ b/epan/wslua/wslua.h
@@ -51,7 +51,7 @@
#include <epan/funnel.h>
#include <epan/tvbparse.h>
#include <epan/epan.h>
-#include <epan/nstime.h>
+#include <wsutil/nstime.h>
#include "declare_wslua.h"
diff --git a/tap-megaco-common.c b/tap-megaco-common.c
index f2688bbc5e..d4a033a0d4 100644
--- a/tap-megaco-common.c
+++ b/tap-megaco-common.c
@@ -35,7 +35,7 @@
#include <epan/tap.h>
#include "epan/gcp.h"
-#include "../timestats.h"
+#include "wsutil/timestats.h"
#include "../file.h"
#include "../globals.h"
#include "../stat_menu.h"
diff --git a/ui/cli/tap-afpstat.c b/ui/cli/tap-afpstat.c
index 088030574e..8c5929d5c0 100644
--- a/ui/cli/tap-afpstat.c
+++ b/ui/cli/tap-afpstat.c
@@ -33,7 +33,7 @@
#include <epan/stat_cmd_args.h>
#include <epan/value_string.h>
#include <epan/dissectors/packet-afp.h>
-#include "timestats.h"
+#include "wsutil/timestats.h"
/* used to keep track of the statistics for an entire program interface */
typedef struct _afpstat_t {
diff --git a/ui/cli/tap-camelsrt.c b/ui/cli/tap-camelsrt.c
index f241a72960..df27e857e0 100644
--- a/ui/cli/tap-camelsrt.c
+++ b/ui/cli/tap-camelsrt.c
@@ -35,7 +35,7 @@
#include "epan/asn1.h"
#include "epan/dissectors/packet-camel.h"
#include "epan/camel-persistentdata.h"
-#include "timestats.h"
+#include "wsutil/timestats.h"
#include "epan/stat_cmd_args.h"
diff --git a/ui/cli/tap-comparestat.c b/ui/cli/tap-comparestat.c
index 6f55926e6c..de5e2ecbe0 100644
--- a/ui/cli/tap-comparestat.c
+++ b/ui/cli/tap-comparestat.c
@@ -45,7 +45,7 @@
#include <epan/timestamp.h>
#include <epan/stat_cmd_args.h>
#include <epan/dissectors/packet-ip.h>
-#include "timestats.h"
+#include "wsutil/timestats.h"
/* For checksum */
diff --git a/ui/cli/tap-diameter-avp.c b/ui/cli/tap-diameter-avp.c
index f3b5777bdc..ce773bfccb 100644
--- a/ui/cli/tap-diameter-avp.c
+++ b/ui/cli/tap-diameter-avp.c
@@ -46,7 +46,6 @@
#include <epan/epan_dissect.h>
#include <epan/stat_cmd_args.h>
#include "epan/value_string.h"
-#include "epan/nstime.h"
#include "epan/ftypes/ftypes.h"
#include "epan/to_str.h"
#include "epan/dissectors/packet-diameter.h"
diff --git a/ui/cli/tap-funnel.c b/ui/cli/tap-funnel.c
index 38d26a5f16..acbc89cbd4 100644
--- a/ui/cli/tap-funnel.c
+++ b/ui/cli/tap-funnel.c
@@ -30,7 +30,6 @@
#include <glib.h>
#include <wiretap/wtap.h>
-#include <epan/nstime.h>
#include <epan/proto.h>
#include <epan/funnel.h>
diff --git a/ui/cli/tap-h225rassrt.c b/ui/cli/tap-h225rassrt.c
index 5bb62e97f4..155b368dea 100644
--- a/ui/cli/tap-h225rassrt.c
+++ b/ui/cli/tap-h225rassrt.c
@@ -34,7 +34,7 @@
#include <epan/stat_cmd_args.h>
#include "epan/value_string.h"
#include <epan/dissectors/packet-h225.h>
-#include "timestats.h"
+#include "wsutil/timestats.h"
/* following values represent the size of their valuestring arrays */
#define NUM_RAS_STATS 7
diff --git a/ui/cli/tap-megacostat.c b/ui/cli/tap-megacostat.c
index b15f5673e2..9570b1b7b7 100644
--- a/ui/cli/tap-megacostat.c
+++ b/ui/cli/tap-megacostat.c
@@ -34,7 +34,7 @@
#include <epan/stat_cmd_args.h>
#include "epan/value_string.h"
#include "epan/gcp.h"
-#include "timestats.h"
+#include "wsutil/timestats.h"
#include <epan/prefs-int.h>
#include "tap-megaco-common.h"
diff --git a/ui/cli/tap-mgcpstat.c b/ui/cli/tap-mgcpstat.c
index 4858142721..9ea2129fa9 100644
--- a/ui/cli/tap-mgcpstat.c
+++ b/ui/cli/tap-mgcpstat.c
@@ -32,7 +32,7 @@
#include <epan/stat_cmd_args.h>
#include "epan/value_string.h"
#include "epan/dissectors/packet-mgcp.h"
-#include "timestats.h"
+#include "wsutil/timestats.h"
#define NUM_TIMESTATS 11
diff --git a/ui/cli/tap-radiusstat.c b/ui/cli/tap-radiusstat.c
index 852c89d0c8..67522b8b46 100644
--- a/ui/cli/tap-radiusstat.c
+++ b/ui/cli/tap-radiusstat.c
@@ -32,7 +32,7 @@
#include <epan/stat_cmd_args.h>
#include "epan/value_string.h"
#include <epan/dissectors/packet-radius.h>
-#include "timestats.h"
+#include "wsutil/timestats.h"
typedef enum _radius_category {
RADIUS_CAT_OVERALL = 0,
diff --git a/ui/cli/tap-smbstat.c b/ui/cli/tap-smbstat.c
index 99d65ddc23..153a086208 100644
--- a/ui/cli/tap-smbstat.c
+++ b/ui/cli/tap-smbstat.c
@@ -32,7 +32,7 @@
#include <epan/stat_cmd_args.h>
#include "epan/value_string.h"
#include <epan/dissectors/packet-smb.h>
-#include "timestats.h"
+#include "wsutil/timestats.h"
#define MICROSECS_PER_SEC 1000000
#define NANOSECS_PER_SEC 1000000000
diff --git a/ui/cli/tap-sv.c b/ui/cli/tap-sv.c
index 8ef6acb0ff..ccd705a445 100644
--- a/ui/cli/tap-sv.c
+++ b/ui/cli/tap-sv.c
@@ -32,7 +32,6 @@
#include <epan/packet_info.h>
#include <epan/tap.h>
#include <epan/stat_cmd_args.h>
-#include <epan/nstime.h>
#include <epan/dissectors/packet-sv.h>
static int
diff --git a/ui/gtk/afp_stat.c b/ui/gtk/afp_stat.c
index 56af2e4b11..61258ea2d4 100644
--- a/ui/gtk/afp_stat.c
+++ b/ui/gtk/afp_stat.c
@@ -35,7 +35,6 @@
#include <epan/tap.h>
#include <epan/dissectors/packet-afp.h>
-#include "../timestats.h"
#include "../file.h"
#include "../stat_menu.h"
diff --git a/ui/gtk/camel_counter.c b/ui/gtk/camel_counter.c
index f2f2621283..53e334abfd 100644
--- a/ui/gtk/camel_counter.c
+++ b/ui/gtk/camel_counter.c
@@ -38,7 +38,6 @@
#include <epan/camel-persistentdata.h>
#include "../stat_menu.h"
-#include "../timestats.h"
#include "ui/simple_dialog.h"
diff --git a/ui/gtk/camel_srt.c b/ui/gtk/camel_srt.c
index b52cc2c904..d9d396d8de 100644
--- a/ui/gtk/camel_srt.c
+++ b/ui/gtk/camel_srt.c
@@ -36,7 +36,6 @@
#include <epan/asn1.h>
#include <epan/camel-persistentdata.h>
-#include "../timestats.h"
#include "../file.h"
#include "../stat_menu.h"
diff --git a/ui/gtk/compare_stat.c b/ui/gtk/compare_stat.c
index e07ee96eaa..c6f483e5c6 100644
--- a/ui/gtk/compare_stat.c
+++ b/ui/gtk/compare_stat.c
@@ -51,11 +51,10 @@
#include <epan/packet.h>
#include <epan/report_err.h>
#include <epan/dissectors/packet-ip.h>
-#include <epan/nstime.h>
#include <epan/in_cksum.h>
#include "../stat_menu.h"
-#include "../timestats.h"
+#include "wsutil/timestats.h"
#include "ui/simple_dialog.h"
diff --git a/ui/gtk/conversations_table.c b/ui/gtk/conversations_table.c
index e17d62e7f8..4cb5ef57f6 100644
--- a/ui/gtk/conversations_table.c
+++ b/ui/gtk/conversations_table.c
@@ -35,7 +35,6 @@
#include <epan/address.h>
#include <epan/addr_resolv.h>
#include <epan/tap.h>
-#include <epan/nstime.h>
#include "../globals.h"
diff --git a/ui/gtk/diameter_stat.c b/ui/gtk/diameter_stat.c
index a5887c3577..c0cd20f452 100644
--- a/ui/gtk/diameter_stat.c
+++ b/ui/gtk/diameter_stat.c
@@ -36,7 +36,6 @@
#include <epan/tap.h>
#include <epan/dissectors/packet-diameter.h>
-#include "../timestats.h"
#include "../file.h"
#include "../stat_menu.h"
diff --git a/ui/gtk/fc_stat.c b/ui/gtk/fc_stat.c
index 85d64227db..45d5443886 100644
--- a/ui/gtk/fc_stat.c
+++ b/ui/gtk/fc_stat.c
@@ -36,7 +36,6 @@
#include <epan/dissectors/packet-scsi.h>
#include <epan/dissectors/packet-fc.h>
-#include "../timestats.h"
#include "ui/simple_dialog.h"
#include "../file.h"
#include "../stat_menu.h"
diff --git a/ui/gtk/filter_expression_save_dlg.c b/ui/gtk/filter_expression_save_dlg.c
index adc4aed15d..f9525835f9 100644
--- a/ui/gtk/filter_expression_save_dlg.c
+++ b/ui/gtk/filter_expression_save_dlg.c
@@ -33,7 +33,6 @@
#include <epan/proto.h>
#include <epan/dfilter/dfilter.h>
-#include <epan/nstime.h>
#include <epan/strutil.h>
#include <epan/prefs.h>
#include <epan/filter_expressions.h>
diff --git a/ui/gtk/funnel_stat.c b/ui/gtk/funnel_stat.c
index 4af421486b..11583fa0a2 100644
--- a/ui/gtk/funnel_stat.c
+++ b/ui/gtk/funnel_stat.c
@@ -46,7 +46,6 @@
#include <epan/prefs.h>
#include <epan/funnel.h>
-#include "../timestats.h"
#include "../file.h"
#include "../stat_menu.h"
#include "ui/progress_dlg.h"
diff --git a/ui/gtk/gtp_stat.c b/ui/gtk/gtp_stat.c
index 908a8a95f8..17e6a15cc9 100644
--- a/ui/gtk/gtp_stat.c
+++ b/ui/gtk/gtp_stat.c
@@ -35,7 +35,6 @@
#include <epan/tap.h>
#include <epan/dissectors/packet-gtp.h>
-#include "../timestats.h"
#include "ui/simple_dialog.h"
#include "../file.h"
#include "../stat_menu.h"
diff --git a/ui/gtk/h225_ras_srt.c b/ui/gtk/h225_ras_srt.c
index bd12ac71d2..9b4b8b551c 100644
--- a/ui/gtk/h225_ras_srt.c
+++ b/ui/gtk/h225_ras_srt.c
@@ -36,7 +36,7 @@
#include <epan/tap.h>
#include <epan/dissectors/packet-h225.h>
-#include "../timestats.h"
+#include "wsutil/timestats.h"
#include "ui/simple_dialog.h"
#include "../file.h"
#include "../stat_menu.h"
diff --git a/ui/gtk/ldap_stat.c b/ui/gtk/ldap_stat.c
index e34255211e..c2f9a6f0ce 100644
--- a/ui/gtk/ldap_stat.c
+++ b/ui/gtk/ldap_stat.c
@@ -34,7 +34,6 @@
#include <epan/tap.h>
#include <epan/dissectors/packet-ldap.h>
-#include "../timestats.h"
#include "ui/simple_dialog.h"
#include "../file.h"
#include "../stat_menu.h"
diff --git a/ui/gtk/megaco_stat.c b/ui/gtk/megaco_stat.c
index 5f0b0bab7d..55cc7ead6f 100644
--- a/ui/gtk/megaco_stat.c
+++ b/ui/gtk/megaco_stat.c
@@ -38,7 +38,7 @@
#include "epan/gcp.h"
#include <epan/prefs-int.h>
-#include "../timestats.h"
+#include "wsutil/timestats.h"
#include "ui/simple_dialog.h"
#include "../file.h"
#include "../stat_menu.h"
diff --git a/ui/gtk/mgcp_stat.c b/ui/gtk/mgcp_stat.c
index aea8739278..80d20ec958 100644
--- a/ui/gtk/mgcp_stat.c
+++ b/ui/gtk/mgcp_stat.c
@@ -35,7 +35,7 @@
#include <epan/tap.h>
#include "epan/dissectors/packet-mgcp.h"
-#include "../timestats.h"
+#include "wsutil/timestats.h"
#include "ui/simple_dialog.h"
#include "../file.h"
#include "../stat_menu.h"
diff --git a/ui/gtk/ncp_stat.c b/ui/gtk/ncp_stat.c
index 6ab3b91242..3a8a9f2b53 100644
--- a/ui/gtk/ncp_stat.c
+++ b/ui/gtk/ncp_stat.c
@@ -34,7 +34,6 @@
#include <epan/tap.h>
#include <epan/dissectors/packet-ncp-int.h>
-#include "../timestats.h"
#include "ui/simple_dialog.h"
#include "../file.h"
#include "../stat_menu.h"
diff --git a/ui/gtk/packet_list_store.c b/ui/gtk/packet_list_store.c
index d91fdd6033..c1e9a4c29c 100644
--- a/ui/gtk/packet_list_store.c
+++ b/ui/gtk/packet_list_store.c
@@ -45,7 +45,6 @@
#include <epan/epan_dissect.h>
#include <epan/column_info.h>
#include <epan/column.h>
-#include <epan/nstime.h>
#include "color.h"
#include "color_filters.h"
diff --git a/ui/gtk/radius_stat.c b/ui/gtk/radius_stat.c
index cd73e76795..595a027f72 100644
--- a/ui/gtk/radius_stat.c
+++ b/ui/gtk/radius_stat.c
@@ -35,7 +35,7 @@
#include <epan/tap.h>
#include <epan/dissectors/packet-radius.h>
-#include "../timestats.h"
+#include "wsutil/timestats.h"
#include "ui/simple_dialog.h"
#include "../file.h"
#include "../stat_menu.h"
diff --git a/ui/gtk/service_response_time_table.h b/ui/gtk/service_response_time_table.h
index 3907ac5de1..761ebd813a 100644
--- a/ui/gtk/service_response_time_table.h
+++ b/ui/gtk/service_response_time_table.h
@@ -28,8 +28,8 @@
#define __SERVICE_RESPONSE_TIME_TABLE_H__
#include <gtk/gtk.h>
-#include "epan/nstime.h"
-#include "../timestats.h"
+#include "wsutil/nstime.h"
+#include "wsutil/timestats.h"
/** @file
* Helper routines common to all service response time statistics tap.
diff --git a/ui/gtk/smb2_stat.c b/ui/gtk/smb2_stat.c
index b875bd57d7..c3b0a5108e 100644
--- a/ui/gtk/smb2_stat.c
+++ b/ui/gtk/smb2_stat.c
@@ -34,7 +34,6 @@
#include <epan/tap.h>
#include <epan/dissectors/packet-smb2.h>
-#include "../timestats.h"
#include "ui/simple_dialog.h"
#include "../file.h"
#include "../globals.h"
diff --git a/ui/gtk/smb_stat.c b/ui/gtk/smb_stat.c
index 8d81688727..33c730bc68 100644
--- a/ui/gtk/smb_stat.c
+++ b/ui/gtk/smb_stat.c
@@ -34,7 +34,6 @@
#include <epan/tap.h>
#include <epan/dissectors/packet-smb.h>
-#include "../timestats.h"
#include "ui/simple_dialog.h"
#include "../file.h"
#include "../globals.h"
diff --git a/ui/qt/capture_file_dialog.cpp b/ui/qt/capture_file_dialog.cpp
index 63f986e2a8..1136b62991 100644
--- a/ui/qt/capture_file_dialog.cpp
+++ b/ui/qt/capture_file_dialog.cpp
@@ -37,7 +37,7 @@
#include "../../epan/addr_resolv.h"
#include "../../epan/prefs.h"
#include "../../epan/filesystem.h"
-#include "../../epan/nstime.h"
+#include "../../wsutil/nstime.h"
#include <wireshark_application.h>
diff --git a/ui/qt/packet_list_model.cpp b/ui/qt/packet_list_model.cpp
index 96953f2938..d34a35bb37 100644
--- a/ui/qt/packet_list_model.cpp
+++ b/ui/qt/packet_list_model.cpp
@@ -26,7 +26,7 @@
#include <epan/epan_dissect.h>
#include <epan/column_info.h>
#include <epan/column.h>
-#include <epan/nstime.h>
+#include <wsutil/nstime.h>
#include <epan/prefs.h>
#include "color.h"
diff --git a/ui/time_shift.h b/ui/time_shift.h
index bedc353bf4..d1bbebde92 100644
--- a/ui/time_shift.h
+++ b/ui/time_shift.h
@@ -26,7 +26,7 @@
#define __TIME_SHIFT_H__
#include "cfile.h"
-#include <epan/nstime.h>
+#include <wsutil/nstime.h>
#ifdef __cplusplus
extern "C" {
diff --git a/wsutil/CMakeLists.txt b/wsutil/CMakeLists.txt
index 94a2183082..97da38cbc5 100644
--- a/wsutil/CMakeLists.txt
+++ b/wsutil/CMakeLists.txt
@@ -47,8 +47,10 @@ set(WSUTIL_FILES
crc11.c
crcdrm.c
mpeg-audio.c
+ nstime.c
privileges.c
str_util.c
+ timestats.c
type_util.c
${WSUTIL_PLATFORM_FILES}
)
diff --git a/wsutil/Makefile.common b/wsutil/Makefile.common
index 570dbe60da..712c6c8448 100644
--- a/wsutil/Makefile.common
+++ b/wsutil/Makefile.common
@@ -41,8 +41,10 @@ LIBWSUTIL_SRC = \
crc32.c \
crcdrm.c \
mpeg-audio.c \
+ nstime.c \
privileges.c \
str_util.c \
+ timestats.c \
type_util.c
# Header files that are not generated from other files
@@ -58,6 +60,8 @@ LIBWSUTIL_INCLUDES = \
crc32.h \
crcdrm.h \
mpeg-audio.h \
+ nstime.h \
privileges.h \
str_util.h \
+ timestats.h \
type_util.h
diff --git a/epan/nstime.c b/wsutil/nstime.c
index e88818856a..e88818856a 100644
--- a/epan/nstime.c
+++ b/wsutil/nstime.c
diff --git a/epan/nstime.h b/wsutil/nstime.h
index 01fd469b62..01fd469b62 100644
--- a/epan/nstime.h
+++ b/wsutil/nstime.h
diff --git a/timestats.c b/wsutil/timestats.c
index 9803999b91..9803999b91 100644
--- a/timestats.c
+++ b/wsutil/timestats.c
diff --git a/timestats.h b/wsutil/timestats.h
index b67ea3f8be..81e6d97042 100644
--- a/timestats.h
+++ b/wsutil/timestats.h
@@ -28,7 +28,7 @@
#include <glib.h>
#include "epan/packet_info.h"
-#include "epan/nstime.h"
+#include "nstime.h"
/* Summary of time statistics*/
typedef struct _timestat_t {
@@ -44,11 +44,11 @@ typedef struct _timestat_t {
/* functions */
/* Initialize a timestat_t struct */
-extern void time_stat_init(timestat_t *stats);
+WS_DLL_PUBLIC void time_stat_init(timestat_t *stats);
/* Update a timestat_t struct with a new sample */
-extern void time_stat_update(timestat_t *stats, const nstime_t *delta, packet_info *pinfo);
+WS_DLL_PUBLIC void time_stat_update(timestat_t *stats, const nstime_t *delta, packet_info *pinfo);
-extern gdouble get_average(const nstime_t *sum, guint32 num);
+WS_DLL_PUBLIC gdouble get_average(const nstime_t *sum, guint32 num);
#endif