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

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

From: guy@xxxxxxxxxxxx (Guy Harris)
Date: Thu, 10 Jun 2004 03:01:52 -0500 (CDT)
guy         2004/06/10 03:01:52 CDT

  Modified files:
    .                    tethereal.c 
  Log:
  Move the ring-buffer tests from "process_packet()" to
  "capture_pcap_cb()"; they're only done in live captures, and that
  arranges that "process_packet()" gets called with the correct
  wtap_dumper for the current file even if we switch to a new file.
  
  Move the packet-count reporting out of "write_packet()" to
  "capture_pcap_cb()" as well, as that's also only done in live captures.
  That pretty much guts "write_packet()", so just move what's left up to
  "process_packet()".
  
  Revision  Changes    Path
  1.243     +48 -58    ethereal/tethereal.c