From 77368c3668ee6d2a802eb9cf4d0a639f7ebf16e6 Mon Sep 17 00:00:00 2001 From: Jakub Zawadzki Date: Sat, 20 Oct 2012 19:27:24 +0000 Subject: Introduce epan_dissect_run_with_taps() which run dissection with taps. unexport tap_queue_init, tap_push_tapped_queue svn path=/trunk/; revision=45670 --- epan/epan.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'epan/epan.c') diff --git a/epan/epan.c b/epan/epan.c index 5d1292e5f3..8647a5c78e 100644 --- a/epan/epan.c +++ b/epan/epan.c @@ -198,6 +198,18 @@ epan_dissect_run(epan_dissect_t *edt, struct wtap_pkthdr *phdr, dissect_packet(edt, phdr, data, fd, cinfo); } +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) { -- cgit v1.2.3