Commit 62cf2c50 authored by 's avatar
Browse files

sorry my mistake about node malloc relocation



git-svn-id: file:///home/svn/mapi/trunk@273 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent ad026bfa
......@@ -131,11 +131,9 @@ static int gnutella_process(mapidflib_function_instance_t *instance,
daddr = *((unsigned int *)&(iph->daddr));
p += iph->ihl * 4;
if(iph->protocol == 6) // TCP
{
new->protocol = iph->protocol;
tcph = (struct tcphdr *)p;
......@@ -146,8 +144,6 @@ static int gnutella_process(mapidflib_function_instance_t *instance,
{
udph = (struct udphdr *)p;
new->protocol = iph->protocol;
sp = ntohs(udph->source);
dp = ntohs(udph->dest);
}
......
......@@ -27,8 +27,8 @@ int main(MAPI_UNUSED int argc, char *argv[])
mapi_apply_function(fd, "BPF_FILTER", "tcp or udp");
fid=mapi_apply_function(fd,"PKT_COUNTER");
fid2=mapi_apply_function(fd,"BYTE_COUNTER");
mapi_apply_function(fd,"TRACK_FTP");
//mapi_apply_function(fd,"TRACK_GNUTELLA");
//mapi_apply_function(fd,"TRACK_FTP");
mapi_apply_function(fd,"TRACK_GNUTELLA");
fid3=mapi_apply_function(fd,"PKT_COUNTER");
fid4=mapi_apply_function(fd,"BYTE_COUNTER");
......
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