Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arne Øslebø
mapi
Commits
388cca1d
Commit
388cca1d
authored
Nov 07, 2005
by
Browse files
fixes
git-svn-id:
file:///home/svn/mapi/trunk@238
8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent
99ac5111
Changes
2
Hide whitespace changes
Inline
Side-by-side
stdlib/cooking.c
View file @
388cca1d
...
...
@@ -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_EST
ABLISHED
\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
+
20
00
);
ns
->
client
.
reassembled_data
=
(
char
*
)
malloc
(
sizeof
(
char
)
*
threshold
+
15
00
);
}
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
+
20
00
);
ns
->
server
.
reassembled_data
=
(
char
*
)
malloc
(
sizeof
(
char
)
*
threshold
+
15
00
);
}
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
)
...
...
stdlib/libnids/libnids.a
View file @
388cca1d
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment