nDPI
nDPI 是什么?
nDPI® 是一个用于深度包检测的 开源 LGPLv3 库。某些解析器以双许可证形式发布,请参阅 README.license.md 以了解更多信息。
要运行测试,还需要执行以下命令: - ./tests/do.sh # 生成并检查 PCAP 文件中的差异 - ./tests/do-unit.sh # 运行单元测试 - ./tests/do-dga.sh # 运行 DGA 检测测试 或者使用 make check 来运行所有测试。请注意,编译所需的最低要求包括: - GNU 工具(autoconf、automake、libtool、pkg-config、gettext、flex、bison) - GNU C 编译器(gcc)或 Clang
在 Arch Linux 上:
- sudo pacman -S gcc git gettext flex bison libtool autoconf automake pkg-config libpcap json-c numactl pcre2 libmaxminddb rrdtool
在 FreeBSD 上:
- sudo pkg 安装 gcc gt gt get flex 野牛 libtool 自动制作 devel/pkgconf gmake libpcap json-c pcre2 libmaxminddb rdtool
请记住在 FreeBSD 上使用
gmake 而不是 make
在MacOS上:
- brew install coreutils gcc git gettext flex bison libtool autoconf automake pkg-config libpcap json-c pcre2 libmaxminddb rrdtool
在 Windows 上:
构建 nDPI 有三种支持的方法:
- MSYS2(假设 MSYS2 已经安装):
- msys2 -c "pacman --noconfirm -S --needed --overwrite '*' git mingw-w64-x86_64-toolchain automake1.16 automake-wrapper autoconf libtool make mingw-w64-x86_64-json-c mingw-w64-x86_64-crt-git mingw-w64-x86_64-pcre2 mingw-w64-x86_64-libpcap"
- Mingw-w64
- 视觉