Basically you're right - the code is in report.c, function (line 70)ff...
The header is printed ~ line 230, and the body of the report follows.
Down around 402 is this code, to dump the protocols being monitored:
for(i=0; i<numIpProtosToMonitor; i++) {
totalIPTraffic += el->protoIPTrafficInfos[i].receivedLocally+
el->protoIPTrafficInfos[i].receivedFromRemote;
if(snprintf(buf, sizeof(buf), "<TD "TD_BG" ALIGN=RIGHT>%s</TD>",
formatBytes(el->protoIPTrafficInfos[i].receivedLocally+
el->protoIPTrafficInfos[i].receivedFromRemote,
1)) < 0)
traceEvent(TRACE_ERROR, "Buffer overflow!");
sendString(buf);
}
So I guess what you're seeing is as the product is implemented.
Ideally, the basic table should skip columns that aren't being monitored and
the additional protocols should skip those already listed... patches would
be welcome!
-----Burton
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Stuart Herd - IT Dept.
Sent: Friday, December 28, 2001 9:45 AM
To: '[EMAIL PROTECTED]'
Subject: [Ntop] re: new release of ntop 2.0 - Dec 27
A Happy Holliday's to all from Canada. :-)
I have compiled and installed the latest release of ntop and much like a
previous post am seeing the protocol listing being appended to it's default
table in tcp/udp data sent/received when using the -p flag.
RH 7.1 w' patches.
no errors in compile or install.
ntop started with:
./ntop -P /var/log/ntop -m 172.19.0.0/16,192.168.1.0/24 -p
/usr/local/ntop/protocol.list -w 3000 -E -S 2 -u ntop -d
Regards,
Stuart Herd
I.T. Department
Royal Group Technologies Limited
Ph. 905.326.7381 x224
mailto:[EMAIL PROTECTED]
Confucius say: He who play in root, eventually kill tree.
PRIVILEGED / CONFIDENTIAL INFORMATION may be contained in this message. If
you are not the addressee indicated in this message or the employee or agent
responsible for delivering it to the addressee, you are hereby on notice
that you are in possession of confidential and privileged information. Any
dissemination, distribution, or copying of this e-mail is strictly
prohibited. In such case, you should destroy this message and kindly notify
the sender by reply e-mail. Please advise immediately if you or your
employer do not consent to Internet email for messages of this kind.
Opinions, conclusions, and other information in this message that do not
relate to the official business of the sender's firm shall be understood as
neither given nor endorsed by it. E-mail cannot be guaranteed to be secure,
error free or free from viruses. Royal does not accept any liability
whatsoever for any loss or damage which may be caused as a result of the
transmission of this e-mail.
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listmanager.unipi.it/mailman/listinfo/ntop
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listmanager.unipi.it/mailman/listinfo/ntop