Commit 0cb4b433 authored by 's avatar
Browse files

Section for DiMAPI added

git-svn-id: file:///home/svn/mapi/trunk@322 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent db02bb6c
No preview for this file type
......@@ -254,7 +254,7 @@ Firstly, using \textit{mapi\_create\_flow} you can create network flows describe
the flow descriptor that is returned. \textit{mapi\_create\_flow} takes as argument the network scope
that consists of all the desirable monitoring sensors including the monitoring
interface for each one, e.g.
\begin{code} mapi_create_flow("host1:eth0, host1:eth1, host2:/dev/dag, host3:eth0"); \end{code}
\begin{code}mapi_create_flow("host1:eth0, host1:eth1, host2:/dev/dag, host3:eth0");\end{code}
For every network flow, you can apply the function you want using the
\textit{mapi\_apply\_function}. This funcrion will be applied to all the remote monitoring sensors defined
at the network scope.
......@@ -834,7 +834,7 @@ int main() {
for (i=0; i<dres->cnt; i++) {
count = *( (unsigned long long*) dres->res[i].result );
printf("web packets in host %s: %llu\n",dres->res[i].host_dev, count);
printf("web pkts in host %s: %llu\n",dres->res[i].host_dev, count);
total_count += count;
printf("Total web packets: %llu\n",total_count);
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