diff options
Diffstat (limited to 'filetap')
-rw-r--r-- | filetap/file_access.c | 2 | ||||
-rw-r--r-- | filetap/ftap.c | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/filetap/file_access.c b/filetap/file_access.c index 90bc06bfee..e82905f840 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 wfth->fh closing the standard + * a file_close of wth->fh closing the standard * input of the process. */ fd = ws_dup(0); diff --git a/filetap/ftap.c b/filetap/ftap.c index ef35611b84..0a8c6fa66f 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 = wfth->file_encap; + wth->phdr.pkt_encap = wth->file_encap; #endif if (!fth->subtype_read(fth, err, err_info, data_offset)) { @@ -460,6 +460,12 @@ wtap_phdr(wtap *wth) { return &wth->phdr; } + +guint8 * +wtap_buf_ptr(wtap *wth) +{ + return buffer_start_ptr(wth->frame_buffer); +} #endif gboolean |