Wireshark-dev: Re: [Wireshark-dev] Checking for Qt in a dissector
From: Roland Knall <rknall@xxxxxxxxx>
Date: Mon, 3 Jul 2017 19:26:41 +0200
If you just need it for the code showing some toolkit function or plugin functionality, there is an example code in the pluginifdemo for that.

As the guys said, it cannot be done from the dissector itself, as this will need some sort of reference from libwireshark, and that is a very bad idea.

Roland 

On Mon, Jul 3, 2017 at 7:22 PM, Paul Offord <Paul.Offord@xxxxxxxxxxxx> wrote:
Hi Pascal,

That won't work in this case.  It's actually a plugin rather than a true dissector - I didn't describe it well.  It uses Qt code so it definitely will only work with Wireshark 2.x.x.  Objections aside, how can it be detected?

Thanks and regards...Paul



Sent from Samsung Mobile on O2


-------- Original message --------
From: Pascal Quantin <pascal.quantin@xxxxxxxxx>
Date: 03/07/2017 17:57 (GMT+00:00)
To: Developer support list for Wireshark <wireshark-dev@xxxxxxxxxxxxx>
Subject: Re: [Wireshark-dev] Checking for Qt in a dissector

Hi Paul,

Le 3 juil. 2017 18:47, "Paul Offord" <Paul.Offord@xxxxxxxxxxxx> a écrit :

I have a dissector that needs to confirm that it is running in a Qt environment i.e. Wireshark 2.x.x and not tshark.  What is a good way to check for this?


Sorry to say that but IMHO you should not / must not have such a need. Any dissector that would behave differently depending on the application used (command line, GTK UI, Qt UI) has a design flaw.
Dissectors should behave the same way whatever the user frontend, and taps are here to present the data to the user differently depending on the interface used.
I sincerely hope we do not expose the info you are requesting to libwireshark....

Regards,
Pascal.



______________________________________________________________________

This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.

Any views or opinions expressed are solely those of the author and do not necessarily represent those of Advance Seven Ltd. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission.

Advance Seven Ltd. Registered in England & Wales numbered 2373877 at Endeavour House, Coopers End Lane, Stansted, Essex CM24 1SJ

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

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