diff options
-rw-r--r-- | src/lib/protocols/smpp.c | 4 | ||||
-rw-r--r-- | src/lib/third_party/include/ahocorasick.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/protocols/smpp.c b/src/lib/protocols/smpp.c index e4ab8f93f..2b3542a9b 100644 --- a/src/lib/protocols/smpp.c +++ b/src/lib/protocols/smpp.c @@ -67,7 +67,9 @@ void ndpi_search_smpp_tcp(struct ndpi_detection_module_struct* ndpi_struct, // check if multiple PDUs included u_int32_t total_pdu_l = pdu_l; u_int32_t tmp_pdu_l = 0; +#ifdef NDPI_ENABLE_DEBUG_MESSAGES u_int16_t pdu_c = 1; +#endif // loop PDUs (check if lengths are valid) while(total_pdu_l < ((uint32_t)packet->payload_packet_len-4)) { // get next PDU length @@ -76,8 +78,10 @@ void ndpi_search_smpp_tcp(struct ndpi_detection_module_struct* ndpi_struct, if(tmp_pdu_l == 0 || ndpi_check_overflow(tmp_pdu_l, total_pdu_l) ) return; // inc total PDU length total_pdu_l += ntohl(get_u_int32_t(packet->payload, total_pdu_l)); +#ifdef NDPI_ENABLE_DEBUG_MESSAGES // inc total PDU count ++pdu_c; +#endif } NDPI_LOG_DBG2(ndpi_struct, diff --git a/src/lib/third_party/include/ahocorasick.h b/src/lib/third_party/include/ahocorasick.h index 3eb8fdcf7..0651ce0f8 100644 --- a/src/lib/third_party/include/ahocorasick.h +++ b/src/lib/third_party/include/ahocorasick.h @@ -174,8 +174,8 @@ struct edge; typedef struct ac_node { int id; /* Node ID : set after finalize(), only for ac_automata_dump */ - AC_ALPHABET_t one_alpha, - one:1, /* one_char: yes/no */ + AC_ALPHABET_t one_alpha; + unsigned char one:1, /* one_char: yes/no */ range:1, /* range symbols start from one_alpha */ root:1, /* is root node */ final:1, /* 0: no ; 1: yes, it is a final node */ |