-
Notifications
You must be signed in to change notification settings - Fork 911
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
Conversation
firsttime = flow->first_seen_ms / TICK_RESOLUTION; | ||
localtime_r(&firsttime, &tm); | ||
|
||
strftime(stime, sizeof(stime), "%T", &tm ); |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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>
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this 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) { |
There was a problem hiding this comment.
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] = { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that's good.
@Anton-89, any updates on this PR? |
Replaced by #2197. |
No description provided.