Hello there.
There's an error in capturePCAP in this line:
ss << header->ts.tv_sec << std::setw( 6 ) << std::left << std::setfill( '0' ) << header->ts.tv_usec;
It should be like this:
ss << header->ts.tv_sec << std::setw( 6 ) << std::right << std::setfill( '0' ) << header->ts.tv_usec;
The '0' were filled at the end instead of between tv_sec and tv_usec. So, the times sometimes were incorrect.
Hope it helps.
P.S. I'm not sure if this is the way of creating a pull request. First time doing one.
Hello there. There's an error in capturePCAP in this line: ss << header->ts.tv_sec << std::setw( 6 ) << std::left << std::setfill( '0' ) << header->ts.tv_usec; It should be like this: ss << header->ts.tv_sec << std::setw( 6 ) << std::right << std::setfill( '0' ) << header->ts.tv_usec; The '0' were filled at the end instead of between tv_sec and tv_usec. So, the times sometimes were incorrect. Hope it helps. P.S. I'm not sure if this is the way of creating a pull request. First time doing one.