From 323238656f07cbb4671e1493d8274ccb532588b1 Mon Sep 17 00:00:00 2001 From: imarom Date: Mon, 5 Sep 2016 13:36:07 +0300 Subject: [PATCH] ERF reader missing rewind --- src/common/erf.cpp | 6 ++++++ src/common/erf.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/common/erf.cpp b/src/common/erf.cpp index ae256a6b..76945b01 100755 --- a/src/common/erf.cpp +++ b/src/common/erf.cpp @@ -437,6 +437,12 @@ void CErfFileReader::Delete(){ } } +void CErfFileReader::Rewind() { + if (m_handle) { + rewind(m_handle); + } +} + bool CErfFileReader::ReadPacket(CCapPktRaw * lpPacket){ uint8_t interface; diff --git a/src/common/erf.h b/src/common/erf.h index 2feb4fd6..e1b83e46 100755 --- a/src/common/erf.h +++ b/src/common/erf.h @@ -247,7 +247,9 @@ public: virtual ~CErfFileReader() { Delete();} bool Create(char *filename, int loops = 0); void Delete(); + virtual bool ReadPacket(CCapPktRaw * lpPacket); + virtual void Rewind(); virtual capture_type_e get_type() { return ERF; -- 2.16.6