Hi,
I am implementing a functionality where I want to scan all packets in a pcap file, and depending on a configuration, select only the
relevant packets of a call flow (basically create a filter and then apply it). I will be using only the GUI mode (no tshark). Tap interface will not serve my purpose.
Is there a quick fix way to call UI code from the dissectors code? I simply want to prototype and test.
Regards,
Vishnu
From: wireshark-dev-bounces@xxxxxxxxxxxxx
[mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of
Anders Broman
Sent: Wednesday, April 18, 2012 5:25 PM
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] Problem in using a global variable in wireshark/gtk folder which is defined in epan/dissectors/ folder
Hi,
You should probably do what you are trying to do trough the tap interface instead, dissectors are not supposed to have any UI code as
they can be run from tshark as well.
If you intend to submit your code back to Wireshark it might help if you describe the functionality you are designing,
Regards
Anders
From: wireshark-dev-bounces@xxxxxxxxxxxxx
[mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of
Vishnu Bhatt
Sent: den 18 april 2012 12:52
To: wireshark-dev@xxxxxxxxxxxxx
Subject: [Wireshark-dev] Problem in using a global variable in wireshark/gtk folder which is defined in epan/dissectors/ folder
Hello,
I have a global variable in a
.c
file in the wireshark/epan/dissectors/
folder. How do I
use it in another .c
file in the wireshark/gtk/
folder? Every time I try
using extern
, I get an "undefined reference" error. I am able to use the same variable in another
.c
file in the
epan/
folder. Is there anything I am missing?
The exact error I am getting is
/home1/vishnu.bhatt/11.2.1/wireshark_3g/gtk/call_trace.c:139: undefined reference to `UE_trace_IMSI_table'
“UE_trace_IMSI_table” is a global variable defined in /home1/vishnu.bhatt/11.2.1/wireshark_3g/epan/dissectors/packet-abc.c
And I am trying to use “UE_trace_IMSI_table” in /home1/vishnu.bhatt/11.2.1/wireshark_3g/gtk/call_trace.c
I have declared “UE_trace_IMSI_table” in /home1/vishnu.bhatt/11.2.1/wireshark_3g/gtk/call_trace.h
Any help will be appreciated.
Thanks and Regards
Vishnu Bhatt
===============================================================================
Please refer to http://www.aricent.com/legal/email_disclaimer.html
for important disclosures regarding this electronic communication.
===============================================================================