Skip to content

Split ndpi_set_proto_defaults() logic#2864

Merged
IvanNardi merged 1 commit into
ntop:devfrom
IvanNardi:proto-defaults-2
Jun 3, 2025
Merged

Split ndpi_set_proto_defaults() logic#2864
IvanNardi merged 1 commit into
ntop:devfrom
IvanNardi:proto-defaults-2

Conversation

@IvanNardi

Copy link
Copy Markdown
Collaborator

Split the internal logic:

  • update ndpi_str->proto_defaults[] array
  • update the default_ports_tree_node_t trees

This is a preliminary work to have dynamic allocated ndpi_str->proto_defaults[], because in the tree we have a pointer to the array entries

Comment thread src/lib/ndpi_main.c Fixed
Split the internal logic:
* update `ndpi_str->proto_defaults[]` array
* update the `default_ports_tree_node_t` trees

This is a preliminary work to have dynamic allocated
`ndpi_str->proto_defaults[]`, because in the tree we have a pointer to
the array entries
@sonarqubecloud

sonarqubecloud Bot commented Jun 3, 2025

Copy link
Copy Markdown

@IvanNardi IvanNardi merged commit 88bfe2c into ntop:dev Jun 3, 2025
30 of 31 checks passed
@IvanNardi IvanNardi deleted the proto-defaults-2 branch June 3, 2025 18:09
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.

2 participants