diff options
author | Guy Harris <guy@alum.mit.edu> | 2019-04-04 20:30:53 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-04-05 03:31:26 +0000 |
commit | 58afae4bd0dc55efacba54181859c2f1eb563132 (patch) | |
tree | d3d923da5f4d98da911b00ccd91ab36968b55937 /file.c | |
parent | 8a5b26efb14b7f8f5375383436f03108d52d9aed (diff) |
Pass Buffer pointers rather than packet data pointers in some more cases.
Change-Id: I35299464560aff2785a52217d4052da3ffedcd6a
Reviewed-on: https://code.wireshark.org/review/32729
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -1165,7 +1165,7 @@ void cf_set_rfcode(capture_file *cf, dfilter_t *rfcode) static void add_packet_to_packet_list(frame_data *fdata, capture_file *cf, epan_dissect_t *edt, dfilter_t *dfcode, column_info *cinfo, - wtap_rec *rec, const guint8 *pd, gboolean add_to_packet_list) + wtap_rec *rec, Buffer *buf, gboolean add_to_packet_list) { frame_data_set_before_dissect(fdata, &cf->elapsed_time, &cf->provider.ref, cf->provider.prev_dis); @@ -1192,7 +1192,7 @@ add_packet_to_packet_list(frame_data *fdata, capture_file *cf, /* Dissect the frame. */ epan_dissect_run_with_taps(edt, cf->cd_t, rec, - frame_tvbuff_new(&cf->provider, fdata, pd), + frame_tvbuff_new_buffer(&cf->provider, fdata, buf), fdata, cinfo); /* If we don't have a display filter, set "passed_dfilter" to 1. */ @@ -1287,8 +1287,7 @@ read_record(capture_file *cf, wtap_rec *rec, Buffer *buf, dfilter_t *dfcode, /* When a redissection is in progress (or queued), do not process packets. * This will be done once all (new) packets have been scanned. */ if (!cf->redissecting && cf->redissection_queued == RESCAN_NONE) { - add_packet_to_packet_list(fdata, cf, edt, dfcode, - cinfo, rec, ws_buffer_start_ptr(buf), TRUE); + add_packet_to_packet_list(fdata, cf, edt, dfcode, cinfo, rec, buf, TRUE); } } @@ -1856,8 +1855,7 @@ rescan_packets(capture_file *cf, const char *action, const char *action_item, gb } add_packet_to_packet_list(fdata, cf, &edt, dfcode, - cinfo, &cf->rec, - ws_buffer_start_ptr(&cf->buf), + cinfo, &cf->rec, &cf->buf, add_to_packet_list); /* If this frame is displayed, and this is the first frame we've |