Miss Engineer
17th October 2014, 06:51
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";
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);
However, I keep getting the following error using
qDebug()<<tshark->readAllStandardError();
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.
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";
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);
However, I keep getting the following error using
qDebug()<<tshark->readAllStandardError();
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.