Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal reassemble.c

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

From: Guy Harris <guy@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 17 Apr 2002 03:57:08 -0500 (CDT)
guy         2002/04/17 03:57:08 CDT

  Modified files:
    .                    reassemble.c 
  Log:
  Don't bother with "reassembled_key" structures - just use the
  "frame_data" structure for the frame as the key structure, and use the
  frame number in that field as the key.  (We could be even cheesier and
  use the frame number as the key, with casts.)
  
  When we move an entry from the hash table of reassemblies to the hash
  table of reassembled packets, free the key structure for the first hash
  table.  (This doesn't plug a leak, as they get freed when you
  reinitialize the data structures, but it does reduce the memory needed
  for them to the amount needed for in-progress reassemblies rather than
  the amount needed for all reassemblies.)
  
  Revision  Changes    Path
  1.13      +33 -52    ethereal/reassemble.c