Wireshark mailing list archives

Re: [Wireshark-commits] rev 44485: /trunk/epan/ /trunk/epan/: libwireshark.def


From: Graham Bloice <graham.bloice () trihedral com>
Date: Tue, 14 Aug 2012 17:32:24 +0100

-----Original Message-----
From: wireshark-dev-bounces () wireshark org [mailto:wireshark-dev-
bounces () wireshark org] On Behalf Of Guy Harris
Sent: 14 August 2012 17:27
To: wireshark-dev () wireshark org
Subject: Re: [Wireshark-dev] [Wireshark-commits] rev 44485: /trunk/epan/
/trunk/epan/: libwireshark.def


On Aug 14, 2012, at 4:24 AM, grahamb () wireshark org wrote:


http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=44485

User: grahamb
Date: 2012/08/14 04:24 AM

Log:
Added proto_tree_free to the libwireshark expoert definitions for use
in
plugins

What plugin would have a need for it?  Freeing the protocol tree filled
up by a
dissection done elsewhere would be considered a bit impolite, as it
might
pull the tree out from under somebody using it.  If the plugin has done
its
own top-level dissection (which seems a bit odd - dissectors shouldn't
be
doing that, taps shouldn't need to do that as the tapping should be
doing the
dissection for it, file format plugins are at a level below libwireshark
and
shouldn't even know what a protocol tree *is*, and codecs are orthogonal
to
dissection), it should have done it with the epan_ APIs and thus should
free it
with a call to epan_dissect_cleanup() or epan_dissect_free().

I did wonder, but someone asked for it.  Easily removed if we think that
having it there will get folks into trouble.
___________________________________________________________________________
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: