ERF reader missing rewind
authorimarom <[email protected]>
Mon, 5 Sep 2016 10:36:07 +0000 (13:36 +0300)
committerimarom <[email protected]>
Wed, 7 Sep 2016 11:02:58 +0000 (14:02 +0300)
src/common/erf.cpp
src/common/erf.h

index ae256a6..76945b0 100755 (executable)
@@ -437,6 +437,12 @@ void CErfFileReader::Delete(){
     }
 }
 
+void CErfFileReader::Rewind() {
+   if (m_handle) {
+       rewind(m_handle);
+   }
+}
+
 
 bool CErfFileReader::ReadPacket(CCapPktRaw * lpPacket){
     uint8_t interface;
index 2feb4fd..e1b83e4 100755 (executable)
@@ -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;