Ethereal-dev: [Ethereal-dev] 2 protocols in one dissector

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Michael Lum" <mlum@xxxxxxxxxxxxx>
Date: Wed, 29 Oct 2003 13:53:31 -0800
GSM BSSMAP messages can carry embedded GSM DTAP messages.

I am writing the dissector with two dissector handles.

When I detect a BSSMAP message that has DTAP embedded I
use the following code:

    /* 
     * dissect the embedded DTAP message
     */
    l3_tvb = tvb_new_subset(tvb, curr_offset, len, len);

    call_dissector(dtap_handle, l3_tvb, g_pinfo, g_tree);

    curr_offset += len;

Is this the right way of doing this or should I simply
call the main dissection function associated with
'dtap_handle' directly.
 

--
Michael Lum                          Architect
4600 Jacombs Road               (604) 276-0055
Richmond, B.C.
Canada V6V 3B1

Telos Technology
Winner of the 2003 GSM Association Award
for Technology Innovation
Best Infrastructure