diff options
author | Michael Mann <mmann78@netscape.net> | 2015-02-03 17:15:23 -0500 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-02-04 06:59:55 +0000 |
commit | 7ced085550d030ea10525d650c8d5d8dc7c99684 (patch) | |
tree | 8e511be2b9ce9f43c08ee7d234a311a3c56ef8d7 /epan/packet.c | |
parent | 90a76e0d51faed8aff875eafce0a85e39de6ae5f (diff) |
emem is dead! Long live wmem!
Change-Id: Iddd1200e62bf3200cb1a68408378dd9d47120b77
Reviewed-on: https://code.wireshark.org/review/6939
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Reviewed-by: Evan Huus <eapache@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/packet.c')
-rw-r--r-- | epan/packet.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/epan/packet.c b/epan/packet.c index 2311785677..2899b7de8e 100644 --- a/epan/packet.c +++ b/epan/packet.c @@ -45,7 +45,6 @@ #include "tvbuff.h" #include "epan_dissect.h" -#include "emem.h" #include "wmem/wmem.h" #include <epan/exceptions.h> @@ -486,8 +485,6 @@ dissect_record(epan_dissect_t *edt, int file_type_subtype, frame_dissector_data.pkt_comment = NULL; frame_dissector_data.file_type_subtype = file_type_subtype; - EP_CHECK_CANARY(("before dissecting record %d",fd->num)); - TRY { /* Add this tvbuffer into the data_src list */ add_new_data_source(&edt->pi, edt->tvb, record_type); @@ -508,8 +505,6 @@ dissect_record(epan_dissect_t *edt, int file_type_subtype, } ENDTRY; - EP_CHECK_CANARY(("after dissecting record %d",fd->num)); - fd->flags.visited = 1; } @@ -545,8 +540,6 @@ dissect_file(epan_dissect_t *edt, struct wtap_pkthdr *phdr, frame_delta_abs_time(edt->session, fd, fd->frame_ref_num, &edt->pi.rel_ts); - EP_CHECK_CANARY(("before dissecting file %d",fd->num)); - TRY { const gchar *pkt_comment; @@ -577,8 +570,6 @@ dissect_file(epan_dissect_t *edt, struct wtap_pkthdr *phdr, } ENDTRY; - EP_CHECK_CANARY(("after dissecting file %d",fd->num)); - fd->flags.visited = 1; } @@ -622,13 +613,9 @@ call_dissector_through_handle(dissector_handle_t handle, tvbuff_t *tvb, } if (handle->is_new) { - EP_CHECK_CANARY(("before calling handle->dissector.new_d for %s",handle->name)); len = (*handle->dissector.new_d)(tvb, pinfo, tree, data); - EP_CHECK_CANARY(("after calling handle->dissector.new_d for %s",handle->name)); } else { - EP_CHECK_CANARY(("before calling handle->dissector.old for %s",handle->name)); (*handle->dissector.old)(tvb, pinfo, tree); - EP_CHECK_CANARY(("after calling handle->dissector.old for %s",handle->name)); len = tvb_length(tvb); if (len == 0) { /* @@ -2055,15 +2042,11 @@ dissector_try_heuristic(heur_dissector_list_t sub_dissectors, tvbuff_t *tvb, pinfo->heur_list_name = hdtbl_entry->list_name; - EP_CHECK_CANARY(("before calling heuristic dissector for protocol: %s", proto_get_protocol_filter_name(proto_id))); if ((hdtbl_entry->dissector)(tvb, pinfo, tree, data)) { - EP_CHECK_CANARY(("after heuristic dissector for protocol: %s has accepted and dissected packet", proto_get_protocol_filter_name(proto_id))); *heur_dtbl_entry = hdtbl_entry; status = TRUE; break; } else { - EP_CHECK_CANARY(("after heuristic dissector for protocol: %s has returned false", proto_get_protocol_filter_name(proto_id))); - /* * That dissector didn't accept the packet, so * remove its protocol's name from the list @@ -2466,8 +2449,6 @@ void call_heur_dissector_direct(heur_dtbl_entry_t *heur_dtbl_entry, tvbuff_t *tv pinfo->heur_list_name = heur_dtbl_entry->list_name; - EP_CHECK_CANARY(("before calling heuristic dissector for protocol: %s", proto_get_protocol_filter_name(proto_id))); - /* call the dissector, as we have saved the result heuristic failure is an error */ if(!(*heur_dtbl_entry->dissector)(tvb, pinfo, tree, data)) g_assert_not_reached(); |