Commit afbf98d7 authored by 's avatar

Change in STATS arguments


git-svn-id: file:///home/svn/mapi/trunk@976 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent ef494be1
......@@ -289,9 +289,13 @@ is the relative time from the first captured packet.
Type of results: \fBnone\fP.
.\"--------------------------------------------------------
.IP "\fBSTATS\fP (int \fIflow\fP, int \fIfunction\fP, int \fIskip\fP)"
.IP "\fBSTATS\fP (int \fIflow\fP, int \fIfunction\fP, char* \fIticks\fP)"
Returns statistical information about results from MAPI function with fid
\fIfunction\fP. \fIskip\fP is the number of packets to skip before reading the first result.
\fIfunction\fP. If \fIticks\fP is equal to 1, then the first packet is skiped.
If it equal to 0, then no packets will be skiped.
Else, the \fIticks\fP parameter indicates the period tha the results will be
reported.
.\"is the number of packets to skip before reading the first result.
Type of results: \fBstruct stats\fP.
......
No preview for this file type
......@@ -51,7 +51,7 @@ DOT;
}
DOT;
if((fid=mapi_apply_function(fd,"STATS",fd,size,0))<0){
if((fid=mapi_apply_function(fd,"STATS",fd,size,"0"))<0){
fprintf(stderr, "Could not apply STATS to flow %d\n", fd);
mapi_read_error( &err_no, error);
fprintf(stderr,"Errorcode :%d description: %s \n" ,err_no, error);
......@@ -113,7 +113,7 @@ DOT;
DOT;
fid=mapi_apply_function(fd,"STATS",1234343,size,0);
fid=mapi_apply_function(fd,"STATS",1234343,size,"0");
if (fid<0){
mapi_read_error( &err_no, error);
printf("Testing error case1: Errorcode :%d description: %s \n" ,err_no, error);
......@@ -123,7 +123,7 @@ DOT;
}
}
DOT;
fid=mapi_apply_function(fd,"STATS",fd,-12352,0);
fid=mapi_apply_function(fd,"STATS",fd,-12352,"0");
if (fid<0){
mapi_read_error( &err_no, error);
printf("Testing error case2: Errorcode :%d description: %s \n" ,err_no, error);
......
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