Fix missing packet summary line in pcap import diff

Looks like starting somewhere in Wireshark 2.x, when we give -x to
tshark, we also need to explicitly give -P to include the one-line
summary of the packet. This one-line summary is used in the diff to find
out which packets experienced a diff.
This commit is contained in:
Srivats P 2020-04-03 20:29:18 +05:30
parent f1a962a6c4
commit 487f3e653d

View File

@ -276,6 +276,7 @@ bool PcapFileFormat::open(const QString fileName,
QStringList()
<< QString("-r%1").arg(fileName)
<< "-otcp.desegment_tcp_streams:FALSE"
<< "-P"
<< "-x");
if (!tshark.waitForStarted(-1))
{
@ -336,6 +337,7 @@ bool PcapFileFormat::open(const QString fileName,
QStringList()
<< QString("-r%1").arg(importedPcapFile.fileName())
<< "-otcp.desegment_tcp_streams:FALSE"
<< "-P"
<< "-x");
if (!tshark.waitForStarted(-1))
{