Wireshark-dev: Re: [Wireshark-dev] frame relay --> osi

From: Bill Meier <wmeier@xxxxxxxxxxx>
Date: Wed, 15 Jul 2009 10:38:58 -0400
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.