Ethereal-cvs: [Ethereal-cvs] rev 14984: /trunk/epan/: Makefile.common emem.c emem.h epan.c to_

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

Date: Fri, 22 Jul 2005 07:46:59 GMT
User: sahlberg
Date: 2005/07/22 02:46 AM

Log:
 EMEM : a simple and FAST api to allocate memory that will be automatically freed() when the next packet is dissected.
 
 This offesr memory allocation with a packet  scope making memory leaks less likely and memory management faster.
 
 
 Add initialization calls for both tethereal and ethereal.
 
 Convert the ip_to_str() function to use this and avoid doing the silly rotating buffers thing it previously did.
 
 
 We also need an equivalent set of functions for allocation with capture file scope (free when next capture is loaded) but i dont know where to put the free_all call.

Directory: /trunk/epan/
  Changes    Path               Action
  +2 -0      Makefile.common    Modified
  +140 -0    emem.c             Added
  +49 -0     emem.h             Added
  +4 -0      epan.c             Modified
  +5 -11     to_str.c           Modified

Directory: /trunk/gtk/
  Changes    Path          Action
  +3 -0      main.c        Modified

Directory: /trunk/
  Changes    Path           Action
  +4 -1      tethereal.c    Modified



http://anonsvn.ethereal.com/viewcvs/viewcvs.py?rev=14984&view=rev