Skip to content

Commit a4b3c77

Browse files
Regenerate Optiq dissectors with timestsmps
1 parent fa5e5d8 commit a4b3c77

31 files changed

Lines changed: 1680 additions & 510 deletions

File tree

Euronext/Euronext_Optiq_MarketDataGateway_Sbe_v3_0_Dissector.lua

Lines changed: 55 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,12 +1079,15 @@ euronext_optiq_marketdatagateway_sbe_v3_0.original_report_timestamp.size = 8
10791079

10801080
-- Display: Original Report Timestamp
10811081
euronext_optiq_marketdatagateway_sbe_v3_0.original_report_timestamp.display = function(value)
1082-
-- Check if field has value
1082+
-- Check null sentinel value
10831083
if value == UInt64(0xFFFFFFFF, 0xFFFFFFFF) then
10841084
return "Original Report Timestamp: No Value"
10851085
end
1086+
-- Parse unix timestamp
1087+
local seconds = math.floor(value:tonumber()/1000000000)
1088+
local nanoseconds = value:tonumber()%1000000000
10861089

1087-
return "Original Report Timestamp: "..value
1090+
return "Original Report Timestamp: "..os.date("%x %H:%M:%S.", seconds)..string.format("%09d", nanoseconds)
10881091
end
10891092

10901093
-- Dissect: Original Report Timestamp
@@ -2605,7 +2608,11 @@ euronext_optiq_marketdatagateway_sbe_v3_0.event_time.size = 8
26052608

26062609
-- Display: Event Time
26072610
euronext_optiq_marketdatagateway_sbe_v3_0.event_time.display = function(value)
2608-
return "Event Time: "..value
2611+
-- Parse unix timestamp
2612+
local seconds = math.floor(value:tonumber()/1000000000)
2613+
local nanoseconds = value:tonumber()%1000000000
2614+
2615+
return "Event Time: "..os.date("%x %H:%M:%S.", seconds)..string.format("%09d", nanoseconds)
26092616
end
26102617

26112618
-- Dissect: Event Time
@@ -7895,7 +7902,11 @@ euronext_optiq_marketdatagateway_sbe_v3_0.low_time.size = 8
78957902

78967903
-- Display: Low Time
78977904
euronext_optiq_marketdatagateway_sbe_v3_0.low_time.display = function(value)
7898-
return "Low Time: "..value
7905+
-- Parse unix timestamp
7906+
local seconds = math.floor(value:tonumber()/1000000000)
7907+
local nanoseconds = value:tonumber()%1000000000
7908+
7909+
return "Low Time: "..os.date("%x %H:%M:%S.", seconds)..string.format("%09d", nanoseconds)
78997910
end
79007911

79017912
-- Dissect: Low Time
@@ -7941,7 +7952,11 @@ euronext_optiq_marketdatagateway_sbe_v3_0.high_time.size = 8
79417952

79427953
-- Display: High Time
79437954
euronext_optiq_marketdatagateway_sbe_v3_0.high_time.display = function(value)
7944-
return "High Time: "..value
7955+
-- Parse unix timestamp
7956+
local seconds = math.floor(value:tonumber()/1000000000)
7957+
local nanoseconds = value:tonumber()%1000000000
7958+
7959+
return "High Time: "..os.date("%x %H:%M:%S.", seconds)..string.format("%09d", nanoseconds)
79457960
end
79467961

79477962
-- Dissect: High Time
@@ -8056,12 +8071,15 @@ euronext_optiq_marketdatagateway_sbe_v3_0.confirmed_reference_time.size = 8
80568071

80578072
-- Display: Confirmed Reference Time
80588073
euronext_optiq_marketdatagateway_sbe_v3_0.confirmed_reference_time.display = function(value)
8059-
-- Check if field has value
8074+
-- Check null sentinel value
80608075
if value == UInt64(0xFFFFFFFF, 0xFFFFFFFF) then
80618076
return "Confirmed Reference Time: No Value"
80628077
end
8078+
-- Parse unix timestamp
8079+
local seconds = math.floor(value:tonumber()/1000000000)
8080+
local nanoseconds = value:tonumber()%1000000000
80638081

8064-
return "Confirmed Reference Time: "..value
8082+
return "Confirmed Reference Time: "..os.date("%x %H:%M:%S.", seconds)..string.format("%09d", nanoseconds)
80658083
end
80668084

80678085
-- Dissect: Confirmed Reference Time
@@ -8112,7 +8130,11 @@ euronext_optiq_marketdatagateway_sbe_v3_0.opening_time.size = 8
81128130

81138131
-- Display: Opening Time
81148132
euronext_optiq_marketdatagateway_sbe_v3_0.opening_time.display = function(value)
8115-
return "Opening Time: "..value
8133+
-- Parse unix timestamp
8134+
local seconds = math.floor(value:tonumber()/1000000000)
8135+
local nanoseconds = value:tonumber()%1000000000
8136+
8137+
return "Opening Time: "..os.date("%x %H:%M:%S.", seconds)..string.format("%09d", nanoseconds)
81168138
end
81178139

81188140
-- Dissect: Opening Time
@@ -11075,7 +11097,11 @@ euronext_optiq_marketdatagateway_sbe_v3_0.phase_time.size = 8
1107511097

1107611098
-- Display: Phase Time
1107711099
euronext_optiq_marketdatagateway_sbe_v3_0.phase_time.display = function(value)
11078-
return "Phase Time: "..value
11100+
-- Parse unix timestamp
11101+
local seconds = math.floor(value:tonumber()/1000000000)
11102+
local nanoseconds = value:tonumber()%1000000000
11103+
11104+
return "Phase Time: "..os.date("%x %H:%M:%S.", seconds)..string.format("%09d", nanoseconds)
1107911105
end
1108011106

1108111107
-- Dissect: Phase Time
@@ -11397,12 +11423,15 @@ euronext_optiq_marketdatagateway_sbe_v3_0.scheduled_event_time.size = 8
1139711423

1139811424
-- Display: Scheduled Event Time
1139911425
euronext_optiq_marketdatagateway_sbe_v3_0.scheduled_event_time.display = function(value)
11400-
-- Check if field has value
11426+
-- Check null sentinel value
1140111427
if value == UInt64(0xFFFFFFFF, 0xFFFFFFFF) then
1140211428
return "Scheduled Event Time: No Value"
1140311429
end
11430+
-- Parse unix timestamp
11431+
local seconds = math.floor(value:tonumber()/1000000000)
11432+
local nanoseconds = value:tonumber()%1000000000
1140411433

11405-
return "Scheduled Event Time: "..value
11434+
return "Scheduled Event Time: "..os.date("%x %H:%M:%S.", seconds)..string.format("%09d", nanoseconds)
1140611435
end
1140711436

1140811437
-- Dissect: Scheduled Event Time
@@ -14617,12 +14646,15 @@ euronext_optiq_marketdatagateway_sbe_v3_0.retransmission_end_time.size = 8
1461714646

1461814647
-- Display: Retransmission End Time
1461914648
euronext_optiq_marketdatagateway_sbe_v3_0.retransmission_end_time.display = function(value)
14620-
-- Check if field has value
14649+
-- Check null sentinel value
1462114650
if value == UInt64(0xFFFFFFFF, 0xFFFFFFFF) then
1462214651
return "Retransmission End Time: No Value"
1462314652
end
14653+
-- Parse unix timestamp
14654+
local seconds = math.floor(value:tonumber()/1000000000)
14655+
local nanoseconds = value:tonumber()%1000000000
1462414656

14625-
return "Retransmission End Time: "..value
14657+
return "Retransmission End Time: "..os.date("%x %H:%M:%S.", seconds)..string.format("%09d", nanoseconds)
1462614658
end
1462714659

1462814660
-- Dissect: Retransmission End Time
@@ -14645,12 +14677,15 @@ euronext_optiq_marketdatagateway_sbe_v3_0.retransmission_start_time.size = 8
1464514677

1464614678
-- Display: Retransmission Start Time
1464714679
euronext_optiq_marketdatagateway_sbe_v3_0.retransmission_start_time.display = function(value)
14648-
-- Check if field has value
14680+
-- Check null sentinel value
1464914681
if value == UInt64(0xFFFFFFFF, 0xFFFFFFFF) then
1465014682
return "Retransmission Start Time: No Value"
1465114683
end
14684+
-- Parse unix timestamp
14685+
local seconds = math.floor(value:tonumber()/1000000000)
14686+
local nanoseconds = value:tonumber()%1000000000
1465214687

14653-
return "Retransmission Start Time: "..value
14688+
return "Retransmission Start Time: "..os.date("%x %H:%M:%S.", seconds)..string.format("%09d", nanoseconds)
1465414689
end
1465514690

1465614691
-- Dissect: Retransmission Start Time
@@ -15566,7 +15601,11 @@ euronext_optiq_marketdatagateway_sbe_v3_0.packet_time.size = 8
1556615601

1556715602
-- Display: Packet Time
1556815603
euronext_optiq_marketdatagateway_sbe_v3_0.packet_time.display = function(value)
15569-
return "Packet Time: "..value
15604+
-- Parse unix timestamp
15605+
local seconds = math.floor(value:tonumber()/1000000000)
15606+
local nanoseconds = value:tonumber()%1000000000
15607+
15608+
return "Packet Time: "..os.date("%x %H:%M:%S.", seconds)..string.format("%09d", nanoseconds)
1557015609
end
1557115610

1557215611
-- Dissect: Packet Time

Euronext/Euronext_Optiq_MarketDataGateway_Sbe_v3_1_Dissector.lua

Lines changed: 55 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,12 +1079,15 @@ euronext_optiq_marketdatagateway_sbe_v3_1.original_report_timestamp.size = 8
10791079

10801080
-- Display: Original Report Timestamp
10811081
euronext_optiq_marketdatagateway_sbe_v3_1.original_report_timestamp.display = function(value)
1082-
-- Check if field has value
1082+
-- Check null sentinel value
10831083
if value == UInt64(0xFFFFFFFF, 0xFFFFFFFF) then
10841084
return "Original Report Timestamp: No Value"
10851085
end
1086+
-- Parse unix timestamp
1087+
local seconds = math.floor(value:tonumber()/1000000000)
1088+
local nanoseconds = value:tonumber()%1000000000
10861089

1087-
return "Original Report Timestamp: "..value
1090+
return "Original Report Timestamp: "..os.date("%x %H:%M:%S.", seconds)..string.format("%09d", nanoseconds)
10881091
end
10891092

10901093
-- Dissect: Original Report Timestamp
@@ -2605,7 +2608,11 @@ euronext_optiq_marketdatagateway_sbe_v3_1.event_time.size = 8
26052608

26062609
-- Display: Event Time
26072610
euronext_optiq_marketdatagateway_sbe_v3_1.event_time.display = function(value)
2608-
return "Event Time: "..value
2611+
-- Parse unix timestamp
2612+
local seconds = math.floor(value:tonumber()/1000000000)
2613+
local nanoseconds = value:tonumber()%1000000000
2614+
2615+
return "Event Time: "..os.date("%x %H:%M:%S.", seconds)..string.format("%09d", nanoseconds)
26092616
end
26102617

26112618
-- Dissect: Event Time
@@ -7909,7 +7916,11 @@ euronext_optiq_marketdatagateway_sbe_v3_1.low_time.size = 8
79097916

79107917
-- Display: Low Time
79117918
euronext_optiq_marketdatagateway_sbe_v3_1.low_time.display = function(value)
7912-
return "Low Time: "..value
7919+
-- Parse unix timestamp
7920+
local seconds = math.floor(value:tonumber()/1000000000)
7921+
local nanoseconds = value:tonumber()%1000000000
7922+
7923+
return "Low Time: "..os.date("%x %H:%M:%S.", seconds)..string.format("%09d", nanoseconds)
79137924
end
79147925

79157926
-- Dissect: Low Time
@@ -7955,7 +7966,11 @@ euronext_optiq_marketdatagateway_sbe_v3_1.high_time.size = 8
79557966

79567967
-- Display: High Time
79577968
euronext_optiq_marketdatagateway_sbe_v3_1.high_time.display = function(value)
7958-
return "High Time: "..value
7969+
-- Parse unix timestamp
7970+
local seconds = math.floor(value:tonumber()/1000000000)
7971+
local nanoseconds = value:tonumber()%1000000000
7972+
7973+
return "High Time: "..os.date("%x %H:%M:%S.", seconds)..string.format("%09d", nanoseconds)
79597974
end
79607975

79617976
-- Dissect: High Time
@@ -8070,12 +8085,15 @@ euronext_optiq_marketdatagateway_sbe_v3_1.confirmed_reference_time.size = 8
80708085

80718086
-- Display: Confirmed Reference Time
80728087
euronext_optiq_marketdatagateway_sbe_v3_1.confirmed_reference_time.display = function(value)
8073-
-- Check if field has value
8088+
-- Check null sentinel value
80748089
if value == UInt64(0xFFFFFFFF, 0xFFFFFFFF) then
80758090
return "Confirmed Reference Time: No Value"
80768091
end
8092+
-- Parse unix timestamp
8093+
local seconds = math.floor(value:tonumber()/1000000000)
8094+
local nanoseconds = value:tonumber()%1000000000
80778095

8078-
return "Confirmed Reference Time: "..value
8096+
return "Confirmed Reference Time: "..os.date("%x %H:%M:%S.", seconds)..string.format("%09d", nanoseconds)
80798097
end
80808098

80818099
-- Dissect: Confirmed Reference Time
@@ -8126,7 +8144,11 @@ euronext_optiq_marketdatagateway_sbe_v3_1.opening_time.size = 8
81268144

81278145
-- Display: Opening Time
81288146
euronext_optiq_marketdatagateway_sbe_v3_1.opening_time.display = function(value)
8129-
return "Opening Time: "..value
8147+
-- Parse unix timestamp
8148+
local seconds = math.floor(value:tonumber()/1000000000)
8149+
local nanoseconds = value:tonumber()%1000000000
8150+
8151+
return "Opening Time: "..os.date("%x %H:%M:%S.", seconds)..string.format("%09d", nanoseconds)
81308152
end
81318153

81328154
-- Dissect: Opening Time
@@ -11089,7 +11111,11 @@ euronext_optiq_marketdatagateway_sbe_v3_1.phase_time.size = 8
1108911111

1109011112
-- Display: Phase Time
1109111113
euronext_optiq_marketdatagateway_sbe_v3_1.phase_time.display = function(value)
11092-
return "Phase Time: "..value
11114+
-- Parse unix timestamp
11115+
local seconds = math.floor(value:tonumber()/1000000000)
11116+
local nanoseconds = value:tonumber()%1000000000
11117+
11118+
return "Phase Time: "..os.date("%x %H:%M:%S.", seconds)..string.format("%09d", nanoseconds)
1109311119
end
1109411120

1109511121
-- Dissect: Phase Time
@@ -11411,12 +11437,15 @@ euronext_optiq_marketdatagateway_sbe_v3_1.scheduled_event_time.size = 8
1141111437

1141211438
-- Display: Scheduled Event Time
1141311439
euronext_optiq_marketdatagateway_sbe_v3_1.scheduled_event_time.display = function(value)
11414-
-- Check if field has value
11440+
-- Check null sentinel value
1141511441
if value == UInt64(0xFFFFFFFF, 0xFFFFFFFF) then
1141611442
return "Scheduled Event Time: No Value"
1141711443
end
11444+
-- Parse unix timestamp
11445+
local seconds = math.floor(value:tonumber()/1000000000)
11446+
local nanoseconds = value:tonumber()%1000000000
1141811447

11419-
return "Scheduled Event Time: "..value
11448+
return "Scheduled Event Time: "..os.date("%x %H:%M:%S.", seconds)..string.format("%09d", nanoseconds)
1142011449
end
1142111450

1142211451
-- Dissect: Scheduled Event Time
@@ -14631,12 +14660,15 @@ euronext_optiq_marketdatagateway_sbe_v3_1.retransmission_end_time.size = 8
1463114660

1463214661
-- Display: Retransmission End Time
1463314662
euronext_optiq_marketdatagateway_sbe_v3_1.retransmission_end_time.display = function(value)
14634-
-- Check if field has value
14663+
-- Check null sentinel value
1463514664
if value == UInt64(0xFFFFFFFF, 0xFFFFFFFF) then
1463614665
return "Retransmission End Time: No Value"
1463714666
end
14667+
-- Parse unix timestamp
14668+
local seconds = math.floor(value:tonumber()/1000000000)
14669+
local nanoseconds = value:tonumber()%1000000000
1463814670

14639-
return "Retransmission End Time: "..value
14671+
return "Retransmission End Time: "..os.date("%x %H:%M:%S.", seconds)..string.format("%09d", nanoseconds)
1464014672
end
1464114673

1464214674
-- Dissect: Retransmission End Time
@@ -14659,12 +14691,15 @@ euronext_optiq_marketdatagateway_sbe_v3_1.retransmission_start_time.size = 8
1465914691

1466014692
-- Display: Retransmission Start Time
1466114693
euronext_optiq_marketdatagateway_sbe_v3_1.retransmission_start_time.display = function(value)
14662-
-- Check if field has value
14694+
-- Check null sentinel value
1466314695
if value == UInt64(0xFFFFFFFF, 0xFFFFFFFF) then
1466414696
return "Retransmission Start Time: No Value"
1466514697
end
14698+
-- Parse unix timestamp
14699+
local seconds = math.floor(value:tonumber()/1000000000)
14700+
local nanoseconds = value:tonumber()%1000000000
1466614701

14667-
return "Retransmission Start Time: "..value
14702+
return "Retransmission Start Time: "..os.date("%x %H:%M:%S.", seconds)..string.format("%09d", nanoseconds)
1466814703
end
1466914704

1467014705
-- Dissect: Retransmission Start Time
@@ -15580,7 +15615,11 @@ euronext_optiq_marketdatagateway_sbe_v3_1.packet_time.size = 8
1558015615

1558115616
-- Display: Packet Time
1558215617
euronext_optiq_marketdatagateway_sbe_v3_1.packet_time.display = function(value)
15583-
return "Packet Time: "..value
15618+
-- Parse unix timestamp
15619+
local seconds = math.floor(value:tonumber()/1000000000)
15620+
local nanoseconds = value:tonumber()%1000000000
15621+
15622+
return "Packet Time: "..os.date("%x %H:%M:%S.", seconds)..string.format("%09d", nanoseconds)
1558415623
end
1558515624

1558615625
-- Dissect: Packet Time

0 commit comments

Comments
 (0)