aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_main.c
diff options
context:
space:
mode:
authorCampus <campus@ntop.org>2017-03-15 18:42:44 +0100
committerCampus <campus@ntop.org>2017-03-15 18:42:44 +0100
commit3add72c6865e3099de9a78fed1823966a67675d8 (patch)
tree217cf0506d8220514ba791c6c125582ab0c60c37 /src/lib/ndpi_main.c
parent5de6a96af5754c13846883b556f58fc79831c61d (diff)
deleted useless function - change macro name
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r--src/lib/ndpi_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c
index f7346594e..31d2ab435 100644
--- a/src/lib/ndpi_main.c
+++ b/src/lib/ndpi_main.c
@@ -4097,7 +4097,7 @@ void ndpi_int_change_protocol(struct ndpi_detection_module_struct *ndpi_struct,
void ndpi_int_reset_packet_protocol(struct ndpi_packet_struct *packet) {
int a;
- for(a = 0; a < NDPI_PROTOCOL_HISTORY_SIZE; a++)
+ for(a = 0; a < NDPI_PROTOCOL_SIZE; a++)
packet->detected_protocol_stack[a] = NDPI_PROTOCOL_UNKNOWN;
}
@@ -4105,7 +4105,7 @@ void ndpi_int_reset_protocol(struct ndpi_flow_struct *flow) {
if(flow) {
int a;
- for(a = 0; a < NDPI_PROTOCOL_HISTORY_SIZE; a++) {
+ for(a = 0; a < NDPI_PROTOCOL_SIZE; a++) {
flow->detected_protocol_stack[a] = NDPI_PROTOCOL_UNKNOWN;
}
}