aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2018-11-21 23:25:27 +0100
committerLuca Deri <deri@ntop.org>2018-11-21 23:25:27 +0100
commitf15aed6c46461779459031058f0e9f076a3186bc (patch)
tree42141652cd228068de09cbac390e7e6a8c07e22b /example
parente9dd5985b3d3f1ac462b9145c20f32c4ed7869b7 (diff)
Renamed internal function
Diffstat (limited to 'example')
-rw-r--r--example/ndpiReader.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index 2885399d2..29d07e299 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -2400,7 +2400,7 @@ static pcap_t * openPcapFileOrDevice(u_int16_t thread_id, const u_char * pcap_fi
/**
* @brief Check pcap packet
*/
-static void pcap_process_packet(u_char *args,
+static void ndpi_process_packet(u_char *args,
const struct pcap_pkthdr *header,
const u_char *packet) {
struct ndpi_proto p;
@@ -2522,7 +2522,7 @@ static void pcap_process_packet(u_char *args,
*/
static void runPcapLoop(u_int16_t thread_id) {
if((!shutdown_app) && (ndpi_thread_info[thread_id].workflow->pcap_handle != NULL))
- pcap_loop(ndpi_thread_info[thread_id].workflow->pcap_handle, -1, &pcap_process_packet, (u_char*)&thread_id);
+ pcap_loop(ndpi_thread_info[thread_id].workflow->pcap_handle, -1, &ndpi_process_packet, (u_char*)&thread_id);
}
/**
@@ -2570,7 +2570,7 @@ void * processing_thread(void *_thread_id) {
h.len = h.caplen = len;
gettimeofday(&h.ts, NULL);
- pcap_process_packet((u_char*)&thread_id, &h, (const u_char *)data);
+ ndpi_process_packet((u_char*)&thread_id, &h, (const u_char *)data);
rte_pktmbuf_free(bufs[i]);
}
}