Fix tx ttag pcap filter capture filter syntax

The capture filter was not getting compiled earlier
This commit is contained in:
Srivats P 2023-04-29 12:33:34 +05:30
parent d17ab7ab42
commit 390ffae2b4

View File

@ -41,7 +41,7 @@ void PcapTxTtagStats::run()
struct bpf_program bpf; struct bpf_program bpf;
const int optimize = 1; const int optimize = 1;
QString capture_filter = QString( QString capture_filter = QString(
"(ether[len-4:4] == 0x%1) and (ether[len-5:1] == 0x%2") "(ether[len - 4:4] == 0x%1) and (ether[len - 5:1] == 0x%2)")
.arg(SignProtocol::magic(), 0, BASE_HEX) .arg(SignProtocol::magic(), 0, BASE_HEX)
.arg(SignProtocol::kTypeLenTtag, 0, BASE_HEX); .arg(SignProtocol::kTypeLenTtag, 0, BASE_HEX);