1) Move the code in main.c:
/* Patch courtesy of Burton M. Strauss III <[EMAIL PROTECTED]> */
if(protoSpecs != NULL) {
if(protoSpecs[0] != '\0')
handleProtocols(protoSpecs);
free(protoSpecs);
}
up before the call to postCommandLineArgumentsInitialization(&lastTime);
Or pull the line in postCommandLineArgumentsInitializtion (see
initialize.c):
if(numIpProtosToMonitor == 0)
addDefaultProtocols();
into main.c after the 1st block, above...
I haven't tested either of 'em, but both choices SHOULD work. No
preferences on my part. The other thing
postCommandLineArgumentsInitialization does is to daemonize the program.
2) How much memory do you have available... in report.c, after creating the
header, it does a malloc. If that fails... you might try a patch like this
in report.c and let me know...
activeHosts =
(short*)malloc(sizeof(short)*device[actualReportDeviceId].numHosts);
if (activeHosts == NULL) {
sendString("<P>Unable to create report due to memory limits -
sorry!</P>\n");
return;
}
3) I've emailed Luca, looks like the patch reverted in the cvs, no clue
why... this was the patch I sent, doubt the offsets have changed enough to
matter...
--- ntop-current/graph.c Fri Dec 7 17:05:06 2001
+++ ntop-new/graph.c Wed Dec 12 10:31:29 2001
@@ -923,5 +923,5 @@
out_graph(600, 300, /* width, height */
fd, /* open FILE pointer */
- GDC_AREA, /* chart type */
+ GDC_BAR, /* chart type */
60, /* num points per data set */
lbls, /* X labels array of char* */
@@ -960,5 +960,5 @@
out_graph(600, 300, /* width, height */
fd, /* open FILE pointer */
- GDC_AREA, /* chart type */
+ GDC_BAR, /* chart type */
24, /* num points per data set */
lbls, /* X labels array of char* */
@@ -998,5 +998,5 @@
out_graph(600, 300, /* width, height */
fd, /* open FILE pointer */
- GDC_AREA, /* chart type */
+ GDC_BAR, /* chart type */
30, /* num points per data set */
lbls, /* X labels array of char* */
-----Burton
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Fred
Grayson
Sent: Saturday, January 12, 2002 5:42 PM
To: [EMAIL PROTECTED]
Subject: [Ntop] Status of fixes on 2.0?
The snapshots site is back up again, thanks.
I am wondering about the status of fixes to several items that have been
identified previously.
1) Network Traffic: Data Received and Network Traffic: Data Sent pages for
TCP/IP still append to the
standard tables rather than replacing them when using a -p protocol list
command line option.
2) IP Subnet Traffic Matrix shows the heading of the table only, nothing
below it.
3) The Network Load Statistics graphs went from the previous style to the
news style and have reverted
to previous. Previous looks like interpolation between steps is being done.
The new style was purely
vertical, and therefore absolute for the period plotted. I like the new
style, but this isn't a big swinger for
me.
I'm running latest snapshot tarball on RH Linux 7.2. No problems compiling
or running, just the above.
Thanks for your time and ntop.
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listmanager.unipi.it/mailman/listinfo/ntop
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listmanager.unipi.it/mailman/listinfo/ntop