Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal/epan epan.c epan.h packet.c packet.h

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

From: "Gilbert Ramirez Jr." <gram@xxxxxxxxxxxx>
Date: Fri, 6 Oct 2000 05:11:36 -0500 (CDT)
gram        2000/10/06 05:11:27 CDT

  Modified files:
    epan                 epan.c epan.h packet.c packet.h 
  Log:
  Implement epan_dissect_new() and epan_dissect_free(). These are the
  "top-level" dissectors that libepan-users call, instead of dissect_packet().
  The epan_dissect_t holds the tvbuff after dissection so that the tvbuff's
  memory is not cleared until after the proto_tree is freed. (I might stuff
  the proto_tree into the epan_dissect_t, too).
  
  What remains of dissect_packet() in packet.c handles the tvbuff initialiation.
  The real meat of dissect_packet() is now in dissect_frame(), in packet-frame.c
  This means that "packet.c" is no longer a dissector, os it is no longer
  passed to make-reg-dotc.
  
  Once dissect_fddi() gets two wrapper functions (dissect_fddi_swapped()
  and dissect_fddi_nonswapped()), the a dissector handoff routine could
  be used instead of the switch statement in dissect_frame(). I'd register
  a field like "wtap.encap"
  
  Revision  Changes    Path
  1.3       +35 -0     ethereal/epan/epan.c
  1.3       +15 -6     ethereal/epan/epan.h
  1.2       +30 -186   ethereal/epan/packet.c
  1.2       +7 -6      ethereal/epan/packet.h