Wireshark mailing list archives

Re: Console Window option moved?


From: Stephen Fisher <steve () stephen-fisher com>
Date: Mon, 12 Dec 2011 09:42:30 -0700

On Sun, Dec 11, 2011 at 01:11:46AM +0100, Akos Vandra wrote:

As far as I know, I can use g_print for printing debug info from 
dumpcap code... isn't that right? I tried compiling code with that, 
and it builds fine. However nothing is printed on the console. I am 
using a linux build system (ubuntu 10.04 LTS).

This is complicated because dumpcap uses stderr to pipe error messages 
to Wireshark, but they have to be in a special format (see source code 
comment starting on line 3790 of dumpcap.c in the latest SVN).  The 
sync_pipe_errmsg_to_parent() function might help you feed an error to 
Wireshark, which in theory it will pass through to the user in the GUI.
___________________________________________________________________________
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: