diff options
-rwxr-xr-x | src/common/erf.cpp | 6 | ||||
-rwxr-xr-x | src/common/erf.h | 2 |
2 files changed, 8 insertions, 0 deletions
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; |