diff options
author | Toni <matzeton@googlemail.com> | 2021-07-23 10:37:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-23 10:37:20 +0200 |
commit | 6ad0d6666c5744713caa4eec4d43652680aaecab (patch) | |
tree | ce8aa34398d2afe94d3d999d1b4577bd659da99f /example/ndpiReader.c | |
parent | 8ea8ba8e9b52620989d515f0762be3ec906d4c30 (diff) |
Implemented function to retrieve flow information. #1253 (#1254)
* 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) { |