aboutsummaryrefslogtreecommitdiffstats
path: root/test/lua/pcap_file.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/lua/pcap_file.lua')
-rw-r--r--test/lua/pcap_file.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/lua/pcap_file.lua b/test/lua/pcap_file.lua
index 9f42f9700b..d15b648ce4 100644
--- a/test/lua/pcap_file.lua
+++ b/test/lua/pcap_file.lua
@@ -8,7 +8,7 @@
be as good as the real thing; this is a simplistic implementation to show how to
create such file readers, and for testing purposes.
- This script requires Wireshark v1.11.3 or newer.
+ This script requires Wireshark v1.12 or newer.
--]]
--------------------------------------------------------------------------------
@@ -33,7 +33,7 @@ end
local major, minor, micro = get_version():match("(%d+)%.(%d+)%.(%d+)")
if major and tonumber(major) <= 1 and ((tonumber(minor) <= 10) or (tonumber(minor) == 11 and tonumber(micro) < 3)) then
error( "Sorry, but your " .. wireshark_name .. " version (" .. get_version() .. ") is too old for this script!\n" ..
- "This script needs " .. wireshark_name .. "version 1.11.3 or higher.\n" )
+ "This script needs " .. wireshark_name .. "version 1.12 or higher.\n" )
end
-- verify we have the Struct library in wireshark
@@ -576,6 +576,8 @@ parse_rec_header = function(funcname, file, file_settings, frame)
caplen = WTAP_MAX_PACKET_SIZE
end
+ frame.rec_type = wtap_rec_types.PACKET
+
frame.captured_length = caplen
frame.original_length = origlen