How to compile VEL21RIPN ndpi-netfilter2 and using for lede/openwrt


I did try this on the first run. sadly no change on compiling.

Looking at the error it seems to be a problem with with this line.

/src/include/ndpi_define.h:337:23: error: implicit declaration of function 'bswap_16'; did you mean 'swab16'? [-Werror=implicit-function-declaration]
 # define get_l16(X,O) bswap_16(get_u_int16_t(X,O))

I don't code in c or know anything about MIPS but it looks like NTOP don't have the correct command even though it States nDPI supports mips on the web site :frowning:

I'm wondering if trying to get hold of someone at nTOP to help fix this code. or if someone knows MIPS arch and C language.


i'm too not good in C.
but code need some patches to support mips and arm.