diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/ndpi_analyze.c | 8 | ||||
-rw-r--r-- | src/lib/ndpi_content_match.c.inc | 8 |
2 files changed, 9 insertions, 7 deletions
diff --git a/src/lib/ndpi_analyze.c b/src/lib/ndpi_analyze.c index 88ed97cc3..d1335bb64 100644 --- a/src/lib/ndpi_analyze.c +++ b/src/lib/ndpi_analyze.c @@ -38,6 +38,8 @@ void ndpi_init_data_analysis(struct ndpi_analyze_struct *ret, u_int16_t _max_series_len) { u_int32_t len; + + memset(ret, 0, sizeof(struct ndpi_analyze_struct)); if(_max_series_len > MAX_SERIES_LEN) _max_series_len = MAX_SERIES_LEN; ret->num_values_array_len = _max_series_len; @@ -58,10 +60,8 @@ void ndpi_init_data_analysis(struct ndpi_analyze_struct *ret, u_int16_t _max_ser struct ndpi_analyze_struct* ndpi_alloc_data_analysis(u_int16_t _max_series_len) { struct ndpi_analyze_struct *ret = ndpi_malloc(sizeof(struct ndpi_analyze_struct)); - if(ret != NULL) { - memset(ret, 0, sizeof(struct ndpi_analyze_struct)); - ndpi_init_data_analysis(ret, _max_series_len); - } + if(ret != NULL) + ndpi_init_data_analysis(ret, _max_series_len); return(ret); } diff --git a/src/lib/ndpi_content_match.c.inc b/src/lib/ndpi_content_match.c.inc index 79ab8e5e4..81eebed72 100644 --- a/src/lib/ndpi_content_match.c.inc +++ b/src/lib/ndpi_content_match.c.inc @@ -1117,10 +1117,12 @@ static ndpi_network host_protocol_list[] = { /* Tor http://torstatus.blutmagie.de/ip_list_all.php/Tor_ip_list_ALL.csv - From 02/17/2017 + From 09.09.2019 + + Use utils/toripaddr2list.py to convert them */ - - { 0x0122A339 /* 1.34.163.57/32 */, 32, NDPI_PROTOCOL_TOR }, + + { 0x0122a339 /* 1.34.163.57/32 */, 32, NDPI_PROTOCOL_TOR }, { 0x01EA0B8E /* 1.234.11.142/32 */, 32, NDPI_PROTOCOL_TOR }, { 0x01F4E33D /* 1.244.227.61/32 */, 32, NDPI_PROTOCOL_TOR }, { 0x02054D8A /* 2.5.77.138/32 */, 32, NDPI_PROTOCOL_TOR }, |