Wireshark mailing list archives

Re: query related to dissect_xxx function


From: Evan Huus <eapache () gmail com>
Date: Sun, 23 Feb 2014 07:25:50 -0500

This check was necessary in older versions of Wireshark, but not with
recent versions. The only purpose it serves now is optimization, so
you can safely remove it.

On Sun, Feb 23, 2014 at 5:25 AM, Rahul Rohit <rahul.rohit () aricent com> wrote:
Hi,



The moment we enter dissect_xxx(tvb,pinfo,tree)

We put a check on the value of tree i.e.



If(tree)

{

  /* code for actual dissection

}



What does this check signify ?? somewhere it is written that it defines
whether the user is looking for a detailed dissection or not ,could any body
please

throw light on this concept ?? How does tree gets any value and when ??



regards

Rahul Rohit







===============================================================================
Please refer to http://www.aricent.com/legal/email_disclaimer.html
for important disclosures regarding this electronic communication.
===============================================================================

___________________________________________________________________________
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
___________________________________________________________________________
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: