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

Modbus display filter

0

When working on a bug in a modbus server implementation I nodiced that when the modbus display filter cannot decode the packet (due to a protocol error in the message) the remaining data is printed like:
'Data: 0113feb0800000010000047b'

However it is not made clear to me that this packet is actually erroneous.

After solving the bug (the server was responding with more bytes than the client asked for) the modbus message was further decoded like:
Register (0): 276
Register (0): 65198
Register (0): 32768

Wouldn't it be a good idea to use the display filter to mark packets with (clear) protocol errors?

asked 21 Oct '14, 05:29

kneh's gravatar image

kneh
11112
accept rate: 0%


One Answer:

1

Because there are proprietary (unpublished) extensions to the Modbus protocol, if the dissector comes across a function code it can't handle, then the dissector just calls the generic "data" dissector that generates the display you saw.

So with this dissector its a bit hard to definitively spot a protocol error.

answered 21 Oct '14, 08:00

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%