Hi,
I have a dissector code (atmii) and I am having problem in understanding the
following two lines of code:
In proto_register_atmii()
aal_dissector_table = register_dissector_table("atmii.aal2_payload", "AAL
payload type", FT_UINT8, BASE_DEC);
and then in dissect_atmii()
if (!dissector_try_port(aal_dissector_table, payload_type, next_tvb, pinfo,
tree)) {
proto_tree_add_item(atmii_tree,hf_atmii_aal2_payload, tvb, ATM_HEADER_LENGTH,
-1, FALSE);
}
What does these two lines of code do in general as I've seen them in other
protocols as well?
Thanks
Vishnu
"DISCLAIMER: This message is proprietary to Aricent and is intended solely for
the use of the individual to whom it is addressed. It may contain privileged or
confidential information and should not be circulated or used for any purpose
other than for what it is intended. If you have received this message in error,
please notify the originator immediately. If you are not the intended
recipient, you are notified that you are strictly prohibited from using,
copying, altering, or disclosing the contents of this message. Aricent accepts
no responsibility for loss or damage arising from the use of the information
transmitted by this email including damage from virus."
___________________________________________________________________________
Sent via: Wireshark-dev mailing list <[email protected]>
Archives: http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
mailto:[email protected]?subject=unsubscribe