This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Dear all!

I would like to write a chained dissector for SCTP Data Chunk but I don't know how can I reach it in the Dissector Table. I know I can do this with SCTP like this:

first: ether_table = DissectorTable.get ("ethertype") original_dissector = ether_table:get_dissector(0x84)

then in the definition my dissector:

original_dissector:call( buffer, pinfo, tree )

finally:

ether_table:add (0x84, mydiss)

But I cannot dissect an SCTP Data Chunk in a way like this. The Data Chunk looks in wireshark like a different protocol with its own grey trail and treeview. The payload protocol identifier of sctp finds out the real protocol of the data chunk.

asked 08 Aug '13, 06:31

torinos's gravatar image

torinos
1112
accept rate: 0%

edited 08 Aug '13, 08:41

JeffMorriss's gravatar image

JeffMorriss ♦
6.2k572


The SCTP dissector has 2 dissector tables: "sctp.port" (which allows you to grab packets for a particular port) and "sctp.ppi" (which allows you to grab packets for a particular Payload Protocol Identifier). So I think you'd call DissectorTable.get("sctp.port") and then the rest would be about the same (I guess, I don't use Lua).

permanent link

answered 08 Aug '13, 08:41

JeffMorriss's gravatar image

JeffMorriss ♦
6.2k572
accept rate: 27%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×25
×10
×2

question asked: 08 Aug '13, 06:31

question was seen: 2,153 times

last updated: 08 Aug '13, 08:41

p​o​w​e​r​e​d by O​S​Q​A