Skip to content

Commit

Permalink
Fix SoupBin Tcp v3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Open-Markets-Initiative committed May 1, 2024
1 parent 762a482 commit 6ca5cdb
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
19 changes: 18 additions & 1 deletion Nasdaq/Nasdaq.Common.SoupBinTcp.Ouch.v3.0.Script.Dissector.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ nasdaq_common_soupbintcp_ouch_v3_0.fields.requested_sequence_number = ProtoField
nasdaq_common_soupbintcp_ouch_v3_0.fields.requested_session = ProtoField.new("Requested Session", "nasdaq.common.soupbintcp.ouch.v3.0.requestedsession", ftypes.STRING)
nasdaq_common_soupbintcp_ouch_v3_0.fields.sequence_number = ProtoField.new("Sequence Number", "nasdaq.common.soupbintcp.ouch.v3.0.sequencenumber", ftypes.STRING)
nasdaq_common_soupbintcp_ouch_v3_0.fields.sequenced_data_packet = ProtoField.new("Sequenced Data Packet", "nasdaq.common.soupbintcp.ouch.v3.0.sequenceddatapacket", ftypes.STRING)
nasdaq_common_soupbintcp_ouch_v3_0.fields.sequenced_message = ProtoField.new("Sequenced Message", "nasdaq.common.soupbintcp.ouch.v3.0.sequencedmessage", ftypes.BYTES)
nasdaq_common_soupbintcp_ouch_v3_0.fields.sequenced_message_type = ProtoField.new("Sequenced Message Type", "nasdaq.common.soupbintcp.ouch.v3.0.sequencedmessagetype", ftypes.STRING)
nasdaq_common_soupbintcp_ouch_v3_0.fields.session = ProtoField.new("Session", "nasdaq.common.soupbintcp.ouch.v3.0.session", ftypes.STRING)
nasdaq_common_soupbintcp_ouch_v3_0.fields.soup_bin_tcp_packet = ProtoField.new("Soup Bin Tcp Packet", "nasdaq.common.soupbintcp.ouch.v3.0.soupbintcppacket", ftypes.STRING)
Expand Down Expand Up @@ -348,6 +349,22 @@ nasdaq_common_soupbintcp_ouch_v3_0_dissect.login_request_packet = function(buffe
return nasdaq_common_soupbintcp_ouch_v3_0_dissect.login_request_packet_fields(buffer, offset, packet, parent)
end

-- Display: Sequenced Message
nasdaq_common_soupbintcp_ouch_v3_0_display.sequenced_message = function(value)
return "Sequenced Message: "..value
end

-- Dissect runtime sized field: Sequenced Message
nasdaq_common_soupbintcp_ouch_v3_0_dissect.sequenced_message = function(buffer, offset, packet, parent, size)
local range = buffer(offset, size)
local value = range:bytes():tohex(false, " ")
local display = nasdaq_common_soupbintcp_ouch_v3_0_display.sequenced_message(value, buffer, offset, packet, parent, size)

parent:add(nasdaq_common_soupbintcp_ouch_v3_0.fields.sequenced_message, range, value, display)

return offset + size
end

-- Size: Sequenced Message Type
nasdaq_common_soupbintcp_ouch_v3_0_size_of.sequenced_message_type = 1

Expand Down Expand Up @@ -396,7 +413,7 @@ nasdaq_common_soupbintcp_ouch_v3_0_dissect.sequenced_data_packet_fields = functi
-- Runtime Size Of: Sequenced Message
local size_of_sequenced_message = packet_length - 2

-- Sequenced Message
-- Sequenced Message: 0 Byte
index = nasdaq_common_soupbintcp_ouch_v3_0_dissect.sequenced_message(buffer, index, packet, parent, size_of_sequenced_message)

return index
Expand Down
2 changes: 1 addition & 1 deletion Nasdaq/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
| Bx Equities | [Orders][Nasdaq.Bx.Equities.Orders.Ouch.v4.2.Dissector] | Ouch | [4.2][Nasdaq.Bx.Equities.Orders.Ouch.v4.2.Dissector] | 7/8/2019 | 3299 | [Active][Omi.Glossary.Status.Active] | [Untested][Omi.Glossary.Testing.Untested] | [url][Nasdaq.Bx.Equities.Orders.Ouch.v4.2.Url] - [pdf][Nasdaq.Bx.Equities.Orders.Ouch.v4.2.Pdf] |
| Bx Options | [DepthOfMarket][Nasdaq.Bx.Options.DepthOfMarket.Itch.v1.3.Dissector] | Itch | [1.3][Nasdaq.Bx.Options.DepthOfMarket.Itch.v1.3.Dissector] | 11/2/2017 | 3864 | [Active][Omi.Glossary.Status.Active] | [Untested][Omi.Glossary.Testing.Untested] | [url][Nasdaq.Bx.Options.DepthOfMarket.Itch.v1.3.Url] - [pdf][Nasdaq.Bx.Options.DepthOfMarket.Itch.v1.3.Pdf] |
| Bx Options | [TopOfMarket][Nasdaq.Bx.Options.TopOfMarket.Itch.v1.2.Dissector] | Itch | [1.2][Nasdaq.Bx.Options.TopOfMarket.Itch.v1.2.Dissector] | 11/2/2017 | 2402 | [Active][Omi.Glossary.Status.Active] | [Untested][Omi.Glossary.Testing.Untested] | [url][Nasdaq.Bx.Options.TopOfMarket.Itch.v1.2.Url] - [pdf][Nasdaq.Bx.Options.TopOfMarket.Itch.v1.2.Pdf] |
| Common | [SoupBinTcp][Nasdaq.Common.SoupBinTcp.Ouch.v3.0.Dissector] | Ouch | [3.0][Nasdaq.Common.SoupBinTcp.Ouch.v3.0.Dissector] | 2/22/2017 | 970 | [Header][Omi.Glossary.Status.Header] | [Verified][Omi.Glossary.Testing.Verified] | [url][Nasdaq.Common.SoupBinTcp.Ouch.v3.0.Url] - [pdf][Nasdaq.Common.SoupBinTcp.Ouch.v3.0.Pdf] |
| Common | [SoupBinTcp][Nasdaq.Common.SoupBinTcp.Ouch.v3.0.Dissector] | Ouch | [3.0][Nasdaq.Common.SoupBinTcp.Ouch.v3.0.Dissector] | 2/22/2017 | 987 | [Header][Omi.Glossary.Status.Header] | [Verified][Omi.Glossary.Testing.Verified] | [url][Nasdaq.Common.SoupBinTcp.Ouch.v3.0.Url] - [pdf][Nasdaq.Common.SoupBinTcp.Ouch.v3.0.Pdf] |
| Equities | [Aggregated][Nasdaq.Equities.Aggregated.Itch.v2.0.Dissector] | Itch | [2.0][Nasdaq.Equities.Aggregated.Itch.v2.0.Dissector] | 9/12/2017 | 3197 | [Active][Omi.Glossary.Status.Active] | [Untested][Omi.Glossary.Testing.Untested] | [url][Nasdaq.Equities.Aggregated.Itch.v2.0.Url] - [pdf][Nasdaq.Equities.Aggregated.Itch.v2.0.Pdf] |
| Equities | [Level2][Nasdaq.Equities.Level2.Itch.v2.0.Dissector] | Itch | [2.0][Nasdaq.Equities.Level2.Itch.v2.0.Dissector] | 5/3/2018 | 2755 | [Active][Omi.Glossary.Status.Active] | [Untested][Omi.Glossary.Testing.Untested] | [url][Nasdaq.Equities.Level2.Itch.v2.0.Url] - [pdf][Nasdaq.Equities.Level2.Itch.v2.0.Pdf] |
| Equities | [Noi][Nasdaq.Equities.Noi.Itch.v3.0.Dissector] | Itch | [3.0][Nasdaq.Equities.Noi.Itch.v3.0.Dissector] | 9/12/2017 | 2077 | [Active][Omi.Glossary.Status.Active] | [Untested][Omi.Glossary.Testing.Untested] | [url][Nasdaq.Equities.Noi.Itch.v3.0.Url] - [pdf][Nasdaq.Equities.Noi.Itch.v3.0.Pdf] |
Expand Down
2 changes: 1 addition & 1 deletion ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Updates are greatly appreciated; however, this entire repository is source gener

| Protocol Count | Generated Lines |
| --- | --- |
| 298 | 2,910,944 |
| 298 | 2,910,961 |

Note: Our dissector model is still under rapid development.

Expand Down

0 comments on commit 6ca5cdb

Please sign in to comment.