dreadl0ck / netcap

A framework for secure and scalable network traffic analysis - https://netcap.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ndpi_main.h

bdpreom opened this issue · comments

commented

hi ,

for go 1.17.1 wrapper for ndpi is generating follwing issue

nDPI_wrapper.go:6: ./nDPI_wrapper_impl.h:3:10: fatal error: 'ndpi/ndpi_main.h' file not found #include <ndpi/ndpi_main.h> ^~~~~~~~~~~~~~~~~~

commented

Hi,

this has nothing to do with your Go version - it happens because the deep packet inspection C library libndpi is not installed on your system, you will need libprotoident as well.

You can compile the project without bindings to ndpi and libprotoident, by passing the 'nodpi' tag to the go compiler.

Eg:

go build -tags nodpi -ldflags "-s -w" -o bin/net github.com/dreadl0ck/netcap/cmd

Or just use a nodpi build from the compiled releases.