Commit 388cca1d authored by 's avatar
Browse files

fixes


git-svn-id: file:///home/svn/mapi/trunk@238 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent 99ac5111
......@@ -126,14 +126,14 @@ void tcp_callback(struct tcp_stream *ns, void **param)
if(ns->nids_state == NIDS_JUST_EST)
{
//fprintf(stderr,"JUST_EST\n");
//fprintf(stderr,"JUST_ESTABLISHED\n");
ns->client.collect++;
if(threshold==-1) {
ns->client.reassembled_data = NULL;
ns->client_reassembly_limit=0;
}
else {
ns->client.reassembled_data = (char *)malloc(sizeof(char) * threshold+2000);
ns->client.reassembled_data = (char *)malloc(sizeof(char) * threshold+1500);
}
ns->client.read = 0;
ns->client.total_read = 0;
......@@ -150,7 +150,7 @@ void tcp_callback(struct tcp_stream *ns, void **param)
ns->server_reassembly_limit=0;
}
else {
ns->server.reassembled_data = (char *)malloc(sizeof(char) * threshold+2000);
ns->server.reassembled_data = (char *)malloc(sizeof(char)*threshold+1500);
}
ns->server.read = 0;
......@@ -413,7 +413,8 @@ static int cook_process(mapidflib_function_instance_t *instance,const unsigned c
ip_len = (iph->ip_hl & 0xf) * 4;
if(iph->ip_p != IPPROTO_TCP) // no TCP packet
return 1;
//printf("i got a packet %d\n",data->id);
nids_mapi_next(&h, link_pkt,data->id);
if(status == NON_CHECKED)
......
No preview for this file type
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment