Wireshark mailing list archives

Re: Haven't found any information on this so Far


From: Stephen Fisher <steve () stephen-fisher com>
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?

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: