Hello, I am trying to create a new dissector for CAN. I copied and modified the J1939 dissector. I successfully compiled the new dissector and it is visible as an enabled protocol but it is not visible as a next level protocol under CAN. I see CANopen, DeviceNet and J1939 but not the new dissector. Where are the next level protocols defined for CAN? Thanks Patrick asked 12 Apr '15, 00:06 pmendiuk |
One Answer:
You need to edit packet-socketcan.c file and add your new protocol at the same places as you can find the J1939 one. answered 12 Apr '15, 05:31 Pascal Quantin |
Thanks that was it.
If an answer has solved your issue, please accept the answer for the benefit of other users by clicking the checkmark icon next to the answer. Please read the FAQ for more information.
Note that CAN subdissector registration has changed, now your subdissector should register with the "can.subdissector" table using
dissector_add_for_decode_as
.Searching the dissectors for "can.subdissector" will show examples.