Win fixes
This commit is contained in:
@@ -30,12 +30,12 @@
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <time.h>
|
||||
#include <sys/param.h>
|
||||
#include <limits.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#include "ndpi_win32.h"
|
||||
#else
|
||||
#include <sys/param.h>
|
||||
#include <pthread.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
@@ -585,7 +585,7 @@ void ndpi_search_irc_tcp(struct ndpi_detection_module_struct *ndpi_struct, struc
|
||||
if (memcmp(packet->payload, "POST ", 5) == 0) {
|
||||
ndpi_parse_packet_line_info(ndpi_struct, flow);
|
||||
if (packet->parsed_lines) {
|
||||
u_int16_t http_header_len = (packet->line[packet->parsed_lines - 1].ptr - packet->payload) + 2;
|
||||
u_int16_t http_header_len = (u_int16_t)((packet->line[packet->parsed_lines - 1].ptr - packet->payload) + 2);
|
||||
if (packet->payload_packet_len > http_header_len) {
|
||||
http_content_ptr_len = packet->payload_packet_len - http_header_len;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,6 @@ void ndpi_search_mpegts(struct ndpi_detection_module_struct *ndpi_struct, struct
|
||||
|
||||
if((packet->udp != NULL) && ((packet->payload_packet_len % 188) == 0)) {
|
||||
u_int i, num_chunks = packet->payload_packet_len / 188;
|
||||
u_int32_t pkt_id;
|
||||
|
||||
for(i=0; i<num_chunks; i++) {
|
||||
u_int offset = 188 * i;
|
||||
|
||||
Reference in New Issue
Block a user