summaryrefslogtreecommitdiffstats
path: root/examples/qr-multi-pcap-state.lua
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2023-12-10 09:45:27 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2023-12-10 09:45:27 +0000
commit38b6c8c8ca8294c87bce5325fbba50fba1a40465 (patch)
tree14f869a6270a904547a6abcb113c5425554d8331 /examples/qr-multi-pcap-state.lua
parentAdding upstream version 1.2.3. (diff)
downloaddnsjit-38b6c8c8ca8294c87bce5325fbba50fba1a40465.tar.xz
dnsjit-38b6c8c8ca8294c87bce5325fbba50fba1a40465.zip
Adding upstream version 1.3.0.upstream/1.3.0upstream
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'examples/qr-multi-pcap-state.lua')
-rwxr-xr-xexamples/qr-multi-pcap-state.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/qr-multi-pcap-state.lua b/examples/qr-multi-pcap-state.lua
index cf2cf0d..850ea68 100755
--- a/examples/qr-multi-pcap-state.lua
+++ b/examples/qr-multi-pcap-state.lua
@@ -155,6 +155,10 @@ while true do
pcap = pcap.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 pcap ~= nil and transport ~= nil and protocol ~= nil and dns:parse_header() == 0 then
transport = transport:cast()