Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Commit

Permalink
Add comment specifying PDML reader needs PCAP file
Browse files Browse the repository at this point in the history
Updates #238
  • Loading branch information
pstavirs committed Jan 15, 2022
1 parent 0f322fb commit d09d830
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions common/pcapfileformat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ bool PcapFileFormat::open(const QString fileName,

pktBuf.resize(fileHdr.snapLen);

// XXX: PDML also needs the PCAP file to cross check packet bytes
// with the PDML data, so we can't do PDML conversion any earlier
// than this
qDebug("pdml check");
if (importOptions_.value("ViaPdml").toBool())
{
Expand Down Expand Up @@ -275,6 +278,8 @@ bool PcapFileFormat::open(const QString fileName,

emit status("Reading PDML packets...");
emit target(100); // in percentage

// pdml reader needs pcap, so pass self
isOk = reader.read(&pdmlFile, this, &stop_);

if (stop_)
Expand Down

0 comments on commit d09d830

Please sign in to comment.