Updated (C)

This commit is contained in:
Luca Deri
2020-01-05 18:24:58 +01:00
parent 23421b47d9
commit 29dd45838d
135 changed files with 136 additions and 135 deletions
+2 -1
View File
@@ -2872,7 +2872,8 @@ static void ndpi_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, &ndpi_process_packet, (u_char*)&thread_id);
if(pcap_loop(ndpi_thread_info[thread_id].workflow->pcap_handle, -1, &ndpi_process_packet, (u_char*)&thread_id) < 0)
printf("Error while reading pcap file: '%s'\n", pcap_geterr(ndpi_thread_info[thread_id].workflow->pcap_handle));
}
/**