Win fixes
This commit is contained in:
@@ -30,12 +30,12 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <sys/param.h>
|
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#include "ndpi_win32.h"
|
#include "ndpi_win32.h"
|
||||||
#else
|
#else
|
||||||
|
#include <sys/param.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <sys/time.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) {
|
if (memcmp(packet->payload, "POST ", 5) == 0) {
|
||||||
ndpi_parse_packet_line_info(ndpi_struct, flow);
|
ndpi_parse_packet_line_info(ndpi_struct, flow);
|
||||||
if (packet->parsed_lines) {
|
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) {
|
if (packet->payload_packet_len > http_header_len) {
|
||||||
http_content_ptr_len = 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)) {
|
if((packet->udp != NULL) && ((packet->payload_packet_len % 188) == 0)) {
|
||||||
u_int i, num_chunks = packet->payload_packet_len / 188;
|
u_int i, num_chunks = packet->payload_packet_len / 188;
|
||||||
u_int32_t pkt_id;
|
|
||||||
|
|
||||||
for(i=0; i<num_chunks; i++) {
|
for(i=0; i<num_chunks; i++) {
|
||||||
u_int offset = 188 * i;
|
u_int offset = 188 * i;
|
||||||
|
|||||||
Reference in New Issue
Block a user