Ethereal-dev: Re: [Ethereal-dev] question about preferences

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Jeff Morriss <jeff.morriss@xxxxxxxxxxx>
Date: Fri, 05 Aug 2005 10:39:06 -0400


Peyrusson, Yannick (Ext) wrote:
Hi,
Do you know if it is possible to get from a dissector the preferences of another dissector ?
I don't find anything for that. But perhaps I don't search well...

Yes, it's possible.

Just make the variable for the preference non-static (and maybe put it in an include file). For example, see "mtp3_standard" used by "packet-mtp3.c" (which has the preference and the variable), "packet-mtp3mg.c", "packet-sccp.c", and others.