|
Protocol Dissector Parameters:Each Ethereal protocol dissector is passed the following parameters when its dissector function is called.
Local Data for Protocol DissectorsThis section outlines the data that is declared static at the top of a single file in this module. Local data defined by packet-my-layer2.c and packet-my-layer2-msg.c are integer values used as handles when creating hierarchical data trees for display. The following is only an example, your implementation may vary. Consult documentation on Ethereal's plugin API for further information on how hierarchical data tree displays are handled. packet-my-layer2.c /* Initialize the protocol and registered fields */ static int proto_my_l2 = -1; /* Initialize the subtree pointers */ static gint ett_my_l2 = -1;
packet-my-layer2-msg.c /* Initialize the protocol handle */ static int proto_my_layer2_msg = -1; These handles are registered with Ethereal and filled in with the correct values later during packet data dissection and display.
|
|
© 2002 Kazimer Corp.
1010 University Ave. PMB #1862
San Diego, CA 92103-3395