aboutsummaryrefslogtreecommitdiffstats
path: root/test/lua
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2017-03-15 09:21:18 +0100
committerPeter Wu <peter@lekensteyn.nl>2017-03-15 18:44:44 +0000
commit0837dd23ec0df1446c2912f378eb9fefe3fe362d (patch)
tree8eebe4df2a6c221d2c04e4c1e5b82c5d4f87e2fb /test/lua
parent0156f22c62c1d955724ae44ca607c95e2944aa26 (diff)
Lua: Add absolute time base values
Add ABSOLUTE_TIME_* defines to the base table in init.lua for use in ProtoField.absolute_time. Change-Id: I5c99eafdac97655d71fd4f3374294cd587afaf0a Reviewed-on: https://code.wireshark.org/review/20543 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'test/lua')
-rw-r--r--test/lua/tvb.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lua/tvb.lua b/test/lua/tvb.lua
index 1eb576c973..e03a7b61b4 100644
--- a/test/lua/tvb.lua
+++ b/test/lua/tvb.lua
@@ -155,7 +155,7 @@ local testfield =
OID = ProtoField.oid ("test.basic.oid", "Basic OID"),
REL_OID = ProtoField.rel_oid("test.basic.rel_oid", "Basic Relative OID"),
ABSOLUTE_LOCAL = ProtoField.absolute_time("test.basic.absolute.local","Basic absolute local"),
- ABSOLUTE_UTC = ProtoField.absolute_time("test.basic.absolute.utc", "Basic absolute utc", 1001),
+ ABSOLUTE_UTC = ProtoField.absolute_time("test.basic.absolute.utc", "Basic absolute utc", base.UTC),
IPv4 = ProtoField.ipv4 ("test.basic.ipv4", "Basic ipv4 address"),
IPv6 = ProtoField.ipv6 ("test.basic.ipv6", "Basic ipv6 address"),
-- GUID = ProtoField.guid ("test.basic.guid", "Basic GUID"),
@@ -164,7 +164,7 @@ local testfield =
time =
{
ABSOLUTE_LOCAL = ProtoField.absolute_time("test.time.absolute.local","Time absolute local"),
- ABSOLUTE_UTC = ProtoField.absolute_time("test.time.absolute.utc", "Time absolute utc", 1001),
+ ABSOLUTE_UTC = ProtoField.absolute_time("test.time.absolute.utc", "Time absolute utc", base.UTC),
},
bytes =