Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix classification-by-ip in ndpi_detection_giveup #1981

Merged
merged 1 commit into from
May 17, 2023

Conversation

IvanNardi
Copy link
Collaborator

@IvanNardi IvanNardi commented May 16, 2023

Return the "classification-by-ip" as protocol results only if no other results are available.
In particular, never return something like
"protocol_by_port/protocol_by_ip" (i.e. NTP/Apple, BitTorrent/GoogleCloud, Zoom/AWS) because this kind of classification is quite confusing, if not plainly wrong.

Notes:

  • the information about "classification-by-ip" is always available, so no information is lost with this change;
  • in the unit tests, the previous classifications with confidence NDPI_CONFIDENCE_DPI_PARTIAL were wrong, as noted in Question about using "guessed_protocol_id" #1957

Return the "classification-by-ip" as protocol results only if no other
results are available.
In particular, never return something like
"protocol_by_port/protocol_by_ip" (i.e. `NTP/Apple`,
BitTorrent/GoogleCloud`, `Zoom/AWS`) because this kind of classification
is quite confusing, if not plainly wrong.

Notes:
* the information about "classification-by-ip" is always available, so
no information is lost with this change;
* in the unit tests, the previous classifications with confidence
`NDPI_CONFIDENCE_DPI_PARTIAL` were wrong, as noted in ntop#1957
@IvanNardi IvanNardi requested a review from lucaderi May 16, 2023 19:40
@sonarcloud
Copy link

sonarcloud bot commented May 16, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@lucaderi
Copy link
Member

Thank you

@IvanNardi IvanNardi deleted the giveup-ip branch May 17, 2023 09:27
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