Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal capture.c configure.in util.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: Sat, 16 Sep 2000 22:20:13 -0500 (CDT)
guy         2000/09/16 22:20:09 CDT

  Modified files:
    .                    capture.c configure.in util.c 
  Log:
  libpcap unconditionally includes <net/if.h> on UNIX systems, as that is,
  as far as I know, the only way to get IFF_UP, IFF_LOOPBACK, "struct
  ifreq", and "struct ifconf" defined, and those are required in order to
  get, via SIOCGIFCONF, the interface list, and to exclude interfaces that
  aren't up and handle loopback interfaces differently from other
  interfaces.
  
  If we're on UNIX and have libpcap, we should do the same; that way, if
  the system doesn't have <net/if.h> installed, the compile will fail with
  an "I can't find <net/if.h>" error, rather than the configure indicating
  that <net/if.h> can't be found, causing "util.c" not to include it,
  causing it to fail with complaints about IFF_UP, IFF_LOOPBACK, and
  various structures not being defined - the former tells you the root
  cause, the latter doesn't.
  
  Revision  Changes    Path
  1.126     +1 -5      ethereal/capture.c
  1.102     +2 -2      ethereal/configure.in
  1.45      +2 -2      ethereal/util.c