Skip to content
Snippets Groups Projects
Verified Commit b441523d authored by Petr Špaček's avatar Petr Špaček
Browse files

filter-dnsq: print ratio of malformed packets

parent 98bb0bc2
No related branches found
No related tags found
1 merge request!31PCAP sanity checks
......@@ -178,7 +178,9 @@ else
log:notice(string.format("%d packets matched filter", npackets))
if not args.malformed then
if nmalformed > 0 then
log:notice("%0.f malformed DNS packets detected and omitted", nmalformed)
log:notice("%0.f malformed DNS packets detected and omitted "
.. "(%f %% of matching packets)",
nmalformed, nmalformed / (nmalformed + npackets) * 100)
else
log:info("0 malformed DNS packets detected")
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment