dotpcap / sharppcap

Official repository - Fully managed, cross platform (Windows, Mac, Linux) .NET library for capturing packets
1.34k stars 268 forks source link

Trying to build on MacOS -> System.DllNotFoundException has been thrown wpcap #52

Closed defcon8 closed 6 years ago

defcon8 commented 6 years ago

Hi Guys,

I'm trying to run example 9 - sendpacket. But i'm getting stuck on:

System.DllNotFoundException has been thrown wpcap

So as far as i understand i need to do some kind of dynamic library mapping in a sharppcap .config file to define the location of libpcap? But i can't find any example on how to do this.

Can anybody please help me?

Thank you very much! Bastiaan

screen shot 2018-07-22 at 21 43 26
winkmichael commented 6 years ago

Write SharpPcap.dll.config in the same directory as your runtime, with this;

chmorgan commented 6 years ago

@defcon8 @winkmichael is correct. Check the examples and the source distribution, there should be an example sharppcap.dll.config file if there isn't one in the binary package.

winkmichael commented 6 years ago

https://github.com/antmicro/Packet.Net/blob/master/Examples/SharpPcap.dll.config