Commit 9d95a00a authored by 's avatar
Browse files

Minor changes


git-svn-id: file:///home/svn/mapi/trunk@380 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent 6ac61d17
......@@ -166,13 +166,17 @@ static int dc_process(mapidflib_function_instance_t *instance,
(temp->saddr == daddr && temp->daddr == saddr && temp->sp == dp && temp->dp == sp))
)
{
/* if(tcph->fin)
{
prev->next = temp->next;
if(iph->protocol == 6 && tcph->fin) {
if(temp == dclist->head){
dclist->head = temp->next;
}
else {
prev->next = temp->next;
}
temp->next = NULL;
free(temp);
}
*/
return 1;
}
}
......
......@@ -298,13 +298,17 @@ static int edonkey_process(mapidflib_function_instance_t *instance,
(temp->saddr == daddr && temp->daddr == saddr && temp->sp == dp && temp->dp == sp))
)
{
/* if(tcph->fin)
{
prev->next = temp->next;
if(iph->protocol == 6 && tcph->fin) {
if(temp == edonkeylist->head) {
edonkeylist->head = temp->next;
}
else {
prev->next = temp->next;
}
temp->next = NULL;
free(temp);
}
*/
return 1;
}
}
......
......@@ -161,13 +161,17 @@ static int gnutella_process(mapidflib_function_instance_t *instance,
(temp->saddr == daddr && temp->daddr == saddr && temp->sp == dp && temp->dp == sp))
)
{
/* if(tcph->fin)
{
prev->next = temp->next;
if(iph->protocol == 6 && tcph->fin) {
if(temp == gnulist->head) {
gnulist->head = temp->next;
}
else {
prev->next = temp->next;
}
temp->next = NULL;
free(temp);
}
*/
return 1;
}
}
......
......@@ -165,13 +165,17 @@ static int torrent_process(mapidflib_function_instance_t *instance,
(temp->saddr == daddr && temp->daddr == saddr && temp->sp == dp && temp->dp == sp))
)
{
/* if(tcph->fin)
{
prev->next = temp->next;
if(iph->protocol == 6 && tcph->fin) {
if(temp == torlist->head) {
torlist->head = temp->next;
}
else {
prev->next = temp->next;
}
temp->next = NULL;
free(temp);
}
*/
return 1;
}
}
......
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