CVS Commit: network

cvs at videolan.org cvs at videolan.org
Sat Apr 21 21:33:33 CEST 2001


Update of /cvs/videolan/network/VLANserver
Modified Files:
	Makefile main.c types.c 
Added Files:
	mem.c mem.h 

Update of /cvs/videolan/network/VLANserver/snmp
Modified Files:
	callback.c snmp.c 

Log Message:
. Segfault is dead.
  One word about what it was:
    A switch has zwitch->nbports ports (defined in the config)
    If you put 24 for a 26 ports switch, you won't take care of the 2 lasts
    anywhere but when walking on the macs, you'll got macs on 25 and 26
    and we did fill zwitch->machine[25] which was not allocated.
    Doing that we were corrupting the memory in the snmplib code

. Add tools for debugging in prevision of next segfault ;-)
  set MEM_DBG=1 in Makefile to compile with.
  It activated the Memory limitation
  And it logs all calls of malloc and free even inside dynamic libs

Ready to test !

-- 
nitrox




More information about the vlcs-devel mailing list