Compilation fix
This commit is contained in:
@@ -57,6 +57,8 @@
|
||||
#include "reader_util.h"
|
||||
#include "intrusion_detection.h"
|
||||
|
||||
#define ntohl64(x) ( ( (uint64_t)(ntohl( (uint32_t)((x << 32) >> 32) )) << 32) | ntohl( ((uint32_t)(x >> 32)) ) )
|
||||
#define htonl64(x) ntohl64(x)
|
||||
|
||||
/** Client parameters **/
|
||||
|
||||
@@ -3286,7 +3288,7 @@ static void ndpi_process_packet(u_char *args,
|
||||
memcpy(extcap_buf, packet, h.caplen);
|
||||
memset(trailer, 0, sizeof(struct ndpi_packet_trailer));
|
||||
trailer->magic = htonl(WIRESHARK_NTOP_MAGIC);
|
||||
trailer->flow_risk = htonll(flow_risk);
|
||||
trailer->flow_risk = htonl64(flow_risk);
|
||||
trailer->master_protocol = htons(p.master_protocol), trailer->app_protocol = htons(p.app_protocol);
|
||||
ndpi_protocol2name(ndpi_thread_info[thread_id].workflow->ndpi_struct, p, trailer->name, sizeof(trailer->name));
|
||||
crc = (uint32_t*)&extcap_buf[h.caplen+sizeof(struct ndpi_packet_trailer)];
|
||||
|
||||
Reference in New Issue
Block a user