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

Where can I find SCTP Data Chunk in Dissector Table?

0

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


One Answer:

0

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).

answered 08 Aug '13, 08:41

JeffMorriss's gravatar image

JeffMorriss ♦
6.2k572
accept rate: 27%