diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2023-12-03 09:03:56 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2023-12-14 00:19:35 +0100 |
commit | 709e460c896861f413baa5189d46b15ba06c2673 (patch) | |
tree | 71ef4908d4778ba2f22bf83bd3f1506698779e71 /src/lib | |
parent | ef62391dba4814ab840539406f276685ba8535f1 (diff) |
Add realtime protocol output to `ndpiReader`.add/output-realtime-protocols
* support for using a new flow callback invoked before the flow memory is free'd
* minor fixes
* Win32 gmtime fix
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/ndpi_main.c | 2 | ||||
-rw-r--r-- | src/lib/ndpi_utils.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 9c327aa09..8c622bc1e 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -4081,7 +4081,7 @@ static u_int16_t guess_protocol_id(struct ndpi_detection_module_struct *ndpi_str } } return(NDPI_PROTOCOL_IP_ICMPV6); - case 112: + case NDPI_VRRP_PROTOCOL_TYPE: return(NDPI_PROTOCOL_IP_VRRP); } } diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index ff56bb61d..4d2fcf09d 100644 --- a/src/lib/ndpi_utils.c +++ b/src/lib/ndpi_utils.c @@ -1569,7 +1569,7 @@ char *ndpi_get_ip_proto_name(u_int16_t ip_proto, char *name, unsigned int name_l snprintf(name, name_len, "PIM"); break; - case 112: + case NDPI_VRRP_PROTOCOL_TYPE: snprintf(name, name_len, "VRRP"); break; @@ -2815,7 +2815,7 @@ int ndpi_vsnprintf(char * str, size_t size, char const * format, va_list va_args struct tm *ndpi_gmtime_r(const time_t *timep, struct tm *result) { -#ifdef WIN32 +#if defined(WIN32) gmtime_s(result, timep); return result; #else |