Skip to content

Commit

Permalink
Update the lua dissector to work with the latest changes (#1580)
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper authored May 31, 2024
1 parent 1238710 commit b079f1a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tools/service-protocol-wireshark-dissector/dissector.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ local p_service_protocol = Proto("restate_service_protocol", "Restate Service En

-- Define the fields
local f_ty = ProtoField.uint16("restate_service_protocol.message_type", "Message Type", base.HEX)
local f_protocol_version = ProtoField.uint16("restate_service_protocol.protocol_version", "Protocol version")
local f_completed = ProtoField.bool("restate_service_protocol.completed", "COMPLETED", base.NONE, {
"Completed",
"Not completed"
Expand All @@ -30,7 +29,6 @@ local f_message = ProtoField.string("restate_service_protocol.message", "Message

p_service_protocol.fields = {
f_ty,
f_protocol_version,
f_completed,
f_requires_ack,
f_len,
Expand Down Expand Up @@ -68,5 +66,5 @@ end
local media_types = DissectorTable.get("media_type")
local streaming_media_types = DissectorTable.get("streaming_content_type")

media_types:add("application/restate", p_service_protocol)
streaming_media_types:add("application/restate", p_service_protocol)
media_types:add("application/vnd.restate.invocation.v1", p_service_protocol)
streaming_media_types:add("application/vnd.restate.invocation.v1", p_service_protocol)

0 comments on commit b079f1a

Please sign in to comment.