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

Realtime output detected protocol #2059

Closed

Conversation

Bit-Warrior-X
Copy link

No description provided.

firsttime = flow->first_seen_ms / TICK_RESOLUTION;
localtime_r(&firsttime, &tm);

strftime(stime, sizeof(stime), "%T", &tm );
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please replace the time format %T with %H:%M:%S.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your advice. I will fix it.

Co-authored-by: Toni <matzeton@googlemail.com>
@sonarqubecloud
Copy link

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
No Duplication information No Duplication information

Copy link
Collaborator

@IvanNardi IvanNardi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These callbacks might be useful.
However, could we make this logic configurable (via a ndpiReader flag), and disabled by default, please?

/**
* @brief From IPPROTO to string NAME
*/
static char* ipProto2Name(u_int16_t proto_id) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you use ndpi_get_ip_proto_name instead?

return(proto);
}

static int specific_protos[12] = {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you move this array into is_specific_protocol(), please?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that's good.

@IvanNardi
Copy link
Collaborator

@Anton-89, any updates on this PR?

@utoni
Copy link
Collaborator

utoni commented Jan 4, 2024

Replaced by #2197.

@utoni utoni closed this Jan 4, 2024
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.

3 participants