Hello,
I am trying to display the rtt values from a wireshark pcap file. I am using QProcess as follows:
QString exec
="C:/Progra~1/Wireshark/tshark.exe";
args<< "-r" <<qPrintable(filepath)<<"-Y"<<"tcp.analysis.ack_rtt and tcp.stream eq 0"<<"-e"<<"\"tcp.analysis.ack_rtt\""<<"-T"<<"fields"<<"> C:/it/rtt.txt";
tshark
->start
(exec, args,
QIODevice::ReadWrite);
QString exec="C:/Progra~1/Wireshark/tshark.exe";
QStringList args;
args<< "-r" <<qPrintable(filepath)<<"-Y"<<"tcp.analysis.ack_rtt and tcp.stream eq 0"<<"-e"<<"\"tcp.analysis.ack_rtt\""<<"-T"<<"fields"<<"> C:/it/rtt.txt";
tshark->start(exec, args, QIODevice::ReadWrite);
To copy to clipboard, switch view to plain text mode
However, I keep getting the following error using
qDebug()<<tshark->readAllStandardError();
qDebug()<<tshark->readAllStandardError();
To copy to clipboard, switch view to plain text mode
tshark: Display filters were specified both with "-d" and with additional command-line arguments.
Please advise on what I may be doing wrong. Running from command line produces no errors and works just fine.
Bookmarks