Wireshark mailing list archives
how to use the wireshark source code to develop application?
From: "??????????" <237825552 () qq com>
Date: Sun, 30 Mar 2014 14:57:59 +0800
I want to store some information about packets and transmit among files,so i create a file in wireshark root directory,named performance.h: //performance.h #include <glib.h> typedef struct performance_s { gfloat time[100]; gfloat delay[100]; guint32 packetSize[100]; guint32 payload; guint32 index; guint32 temp_size; gfloat temp_time; }performance; extern peformance* performance_test; in the file ,i declare a struct and declare a pointer to it,then i want to use the variable "performance_test" in file wiretap/libpcap.c, epan/dissectors/packet-ieee80211.c,so i define the variable "peformance_test" in performance.c in wireshark root directory and include the head file in wiretap/libpcap.c, epan/dissectors/packet-ieee80211.c ,but once i use the variable in these two files,when i compile the wireshark project,it come up with one error:undefined reference to 'peformance_test'. it looks like the variable peformance_test should be defined and used in the same file ,if i want to use it in different files,i think i should modify the makefile.common to change the compile process ,but i don't know how .could someone help me fix it,please!
___________________________________________________________________________ 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:
- how to use the wireshark source code to develop application? ?????????? (Mar 30)
- Re: how to use the wireshark source code to develop application? Peter Wu (Mar 30)
- Re: how to use the wireshark source code to develop application? Pascal Quantin (Mar 30)
- ?????? how to use the wireshark source code to developapplication? ?????????? (Mar 30)
- Message not available
- Re: [Wireshark-dev] 回复: how to use the wireshark source code to developapplication? Pascal Quantin (Mar 30)
- Message not available
- Re: [Wireshark-dev] 回复: 回复: how to use the wireshark source code to developapplication? Pascal Quantin (Mar 30)