Yup - I've posted the patch already.  There is also a linkage problem with
netflowPlugin, which I'm working on... (patch below)

-----Burton

===============================BEGIN (BMS0058)
--- cvs/intop/init.c.save       Mon Apr 22 11:38:59 2002
+++ cvs/intop/init.c    Mon Apr 22 11:40:35 2002
@@ -82,9 +82,8 @@
    * disable IdleHosts and enableDBsupport threads
    */
-  myGlobals . enableThUpdate  = 1;
   myGlobals . enableIdleHosts = 0;
   myGlobals . enableDBsupport = 0;

-  initThreads (myGlobals . enableThUpdate, myGlobals . enableIdleHosts,
myGlobals . enableDBsupport);
+  initThreads ();

   /*
===============================END

===============================BEGIN (BMS0059)
--- ntop-current/globals-core.h.save    Mon Apr 22 15:55:02 2002
+++ ntop-current/globals-core.h Mon Apr 22 15:56:59 2002
@@ -170,4 +170,8 @@
 extern void cleanupPacketQueue(void);
 extern void allocateSecurityHostPkts(HostTraffic *srcHost);
+extern int handleIP(u_short port,
+             HostTraffic *srcHost, HostTraffic *dstHost,
+             u_int length,  u_short isPassiveSession,
+             int actualDeviceId);
 extern void *dequeuePacket(void* notUsed);
 extern void updateDevicePacketStats(u_int length, int actualDeviceId);
--- ntop-current/pbuf.c.save    Mon Apr 22 16:07:06 2002
+++ ntop-current/pbuf.c Mon Apr 22 16:06:42 2002
@@ -117,5 +117,5 @@
 /* ************************************ */

-static int handleIP(u_short port,
+int handleIP(u_short port,
             HostTraffic *srcHost, HostTraffic *dstHost,
             u_int length,  u_short isPassiveSession,
--- ntop-current/plugins/netflowPlugin.c.save   Mon Apr 22 15:29:14 2002
+++ ntop-current/plugins/netflowPlugin.c        Mon Apr 22 15:29:34 2002
@@ -199,9 +199,9 @@
            if((sport != 0) && (dport != 0)) {
              if(dport < sport) {
-               if(handleIP(dport, srcHostIdx, dstHostIdx, len, 0,
actualDeviceId) == -1)
-                 handleIP(sport, srcHostIdx, dstHostIdx, len, 0,
actualDeviceId);
+               if(handleIP(dport, srcHost, dstHost, len, 0, actualDeviceId)
== -1)
+                 handleIP(sport, srcHost, dstHost, len, 0, actualDeviceId);
              } else {
-               if(handleIP(sport, srcHostIdx, dstHostIdx, len, 0,
actualDeviceId) == -1)
-                 handleIP(dport, srcHostIdx, dstHostIdx, len, 0,
actualDeviceId);
+               if(handleIP(sport, srcHost, dstHost, len, 0, actualDeviceId)
== -1)
+                 handleIP(dport, srcHost, dstHost, len, 0, actualDeviceId);
              }
            }
===============================END

-----Burton


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Igor
Schein
Sent: Monday, April 22, 2002 3:32 PM
To: [EMAIL PROTECTED]
Subject: [Ntop] April 22 snapshot


> From: Burton M. Strauss III [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 22, 2002 11:10 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: RE: [Ntop] Ntop Dies
>
> Try the 22Apr2002 snapshot
(http://snapshot.ntop.org/tgz/ntop-02-04-22.tgz)
>
> There were some fixes for the 100% usage problems around the 12th, but I
> don't remember the exact dates.
>
> Also, a couple of segfaults have been fixed, out of range error messages,
> etc.
>
> Lastly, 22Apr2002 includes the backtrace patch, so it might give us
> information about where ntop is dying...

I'm getting this with Apr 22 snapshot:

gcc -DHAVE_CONFIG_H -I..  -I/usr/include/pcap -I/usr/include/openssl    -g -
O2 -pipe -c init.c
init.c: In function `intop_init':
init.c:84: structure has no member named `enableThUpdate'
init.c:88: structure has no member named `enableThUpdate'
make[2]: *** [init.o] Error 1

Thanks

Igor
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listmanager.unipi.it/mailman/listinfo/ntop

_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listmanager.unipi.it/mailman/listinfo/ntop

Reply via email to