Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Problem in using a global variable in wireshark/gtk folder w

From: Anders Broman <anders.broman@xxxxxxxxxxxx>
Date: Thu, 3 May 2012 12:18:42 +0200
Hi,
As linking dissector code with the GUI code is breaking the design principle of Wireshark - No GUI code in dissectors -
You might find it hard to get people to spend time on figuring out how to do it...

Regards
Anders

-----Original Message-----
From: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Vishnu Bhatt
Sent: den 3 maj 2012 12:08
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

Hello,

Let me make myself more specific. I want to use GTK/UI code in dissectors code but everytime I use it, I get linking error(undefined reference to that variable). So, what all Makefiles do I need to change in order to use GTK/UI code in dissectors code? I am stuck at this one for a long time, so any further help would be appreciated.

Thanks and Regards
Vishnu Bhatt

-----Original Message-----
From: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Stephen Fisher
Sent: Wednesday, May 02, 2012 11:14 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


---- On Wed, 02 May 2012 02:01:02 -0600 Vishnu Bhatt  wrote ----

> 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.

In what way does the tap not work?

> Is there a quick fix way to call UI code from the dissectors code? I simply want to prototype and test.

Make sure GTK+ is linked to the same code as the dissectors.

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




===============================================================================
Please refer to http://www.aricent.com/legal/email_disclaimer.html
for important disclosures regarding this electronic communication.
===============================================================================
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe