I have created plugin in ubuntu. It works fine. But as per the requirements, I have been asked to create a windows installation of wireshark. In windows, under the plugins directory, there is a list of DLL's. So is it possible that I can convert my plugin written for ubuntu platform into a DLL that I can use in windows directly without having to recompile wireshark on windows again and again.

If yes, how do create a DLL?

Thanks in advance,

Sid

asked 06 Feb '11, 21:41

sid's gravatar image

sid
45192021
accept rate: 0%


This is indeed possible.

First setup your Windows development environment as per Developers Guide and compile Wireshark once.

As per README.plugins add a directory of your new dissector plugin and setup the build files. Then you can compile your plugin over and over again, if needed, without recompiling Wireshark.

link

answered 07 Feb '11, 05:12

Jaap's gravatar image

Jaap ♦
6.5k974
accept rate: 12%

jaap,

I dont exactly get the method. When I created the plugin in ubuntu, I followed all the steps in README.plugins. Now I want to create a DLL for my plugin, ie 'nnm' so that I can use it in Windows. And since DLL's are dynamically loaded, I would not have to recompile wireshark over and over again, is that right??

So exactly what do I have to do??

I am really stuck here. Please help..

Thanks in advance,

sid

(07 Feb '11, 20:32) sid

Read my answer carefully: "...and compile Wireshark once." So no, there's no need to compile it over and over again. You'll need to do it once to setup your build environment for the plugin compilation.

Then "As per README.plugins add a directory of your new dissector plugin and setup the build files". This now amends your Wireshark build for your plugin build which you can do right there in that directory.

(07 Feb '11, 22:50) Jaap ♦

jaap,

while compiling wireshark, I am getting this error everytime. Can you please help me out with that??

**if not exist wireshark-gtk2diameter mkdir wireshark-gtk2diameter

xcopy ".diameter*.dtd" wireshark-gtk2diameter

File not found - *.dtd

0 File(s) copied

NMAKE : Fatal error U1077: 'C:WindowsSystem32xcopy.EXE' : return code '0x4' stop**

please help??

thanks a lot..

link

answered 08 Feb '11, 02:16

sid's gravatar image

sid
45192021
accept rate: 0%

edited 08 Feb '11, 02:17

jaap,

Please help me one last time. I will try and explain to you my situation precisely.

I had a wireshark SVN version which had a plugin for nnm protocol running on ubuntu. I took that source into windows. I build the environment in windows to compile wireshark. And thereafter I compiled wireshark on windows. Now with that wireshark built, I can run wireshark and be able to dissect nnm packets successfully.

However, in the wireshark/plugins folder I have directories for all protocols. Not DLL's.

Now I installed a wireshark 1.4.3 application on windows. In the wireshark/plugins folder, there are DLL's for all the plugins that are available.

So when I take my nnm directory from the previous SVN built and put it in the new 1.4.3 plugins directory (as a folder) and try to dissect nnm packets, it fails.

What should I do inorder to make sure that wireshark 1.4.3 is able to dissect nnm packets??

Please guide me through this. Your help has been immense. This is probably the last straw.

Thanks,

Sid

link

answered 08 Feb '11, 03:31

sid's gravatar image

sid
45192021
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×789
×23

Asked: 06 Feb '11, 21:41

Seen: 7,763 times

Last updated: 08 Feb '11, 03:31

powered by OSQA