diff options
author | Evan Huus <eapache@gmail.com> | 2014-09-28 22:32:33 -0400 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2014-09-29 02:35:29 +0000 |
commit | 45fb37718e4d887b2a4087f5e5996cbe2e3a3a0b (patch) | |
tree | 988a491fe47d642db359c22edbdfd5c99a7b1c4b /test/lua | |
parent | 26e72012f6a5ac9e82ce5779b5e0a8b61f0d0729 (diff) |
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 <eapache@gmail.com>
Diffstat (limited to 'test/lua')
-rw-r--r-- | test/lua/pcap_file.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |