Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal/wiretap libpcap.c wtap.h file.c

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

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Fri, 10 Dec 1999 18:40:45 -0600 (CST)
guy         1999/12/10 18:40:43 CST

  Modified files:
    wiretap              libpcap.c wtap.h file.c 
  Log:
  Provide different file types for "modified" and Red Hat 6.1 "libpcap"
  files (the former have a different per-packet header, and a different
  magic number, from the standard "libpcap"; the latter have the same
  per-packet header as "modified" "libpcap" files, but the same magic
  number as standard "libpcap" files, sigh).
  
  Support writing "libpcap" captures in all three formats (so that, for
  example, people running Ethereal on RH 6.1 can write out captures that
  the "tcpdump" that comes with RH 6.1 can read, although that's not the
  default format we save in - there's no way to tell whether you're
  running on RH 6.1, as far as I know; "uname()" just tells you, on Linux
  systems, that the kernel is Linux 2.x, and what "x" is, it doesn't say
  what the *rest* of the system is).
  
  Fix the table in "file.c" to use Olivier's code for writing Sniffer
  files.
  
  Revision  Changes    Path
  1.27      +71 -12    ethereal/wiretap/libpcap.c
  1.56      +19 -16    ethereal/wiretap/wtap.h
  1.39      +8 -4      ethereal/wiretap/file.c