Linux 上的 winpcap
我正在尝试使用 wine 将 Windows 可执行文件移植到 Linux。我现在可以运行可执行文件,但它返回一些错误,指出无法加载“npf”驱动程序。有没有办法在 Linux 上移植 winpcap?我尝试移植的应用程序取决于 winpcap 库。
谢谢
I am trying to port an Windows executable to Linux using wine. I am at a point where I can run the executables but it returns some error saying it can't load "npf" driver. Is there a way to also port winpcap on Linux? The application I was trying to port is depending on winpcap library.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
libpcap?它是pcap的原始版本,然后被制作成winpcap......
libpcap? It is the original version of pcap that was then made into winpcap...
winpcap 依赖于自定义 Windows 驱动程序来提供对原始流的访问,不可能将其按原样移植到 wine。
winpcap depends on the custom Windows drivers to provide access to the raw streams, it's not possible to port that as-is to wine.
winpcap本质上是一组Windows驱动程序和两个DLL,它使应用程序能够向网卡发送原始网络数据包和从网卡接收原始网络数据包,最初是一个与WIndows中的Uxix/Linux中的tcdump具有相同功能的工具。
那么,也许是 Linux 中“libpcap(capture) 和 libnet(send)”库的包装器的解决方案,提供 winpcap 二进制兼容性? playonlinux的大佬可以帮忙吗?
winpcap is essentially a set of a Windows driver and two DLL's, wich enables applications to send&receive raw network packets to&from the network cards, and originally was a tool to have the same features than tcdump in Uxix/Linux in WIndows.
So, maybe a solution a wrapper in Linux of the "libpcap(capture) and libnet(send)" libraries, providing a winpcap binary compatibility? Playonlinux guys can help?