diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2025-06-23 11:24:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-23 11:24:18 +0200 |
commit | 978ca1ba1ab0f9d3f7d3c46e6f80a829b08205db (patch) | |
tree | f7748c2d810c75c0155fa3f81e3146a797f6fdba /src/lib/ndpi_utils.c | |
parent | 6cbc8d1471be221766fac49ed73f5b0e837917be (diff) |
New API to enable/disable protocols. Removed `NDPI_LAST_IMPLEMENTED_PROTOCOL` (#2894)
Change the API to enable/disable protocols: you can set that via the
standard `ndpi_set_config()` function, as every configuration
parameters. By default, all protocols are enabled.
Split the (local) context initialization into two phases:
* `ndpi_init_detection_module()`: generic part. It does not depend on the
configuration and on the protocols being enabled or not. It also
calculates the real number of internal protocols
* `ndpi_finalize_initialization()`: apply the configuration. All the
initialization stuff that depend on protocols being enabled or not
must be put here
This is the last step to have the protocols number fully calculated at
runtime
Remove a (now) useless fuzzer.
Important API changes:
* remove `NDPI_LAST_IMPLEMENTED_PROTOCOL` define
* remove `ndpi_get_num_internal_protocols()`. To get the number of
configured protocols (internal and custom) you must use
`ndpi_get_num_protocols()` after having called `ndpi_finalize_initialization()`
Diffstat (limited to 'src/lib/ndpi_utils.c')
0 files changed, 0 insertions, 0 deletions