summaryrefslogtreecommitdiffstats
path: root/examples/dumpdns-qr.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xexamples/dumpdns-qr.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/dumpdns-qr.lua b/examples/dumpdns-qr.lua
index d726e96..432531c 100755
--- a/examples/dumpdns-qr.lua
+++ b/examples/dumpdns-qr.lua
@@ -43,6 +43,10 @@ while true do
protocol = protocol.obj_prev
end
+ dns:reset()
+ if protocol ~= nil and protocol.obj_type == object.TCP then
+ dns.includes_dnslen = 1
+ end
dns.obj_prev = obj
if transport ~= nil and protocol ~= nil and dns:parse_header() == 0 then
transport = transport:cast()