Wireshark-dev: Re: [Wireshark-dev] Cannot get external capture (extcap) interface to work with
I actually found the issue(s), there were multiple issues stacked on top of each other: 1) When using parameters and you fill in the default value in the
dialog before you start the capture, these parameters are not
passed to the extcap plugin. My assumption was that the parameters
would always be passed. This resulted in my plugin in a null pointer for the hostname
(one of the parameters called "host" in my case) that needed to be
resolved. Unfortunately no program crash occurs or any trap was
generated. So it was not seen. I fixed this by copying the default
hostname/ip-number before parsing all the command line options in
my final parameter structure. So probably the program was just hanging in some loop/deadlock. => This was the main reason that tshark did work because I supplied the --host=192.168.2.51 argument so all went well. 2) The function gethostbyname() does not work on the W8.1 system I have for some strange reason. Even when I fixed the issue with the null hostname I still did not get any resolved hostname (gethostbyname returned an empty list: no error). I had to rewrite the code to use getaddrinfo(), that does the job. PS: Roland, the flush is already present in the code. I would expect that it will end up in the window that I can open in the left lower corner of wireshark. It is not clear to me how to do this. I tried some of the
g_debug/g_message/g_info calls but it does not end up anywhere or
displays a popup or crashes the program with a debugger trap call. Henri On 30-12-2018 18:18, Roland Knall
wrote:
|
- References:
- Prev by Date: Re: [Wireshark-dev] Cannot get external capture (extcap) interface to work with my new plugin.
- Next by Date: [Wireshark-dev] Something that would be useful in Wireshark when dealing with dropped packets
- Previous by thread: Re: [Wireshark-dev] Cannot get external capture (extcap) interface to work with my new plugin.
- Next by thread: [Wireshark-dev] Something that would be useful in Wireshark when dealing with dropped packets
- Index(es):