diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2021-07-21 03:13:54 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2021-07-21 17:38:54 +0200 |
commit | 615478be3e8d4d4e22f624fc33b60d1a79e9271b (patch) | |
tree | 1e69162bf6086e10d7d42e9d047085d56c10c580 /example/ndpiReader.c | |
parent | 32275543c421eae55fd98a5a98e00059a0407953 (diff) |
Implemented function to retrieve flow information. #1253add/get-flow-info-apifn
* fixed [h]euristic typo
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 10 |
1 files changed, 5 insertions, 5 deletions
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) { |