Wireshark-dev: Re: [Wireshark-dev] I want to program in "packet-http.c:dissect_http" with some
From: 刘昆 <liukunmeister@xxxxxxxxx>
Date: Thu, 09 Dec 2010 18:56:52 +0800
于 2010年12月09日 12:03, Guy Harris 写道:

On Dec 8, 2010, at 7:53 PM, 刘昆 wrote:

I want to program in "packet-http.c:dissect_http" with some gtk gui
functions .But when I "make" there are some errors :

epan/.libs/libwireshark.so: undefined reference to `gtk_window_new'
epan/.libs/libwireshark.so: undefined reference to `gtk_main'
epan/.libs/libwireshark.so: undefined reference to `gtk_widget_show'
epan/.libs/libwireshark.so: undefined reference to `gtk_init'


So how shoud I do to solve the problem?

You should solve the problem by not using GUI functions in packet-http.c.  Wireshark does not support GUI functions in dissectors, and never will.

Try to do whatever you're trying to do with a tap, instead.  You *can* perform GUI operations in taps.

___________________________________________________________________________ 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
Oh ,I see.However if I want to pop up a window when http dissector dissect some payload,where can I write the gtk code ? Tap may be not suit me.