Wireshark-dev: [Wireshark-dev] Tr : Dissector preferences reuse
Date: Thu, 23 Apr 2009 10:13:43 +0000 (GMT)
Hi,

Is there someone that can answer to my questions and solve my problem?

Thanks a lot!

Yvan

----- Message transféré ----
De : "yvanmmailbox-web@xxxxxxxx" <yvanmmailbox-web@xxxxxxxx>
À : wireshark-dev@xxxxxxxxxxxxx
Envoyé le : Mardi, 21 Avril 2009, 11h37mn 26s
Objet : Dissector preferences reuse

Hi all,

I 'm working on 2 plugin dissectors, and I wish to know if it's possible (and if yes, how) to reuse preferences from one plugin to another. I need to reuse only a part of the preferences (which is an UAT table, so pretty long and boring to define) from plugin1 to plugin2, considering that protocol2 is included in plugin1 like this:
plugin1
    IP struct
        UDP struct
            plugin2
Can the copy_prefs() function be useful? How must I define the preferences in plugin1 to divide it in 2 parts? How to integrate a separated part into preferences of plugin2?

Thanks for your help!

Yvan