Merge branch 'dev' of https://github.com/ntop/nDPI into dev
This commit is contained in:
@@ -129,7 +129,7 @@ struct hash_ip4p_table {
|
|||||||
int ipv6;
|
int ipv6;
|
||||||
spinlock_t lock;
|
spinlock_t lock;
|
||||||
atomic_t count;
|
atomic_t count;
|
||||||
struct hash_ip4p tbl[0];
|
struct hash_ip4p tbl;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct bt_announce { // 192 bytes
|
struct bt_announce { // 192 bytes
|
||||||
|
|||||||
+1
-1
@@ -4212,7 +4212,7 @@ unsigned int ndpi_detection_process_packet(struct ndpi_detection_module_struct *
|
|||||||
flow->packet.tick_timestamp = d;
|
flow->packet.tick_timestamp = d;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
flow->packet.tick_timestamp = current_tick_l/1000;
|
flow->packet.tick_timestamp = (u_int32_t)current_tick_l/1000;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* parse packet */
|
/* parse packet */
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ void ndpi_search_warcraft3(struct ndpi_detection_module_struct
|
|||||||
// struct ndpi_id_struct *src=ndpi_struct->src;
|
// struct ndpi_id_struct *src=ndpi_struct->src;
|
||||||
// struct ndpi_id_struct *dst=ndpi_struct->dst;
|
// struct ndpi_id_struct *dst=ndpi_struct->dst;
|
||||||
|
|
||||||
u_int32_t l; /*
|
u_int16_t l; /*
|
||||||
Leave it as u_int32_t because otherwise 'u_int16_t temp'
|
Leave it as u_int32_t because otherwise 'u_int16_t temp'
|
||||||
might overflood it and thus generate an infinite loop
|
might overflood it and thus generate an infinite loop
|
||||||
*/
|
*/
|
||||||
|
|||||||
+5
-1
@@ -44,7 +44,7 @@
|
|||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
#define PATRICIA_IPV6 HAVE_IPV6
|
#define PATRICIA_IPV6 HAVE_IPV6
|
||||||
#else
|
#else
|
||||||
#define PATRICIA_IPV6 0
|
#undef PATRICIA_IPV6
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* typedef unsigned int u_int; */
|
/* typedef unsigned int u_int; */
|
||||||
@@ -142,7 +142,11 @@ void ndpi_Clear_Patricia (patricia_tree_t *patricia, void_fn_t func);
|
|||||||
void ndpi_Destroy_Patricia (patricia_tree_t *patricia, void_fn_t func);
|
void ndpi_Destroy_Patricia (patricia_tree_t *patricia, void_fn_t func);
|
||||||
void ndpi_patricia_process (patricia_tree_t *patricia, void_fn2_t func);
|
void ndpi_patricia_process (patricia_tree_t *patricia, void_fn2_t func);
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
|
#define PATRICIA_MAXBITS 128
|
||||||
|
#else
|
||||||
#define PATRICIA_MAXBITS (sizeof(struct in6_addr) * 8)
|
#define PATRICIA_MAXBITS (sizeof(struct in6_addr) * 8)
|
||||||
|
#endif
|
||||||
#define PATRICIA_NBIT(x) (0x80 >> ((x) & 0x7f))
|
#define PATRICIA_NBIT(x) (0x80 >> ((x) & 0x7f))
|
||||||
#define PATRICIA_NBYTE(x) ((x) >> 3)
|
#define PATRICIA_NBYTE(x) ((x) >> 3)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user