Home page logo

wireshark logo Wireshark mailing list archives

how to add a struct in wireshark?
From: "??????????" <237825552 () qq com>
Date: Sat, 29 Mar 2014 17:54:53 +0800

I need to define a struct in wireshark,so i create a file named performance.h in wireshark main directory,

struct pefroamce_s{
guint index;

extern performance * performance_test;

then i define the  performance_test in file wiretap/libpcap.c, then i want to use the pointer in 

it came up with an error:undefined reference to 'performance_test'

what should i do to create a struct and use it in different files,it looks like we can only  define an use the struct 
in the same file ?
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

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]