diff options
author | Luca Deri <deri@ntop.org> | 2022-09-21 00:03:12 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2022-09-21 00:03:12 +0200 |
commit | 1d0bc7c3506ea08fd84bb0781098193924ad1308 (patch) | |
tree | 8da3a44bc729a8affe550f51aa5d5ab5ab2a29a9 /src/include | |
parent | a7c2734b387f6817088593f7c4e78d01dd6e0b74 (diff) |
Finalized nBPF support. You can now define custom protocols such as
(see exaple/protos.txt)
nbpf:"host 192.168.1.1 and port 80"@HomeRouter
In order to have nBPF support, you need to compile nDPI with it. Just download
https://github.com/ntop/PF_RING in the same directory where you have downloaded
nDPI and compile PF_RING/userland/nbpf
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ndpi_typedefs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index f9550496c..18a53911d 100644 --- a/src/include/ndpi_typedefs.h +++ b/src/include/ndpi_typedefs.h @@ -1240,6 +1240,7 @@ struct ndpi_detection_module_struct { const struct ndpi_flow_input_info *input_info; #ifdef HAVE_NBPF + u_int8_t num_nbpf_custom_proto; nbpf_filter nbpf_custom_proto[MAX_NBPF_CUSTOM_PROTO]; #endif }; |