Skip to content

Added nDPI Configuration Export#3022

Merged
lucaderi merged 8 commits into
ntop:devfrom
lucaderi:dev
Nov 9, 2025
Merged

Added nDPI Configuration Export#3022
lucaderi merged 8 commits into
ntop:devfrom
lucaderi:dev

Conversation

@lucaderi

@lucaderi lucaderi commented Nov 8, 2025

Copy link
Copy Markdown
Member

Please sign (check) the below before submitting the Pull Request:

Link to the related issue:

Describe changes:

Added

  • ndpi_dump_host_based_protocol_id()
  • ndpi_dump_host_based_category_id()

to enable users to dump protocolId and categoryId of host-based protocols

ndpiReader

  • Added
    --protos-dump | Dump host-based protocolId (mode=1) and categoryId (mode=2)

Reworked ndpi_main.c code and moved some code on a new file named ndpi_config.c

- Removed nDPI configuration code from ndpi_main.c and placed into ndpi_config.c
- Moved some utils functions from ndpi_main.c to ndpi_utils.c
- ndpi_dump_host_based_protocol_id()
- ndpi_dump_host_based_category_id()

to enable users to dump protocolId and categoryId of host-based protocols

ndpiReader
- Added
--protos-dump <mode>       | Dump host-based protocolId (mode=1) and categoryId (mode=2)
@sonarqubecloud

sonarqubecloud Bot commented Nov 8, 2025

Copy link
Copy Markdown

@lucaderi lucaderi merged commit 5c327aa into ntop:dev Nov 9, 2025
32 checks passed
lucaderi added a commit that referenced this pull request Nov 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant