From 6ad0d6666c5744713caa4eec4d43652680aaecab Mon Sep 17 00:00:00 2001 From: Toni Date: Fri, 23 Jul 2021 10:37:20 +0200 Subject: Implemented function to retrieve flow information. #1253 (#1254) * fixed [h]euristic typo Signed-off-by: Toni Uhlig --- example/ndpiReader.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'example/ndpiReader.c') diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 99b24874b..b44346506 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -61,7 +61,7 @@ #define ntohl64(x) ( ( (uint64_t)(ntohl( (uint32_t)((x << 32) >> 32) )) << 32) | ntohl( ((uint32_t)(x >> 32)) ) ) #define htonl64(x) ntohl64(x) -#define EURISTICS_CODE 1 +#define HEURISTICS_CODE 1 /** Client parameters **/ @@ -1484,10 +1484,10 @@ static void printFlow(u_int32_t id, struct ndpi_flow_info *flow, u_int16_t threa } } -#ifdef EURISTICS_CODE - if(flow->ssh_tls.browser_euristics.is_safari_tls) fprintf(out, "[Safari]"); - if(flow->ssh_tls.browser_euristics.is_firefox_tls) fprintf(out, "[Firefox]"); - if(flow->ssh_tls.browser_euristics.is_chrome_tls) fprintf(out, "[Chrome]"); +#ifdef HEURISTICS_CODE + if(flow->ssh_tls.browser_heuristics.is_safari_tls) fprintf(out, "[Safari]"); + if(flow->ssh_tls.browser_heuristics.is_firefox_tls) fprintf(out, "[Firefox]"); + if(flow->ssh_tls.browser_heuristics.is_chrome_tls) fprintf(out, "[Chrome]"); #endif if(flow->ssh_tls.notBefore && flow->ssh_tls.notAfter) { -- cgit v1.2.3