Wireshark-dev: Re: [Wireshark-dev] Haven't found any information on this so Far

From: Stephen Fisher <steve@xxxxxxxxxxxxxxxxxx>
Date: Tue, 7 Sep 2010 12:14:49 -0600
On Wed, Sep 01, 2010 at 02:53:15PM -0700, Ashley Jones wrote:

> The question I have is if I can make a call to a "C" function that has 
> been defined within a struct as the message is on the network?  Or 
> better yet if you could explain how someone can call user defined 
> functions that have been defined in other files, that would be 
> appreciated.

> Truly Frustrated with WireShark

This sounds like a general programming question more than a Wireshark 
specific question.  Wireshark does these things all of the time in its 
code; define a function in a header file and include it in both source 
files and then make sure both source files are compiled into the same 
library or output binary.  As for user defined functions, is something 
like in epan/dissectors/packet-ip.c where the IP option handling 
function names are defined as variables what you're looking for?