From 1abeb277f5e6bd27fbaebfecc8184e37ba9d008a Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Thu, 8 May 2014 22:59:19 -0400 Subject: Refactor Wiretap Start of refactoring Wiretap and breaking structures down into "generally useful fields for dissection" and "capture specific". Since this in intended as a "base" for Wiretap and Filetap, the "wft" prefix is used for "common" functionality. The "architectural" changes can be found in cfile.h, wtap.h, wtap-int.h and (new file) wftap-int.h. Most of the other (painstaking) changes were really just the result of compiling those new architecture changes. bug:9607 Change-Id: Ife858a61760d7a8a03be073546c0e7e582cab2ae Reviewed-on: https://code.wireshark.org/review/1485 Reviewed-by: Michael Mann --- filetap/file_access.c | 2 +- filetap/ftap.c | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) (limited to 'filetap') diff --git a/filetap/file_access.c b/filetap/file_access.c index e82905f840..90bc06bfee 100644 --- a/filetap/file_access.c +++ b/filetap/file_access.c @@ -538,7 +538,7 @@ ftap* ftap_open_offline(const char *filename, int *err, char **err_info, if (use_stdin) { /* * We dup FD 0, so that we don't have to worry about - * a file_close of wth->fh closing the standard + * a file_close of wfth->fh closing the standard * input of the process. */ fd = ws_dup(0); diff --git a/filetap/ftap.c b/filetap/ftap.c index 0a8c6fa66f..ef35611b84 100644 --- a/filetap/ftap.c +++ b/filetap/ftap.c @@ -378,7 +378,7 @@ ftap_read(ftap *fth, int *err, gchar **err_info, gint64 *data_offset) * *is* FTAP_ENCAP_PER_RECORD, the caller needs to set it * anyway. */ - wth->phdr.pkt_encap = wth->file_encap; + wth->phdr.pkt_encap = wfth->file_encap; #endif if (!fth->subtype_read(fth, err, err_info, data_offset)) { @@ -460,12 +460,6 @@ wtap_phdr(wtap *wth) { return &wth->phdr; } - -guint8 * -wtap_buf_ptr(wtap *wth) -{ - return buffer_start_ptr(wth->frame_buffer); -} #endif gboolean -- cgit v1.2.3