Wireshark mailing list archives

what does the function "proto_register_subtree_array" used for in register of every protocol?


From: "??????????" <237825552 () qq com>
Date: Tue, 14 Jan 2014 16:39:57 +0800

hello,i wanna know what does the function "proto_register_subtree_array" used for in register of every protocol?eg:
in packet-ieee1722.c file:
   /* Register the protocol name and description */
    proto_1722 = proto_register_protocol("IEEE 1722 Protocol", "IEEE1722", "ieee1722");


    /* Required function calls to register the header fields and subtrees used */
    proto_register_field_array(proto_1722, hf, array_length(hf));
    proto_register_subtree_array(ett, array_length(ett));


and what does the ett used for?
___________________________________________________________________________
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-request () wireshark org?subject=unsubscribe

Current thread: