aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--example/reader_util.c2
-rw-r--r--src/include/ndpi_api.h2
-rw-r--r--src/lib/ndpi_main.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/example/reader_util.c b/example/reader_util.c
index 6536645c9..4bef4b816 100644
--- a/example/reader_util.c
+++ b/example/reader_util.c
@@ -185,7 +185,7 @@ void ndpi_payload_analyzer(struct ndpi_flow_info *flow,
u_int16_t i, j;
u_int16_t scan_len = ndpi_min(max_packet_payload_dissection, payload_len);
- if((flow->entropy.src2dst_pkt_count+flow->entropy.dst2src_pkt_count) <= max_num_packets_per_flow) {
+ if((flow->src2dst_packets+flow->dst2src_packets) <= max_num_packets_per_flow) {
#ifdef DEBUG_PAYLOAD
printf("[hashval: %u][proto: %u][vlan: %u][%s:%u <-> %s:%u][direction: %s][payload_len: %u]\n",
flow->hashval, flow->protocol, flow->vlan_id,
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h
index e424a2ef5..7a8b68e17 100644
--- a/src/include/ndpi_api.h
+++ b/src/include/ndpi_api.h
@@ -848,7 +848,7 @@ extern "C" {
ndpi_serializer *serializer);
/* ptree (trie) API */
- ndpi_ptree_t* ndpi_ptree_create();
+ ndpi_ptree_t* ndpi_ptree_create(void);
int ndpi_ptree_insert(ndpi_ptree_t *tree, const ndpi_ip_addr_t *addr, u_int8_t bits, uint user_data);
int ndpi_ptree_match_addr(ndpi_ptree_t *tree, const ndpi_ip_addr_t *addr, uint *user_data);
void ndpi_ptree_destroy(ndpi_ptree_t *tree);
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c
index 65ff159e7..995bc4c26 100644
--- a/src/lib/ndpi_main.c
+++ b/src/lib/ndpi_main.c
@@ -6546,7 +6546,7 @@ ndpi_l4_proto_info ndpi_get_l4_proto_info(struct ndpi_detection_module_struct *n
/* ******************************************************************** */
-ndpi_ptree_t* ndpi_ptree_create() {
+ndpi_ptree_t* ndpi_ptree_create(void) {
ndpi_ptree_t *tree = (ndpi_ptree_t*) ndpi_malloc(sizeof(ndpi_ptree_t));
if(tree) {