sign: Exclude ICMP packets from Rx Stream Stats
This commit is contained in:
parent
954a931717
commit
d58b614e67
@ -45,9 +45,19 @@ void PcapRxStats::run()
|
|||||||
int flags = PCAP_OPENFLAG_PROMISCUOUS;
|
int flags = PCAP_OPENFLAG_PROMISCUOUS;
|
||||||
char errbuf[PCAP_ERRBUF_SIZE] = "";
|
char errbuf[PCAP_ERRBUF_SIZE] = "";
|
||||||
struct bpf_program bpf;
|
struct bpf_program bpf;
|
||||||
QString capture_filter = QString("ether[len - 4:4] == 0x%1").arg(
|
|
||||||
SignProtocol::magic(), 0, BASE_HEX);
|
|
||||||
const int optimize = 1;
|
const int optimize = 1;
|
||||||
|
QString capture_filter = QString("(ether[len - 4:4] == 0x%1)").arg(
|
||||||
|
SignProtocol::magic(), 0, BASE_HEX);
|
||||||
|
// XXX: Exclude ICMP packets which contain an embedded signed packet
|
||||||
|
// For now we check upto 4 vlan tags
|
||||||
|
capture_filter.append(
|
||||||
|
"and not ("
|
||||||
|
"icmp or "
|
||||||
|
"(vlan and icmp) or "
|
||||||
|
"(vlan and icmp) or "
|
||||||
|
"(vlan and icmp) or "
|
||||||
|
"(vlan and icmp) "
|
||||||
|
")");
|
||||||
|
|
||||||
qDebug("In %s", __PRETTY_FUNCTION__);
|
qDebug("In %s", __PRETTY_FUNCTION__);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user