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

Help decoding MoldUDP64 payload as Nasdaq ITCH

0

Greetings,

How do I get wireshark to decode the Payload of all MoldUDP64 packets as "Nasdaq-ITCH"?

When I right-click Payload and do "Decode as...", the ITCH protocol is not listed as an option.

Thanks in advance,

MB

asked 23 Oct '15, 09:01

marsblack's gravatar image

marsblack
6112
accept rate: 0%


2 Answers:

0

The MoldUDP64 dissector goes so far as to dissect message blocks. There's no relation to Nasdaq-ITCH made. I've no sample capture to work out if that could be made so.

answered 23 Oct '15, 14:31

Jaap's gravatar image

Jaap ♦
11.7k16101
accept rate: 14%

Thanks Jaap.

Suppose I want to force the Payload field of all MoldUDP64 packets to be dissected as Nasdaq-ITCH in my capture.

  1. Can that be done through the GUI?
  2. If not, I assume I might have to customize proto_reg_handoff_nasdaq_itch() in packet-nasdaq-itch.c to add a dissector to moldudp64. Am I on the right track? Can you advise on what the call to dissector_add_uint() would look like?

Kind regards.

(23 Oct '15, 14:59) marsblack

As Michael Mann says in his answer, "it doesn't appear like MoldUDP64 has a "unique identifier" to determine Nasdaq-ITCH", so there's nothing to use in a call to dissector_add_uint(), and that call shouldn't exist.

See the code review he linked to in the comment he made to his reply.

(24 Oct '15, 11:41) Guy Harris ♦♦

0

You need 2 things: 1. A dissector table created in MoldUDP64. The Nasdaq-ITCH dissector would register with this table. 2. A "Decode As" structure created in MoldUDP64 (using register_decode_as).

Based on the information provided, it doesn't appear like MoldUDP64 has a "unique identifier" to determine Nasdaq-ITCH, so I recommend using the "sample code" in packet-socketcan.c or packet-enip.c for how their "subdissectors" are exposed through Decode As.

answered 23 Oct '15, 16:49

Michael%20Mann's gravatar image

Michael Mann
61
accept rate: 0%

Threw something together here: https://code.wireshark.org/review/11235/

(23 Oct '15, 17:37) Michael Mann