aboutsummaryrefslogtreecommitdiffstats
path: root/epan/epan.c
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames-ws@darkjames.pl>2012-10-20 19:27:24 +0000
committerJakub Zawadzki <darkjames-ws@darkjames.pl>2012-10-20 19:27:24 +0000
commit77368c3668ee6d2a802eb9cf4d0a639f7ebf16e6 (patch)
treef92d055cb7296bed1d2cc96c450ddc591ee7cfc0 /epan/epan.c
parent6dc977b7d2b0f807d21ef2978fc81e10c7bb00be (diff)
Introduce epan_dissect_run_with_taps() which run dissection with taps.
unexport tap_queue_init, tap_push_tapped_queue svn path=/trunk/; revision=45670
Diffstat (limited to 'epan/epan.c')
-rw-r--r--epan/epan.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/epan/epan.c b/epan/epan.c
index 5d1292e5f3..8647a5c78e 100644
--- a/epan/epan.c
+++ b/epan/epan.c
@@ -199,6 +199,18 @@ epan_dissect_run(epan_dissect_t *edt, struct wtap_pkthdr *phdr,
}
void
+epan_dissect_run_with_taps(epan_dissect_t *edt, struct wtap_pkthdr *phdr,
+ const guint8* data, frame_data *fd, column_info *cinfo)
+{
+ /* free all memory allocated during previous packet */
+ ep_free_all();
+
+ tap_queue_init(edt);
+ dissect_packet(edt, phdr, data, fd, cinfo);
+ tap_push_tapped_queue(edt);
+}
+
+void
epan_dissect_reset(epan_dissect_t *edt)
{
/* epan_dissect_cleanup(edt) without freeing tree */