如何在 Windows 上编译 nDPI 库?

How can I compile nDPI library on Windows?

库附带有关如何在 Linux 上编译它的说明:

但是我在网上找不到任何资源可以帮助我直接在Windows上编译这段代码,就像我从来没有Linux机器一样。

nDPI 托管于此:https://github.com/ntop/nDPI

您可以使用 Cygwin (very useful tool) and cross compile to Windows. It's not a complicated process and there is a lot of documentation around the Internet. I recommend using the MinGW 32 cross compiler.

设置类似 linux 的 CLI

您必须编辑一些源代码行并添加文件 ntop_win32.h 和 ntop_win32.c 然后你可以用 Visual Studio.

编译 nDPI

您可以使用提供 Windows 支持的 NFStream 并将 nDPI 用作 DPI 引擎。