Ethereal-dev: [Ethereal-dev] plugins

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

From: Ed Warnicke <hagbard@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 4 Nov 2000 18:05:03 -0500 (EST)
I looking at the README.developer information for plugins as well 
as the source for plugins/gryphon/gryphon.c and it would appear 
that I have to use DLLEXPORT to define a number of constant. 

DLLEXPORT const gchar version[] = VERSION;
DLLEXPORT const gchar desc[] = "DG Gryphon Protocol";
DLLEXPORT const gchar protocol[] = "tcp";
DLLEXPORT const gchar filter_string[] = "tcp.port == 7000";

now I have no issues with version[] and desc[], but MGCP (the protocol
I'm interested working on) uses both udp and tcp (and a couple of 
different ports for each).  Now I presume that I can simply use 

DLLEXPORT const gchar filter_string[] = "tcp.port == 2427 || \
udp.port ==  2427 || tcp.port == 2727 || udp.port == 2727"

to handle the filter string, but how do I indicate in protocol[]
that I'm using both tcp and udp.  

Could someone please clarify and expand at bit?

Ed