From 45fb37718e4d887b2a4087f5e5996cbe2e3a3a0b Mon Sep 17 00:00:00 2001 From: Evan Huus Date: Sun, 28 Sep 2014 22:32:33 -0400 Subject: Fix lua bindings to handle timestamp precision changes The recent wiretap changes broke the generation of init.lua among other things, though it did coincidentally fix one of the "yuck" comments in the generator regex. (Note that this is entirely untested, because out-of-tree init.lua is and always has been broken, but it should work) Change-Id: Id0c27b31c596613997de4ba2f6088eb9d6c8fc53 Reviewed-on: https://code.wireshark.org/review/4361 Reviewed-by: Evan Huus --- test/lua/pcap_file.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/lua') diff --git a/test/lua/pcap_file.lua b/test/lua/pcap_file.lua index d15b648ce4..b949a38717 100644 --- a/test/lua/pcap_file.lua +++ b/test/lua/pcap_file.lua @@ -64,7 +64,7 @@ local default_settings = linktype = -1, -- the raw linktype number in the file header wtap_type = wtap_encaps.UNKNOWN, -- the mapped internal wtap number based on linktype endianess = ENC_BIG_ENDIAN, - time_precision = wtap_filetypes.TSPREC_USEC, + time_precision = wtap_tsprecs.USEC, rec_hdr_len = 16, -- default size of record header rec_hdr_patt = "I4 I4 I4 I4", -- pattern for Struct to use num_rec_fields = 4, -- number of vars in pattern -- cgit v1.2.3