I want to make my own application using Wireshark libs. I did it already with NetworkMonitor API, but Wireshark offers some protocolls (i.e. S7comm).
The only one possibility I've found is to use Wireshark indirectly, using Lua. (Set a reference on LuaInterface.dll then "using LuaInterface" etc.) http://www.dreamincode.net/forums/topic/240886-integrating-lua-with-c%23-using-luainterface/
Is it posiible without Lua? I want to make a reference to Wireshark in my project and to use all benefits of C#.
Using libwireshark.dll from C# should be like using any other native DLL from C#. See here for some details on how to do that in general.
However, using libwireshark is not for the faint-hearted, expect some bumps. The API hasn't really been designed for external consumption, more for the Wireshark project as a whole. There have been some other folks successfully using it in other apps (not C# IRC) so it can be done.
Remember the licensing of libwireshark is GPL, so think about the implications of that and read the FAQ on that for starters.
answered 11 May '12, 03:04
you should be able to create an execute command function in c# that expects a string... then execute the tshark command from the execute command function which invokes tshark and it's respective arguments :-)
answered 25 Mar, 06:58