Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal capture.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: Wed, 8 Sep 1999 00:41:30 -0500 (CDT)
guy         1999/09/08 00:41:27 CDT

  Modified files:
    .                    capture.c 
  Log:
  Don't include in the list of interfaces offered by the "capture" dialog
  box interfaces we can't open; this filters out loopback interfaces on
  e.g. Solaris (which you can't get at with a DLPI device, so you can't
  capture traffic on them), and also means we don't report *any*
  interfaces if you don't have permission to open any (which means you
  don't have permission to capture packets).
  
  If we don't find any interfaces, pop up a message box saying so.
  
  Free up the interface "ioctl" buffer, and close the socket we were
  using, before returning from "get_interface_list()".
  
  If "get_interface_list()" returns a null pointer (meaning it failed),
  don't pop up the "capture" dialog box.
  
  Revision  Changes    Path
  1.64      +32 -6     ethereal/capture.c