diff options
Diffstat (limited to 'filetap/ftap.c')
-rw-r--r-- | filetap/ftap.c | 8 |
1 files changed, 7 insertions, 1 deletions
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 |