1 | initial version |
The code you show adds the can.id table to the socket-can dissector, but you also need to add code in the appropriate spot to actually call the sub-dissectors based on the can id.
For an example, look at packet-tcp.c where it calls sub-dissectors based on the tcp port, around line 5756:
dissector_try_uint_new(subdissector_table, tcpd->server_port, next_tvb, pinfo, tree, TRUE, tcpinfo)
This uses the port, tcpd->server-port
, as the index into the subdissector_table
.
See Sect. 1.7.1 in README.dissector for more info.