Update of /export/home/ntop/ntop
In directory unknown:/tmp/cvs-serv6144

Modified Files:
        configure configure.in fcReport.c fcUtils.c globals-core.c 
        globals-core.h globals-defines.h globals-structtypes.h hash.c 
        leaks.c main.c ntop.c ntop.h pbuf.c sessions.c util.c 
        webInterface.c 
Log Message:
This patch...

(1) Sets the 'unmagic' number as a canary (warning flag) in the Host and Session
free logic.  This will show us if ntop is referencing hosts/sessions on the free
list between their being put on the list and actually being freed.

(2) Makes ntop do rational things when finding a bad magic number, instead of 
assuming that the host/session entry is valid anyway.  This set of changes 
should
protect ntop against crashing, although it doesn't fix the underlying problem.

(3) The existing memory debug code has been cleaned up and consolidated into one
switch, MEMORY_DEBUG, with various options - instead of multiple overlapping and
conflicting options.  See the note in globals-defines.h for the settings.  
There is
also a ./configure switch, --with-memorydebug=n to select among the options.
     Note that NONE of these options is 'fit' for normal usage.

-----Burton (ref 624)



_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to