dumpfiles created with dump_open are not closed
properly, because the pcap_dump_close function is not
wrapped, and thus the dumpfile contains only some
tcpdump header.
Hello, I run into the same problem with the open_live function. After a while I found out the problem but I'm not sure where I should report it.
The pcap_dump_close or pcap_close function are properly wrapped into the destructor of the class. However, the destructor is written as follow in the pcap.i file line:
~pcapObject(void);
For some reason, swig only considers it as a destructor if is written like:
~pcapObject();
If you make that change and re-install the code, it will work just fine.
Humberto Abdelnur
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: NO
Hello, I run into the same problem with the open_live function. After a while I found out the problem but I'm not sure where I should report it.
The pcap_dump_close or pcap_close function are properly wrapped into the destructor of the class. However, the destructor is written as follow in the pcap.i file line:
~pcapObject(void);
For some reason, swig only considers it as a destructor if is written like:
~pcapObject();
If you make that change and re-install the code, it will work just fine.
Humberto Abdelnur