void epan_dissect_run(epan_dissect_t *edt, struct wtap_pkthdr *phdr, const guint8* data, frame_data *fd, column_info *cinfo) { dissect_packet(edt, phdr, data, fd, cinfo); /* free all memory allocated */ ep_free_all(); }
void epan_dissect_run(epan_dissect_t *edt, void* pseudo_header, const guint8* data, frame_data *fd, column_info *cinfo) { /* free all memory allocated during previous packet */ ep_free_all(); dissect_packet(edt, pseudo_header, 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) { tap_queue_init(edt); dissect_packet(edt, phdr, data, fd, cinfo); tap_push_tapped_queue(edt); /* free all memory allocated */ ep_free_all(); }
void epan_dissect_file_run_with_taps(epan_dissect_t *edt, struct wtap_pkthdr *phdr, tvbuff_t *tvb, frame_data *fd, column_info *cinfo) { wmem_enter_packet_scope(); tap_queue_init(edt); dissect_file(edt, phdr, tvb, fd, cinfo); tap_push_tapped_queue(edt); /* free all memory allocated */ ep_free_all(); wmem_leave_packet_scope(); }
void epan_dissect_run(epan_dissect_t *edt, struct wtap_pkthdr *phdr, const guint8* data, frame_data *fd, column_info *cinfo) { #ifdef HAVE_LUA wslua_prime_dfilter(edt); /* done before entering wmem scope */ #endif wmem_enter_packet_scope(); dissect_packet(edt, phdr, data, fd, cinfo); /* free all memory allocated */ ep_free_all(); wmem_leave_packet_scope(); }
void epan_dissect_run(epan_dissect_t *edt, int file_type_subtype, struct wtap_pkthdr *phdr, tvbuff_t *tvb, frame_data *fd, column_info *cinfo) { #ifdef HAVE_LUA wslua_prime_dfilter(edt); /* done before entering wmem scope */ #endif wmem_enter_packet_scope(); dissect_record(edt, file_type_subtype, phdr, tvb, fd, cinfo); /* free all memory allocated */ ep_free_all(); wmem_leave_packet_scope(); }
void epan_dissect_cleanup(epan_dissect_t* edt) { g_assert(edt); g_slist_free(edt->pi.dependent_frames); /* Free the data sources list. */ free_data_sources(&edt->pi); /* Free all tvb's chained from this tvb */ tvb_free_chain(edt->tvb); if (edt->tree) { proto_tree_free(edt->tree); } edt_refs--; if (edt_refs == 0) ep_free_all(); }