Townsend, Matthew wrote: > I do a similar task with PPP data (I think). Treat it the same as the > data_handle used in your file. > > There are only three lines needed: > > Global: > static dissector_handle_t ppp_handle=NULL; > > in proto_register_xxx() > ppp_handle = find_dissector("ppp"); > > Once you have determined the data segment to pass: > call_dissector(ppp_handle, next_tvb, pinfo, tree); > > Matt > >
One note: The find_dissector() actually should be done in proto_reg_handoff_xxx(). The proto_reg_handoff... functions are called only after all the proto_register... functions have been called. ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev@wireshark.org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe