Wireshark-dev: Re: [Wireshark-dev] Dissector (PTP Protocol) Config file
From: Stephen Fisher <steve@xxxxxxxxxxxxxxxxxx>
Date: Mon, 27 Jul 2009 12:26:23 -0600
On Mon, Jul 27, 2009 at 02:47:00PM +0200, Thomas Arthofer wrote:

> i'm expanding the features oft he PTP Dissector, but i wanted to know 
> if there is a way to read a external config file for the dissector.

Perhaps UAT (User Accessible Tables) would help here.  I haven't used 
them though and am not sure where they are documented other than its 
source files in epan/ (anyone?)

> Should I just try to add the reading of the config file to the 
> dissector or is there a better solution. (I think it's a bad solution 
> because it would read the config file every time a packet is received)

Right.

> Also, is there any argument against calculating a SHA1 / SHA2 hash in 
> the dissector routine?

Probably not, although it should probably default to being off for 
performance reasons.

> At last, is there somewhere a function reference for the dissector 
> plugins (like proto_tree_add_item and so)

doc/README.developer


Steve