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] plugin

Date: Fri, 26 Sep 2008 15:29:39 +0200
Hi Martin,

I've been working on several plugins (proprietary for now) and have used functions not declared in the standard trunk-1.0\epan\libwireshark.def file.

If I declare those functions in libwireshark.def and recompile to get libwireshark.lib and then compile my plugin, everything works. But of course when I "export" my plugin.dll (drop it in as you say) to a release version of wireshark in plugin\1.0.3 folder for example, I get the error in your image as the functions I've used are not declared / available to plugins as not defined in the release libwireshark.def file and hence compiled / executable release version.

One point (seems I've seen a thread on downloading 1.0.0 via 1.0.1 link), you indicate you built 1.0.1 and then downloaded wireshark-1.0.0.tar.gz. So if you plugin works for 1.0.1 it might not work in 1.0.0 if one of your functions is not "declared" for plugins.

Hope this helps. I'm stuck too with a "local" variant working but not being able to use the plugin in any standard release version.

Cheers,

David

-----Message d'origine-----
De : wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] De la part de Martin Corraine (mcorrain)
Envoyé : mercredi 9 juillet 2008 19:34
À : Developer support list for Wireshark
Objet : Re: [Wireshark-dev] plugin

Sorry Jaap,

The Wireshark 1.0.1 installer that I downloaded for win32 is where I dropped the plugin. The Wireshark build that it was created from was from http://www.wireshark.org/download/src/. I used the wireshark-1.0.0.tar.gz. After building the code and getting the plugin, I drop it in. I then run Wireshark from program files/wireshark. I get the following error: see attachment. The dissector doesn't dissect any packets. The expressions box doesn't turn green either. 

Thanks,
martin



-----Original Message-----
From: wireshark-dev-bounces@xxxxxxxxxxxxx
[mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Jaap Keuter
Sent: Wednesday, July 09, 2008 1:19 PM
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] plugin

Hi,

Please specify "doesn't work". Does it get loaded (see about wireshark, plugin tabs), doesn't it get called for frames you expect, does it crash, or something else? Is there a platform difference between the WS version you have installed and the plugin build? Is the CRT compatible?

Stuff like that makes M$-Win development so exiting, and that's why I stick to GNU/Linux, because it gives you just enough rope to hang yourself (M.S.) ;).

Thanx,
Jaap


Martin Corraine (mcorrain) wrote:
> Hello Jaap,
> 
> I built version 1.0.1 on win32 and have generated my plugin .dll. If I

> understand you correctly, I should be able to put this file in the 
> "program files/wireshark/plugins/1.0.1" folder. This, however, doesn't

> work. What am I failing to do?
> 
> Thanks,
> martin
> 
> -----Original Message-----
> From: wireshark-dev-bounces@xxxxxxxxxxxxx
> [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Jaap Keuter
> Sent: Tuesday, July 08, 2008 6:26 PM
> To: Developer support list for Wireshark
> Subject: Re: [Wireshark-dev] plugin
> 
> Hi,
> 
> Yes you can, be be sure that:
> 1. be sure it's build for the intended release of Wireshark. The 
> API/ABI isn't guaranteed stable between releases.
> 2. Be sure to drop it in the right release folder. Same reason as 1.
> 
> Thanx,
> Jaap
> 
> Martin Corraine (mcorrain) wrote:
>> Hello,
>>  
>> Does anyone know if there is some way for you to drop a dissector 
>> plugin into wireshark/plugins/1.0.X and have it work? I do have the 
>> installer working but that's not what I would like to do if I don't
> have too.
>>  
>> Thanks,
>> Martin

_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@xxxxxxxxxxxxx
https://wireshark.org/mailman/listinfo/wireshark-dev