]> The Tcpdump Group git mirrors - libpcap/commitdiff
Give it an SCCS and RCS ID.
authorguy <guy>
Thu, 8 Aug 2002 09:15:57 +0000 (09:15 +0000)
committerguy <guy>
Thu, 8 Aug 2002 09:15:57 +0000 (09:15 +0000)
Put in a comment noting why we don't return an error if
"PacketGetNetInfoEx()" returns an error.

fad-win32.c

index 6959fb239ce50295f2273d7b14fc2b9738bbc807..3dd18c14f45322279a80e454507fbbf6a60d7c8b 100644 (file)
  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  */
 
+#ifndef lint
+static const char rcsid[] =
+    "@(#) $Header: /tcpdump/master/libpcap/fad-win32.c,v 1.4 2002-08-08 09:15:57 guy Exp $ (LBL)";
+#endif
+
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -162,10 +167,15 @@ pcap_add_if_win32(pcap_if_t **devlist, char *name, const char *desc,
         */
        if (!PacketGetNetInfoEx((void *)name, if_addrs, &if_addr_size)) {
                /*
-                * Failure. Return A succesful code, but don't add any address to the list
+                * Failure.
+                *
+                * We don't return an error, because this can happen with
+                * NdisWan interfaces, and we want to supply them even
+                * if we can't supply their addresses.
+                *
+                * We return an entry with an empty address list.
                 */
-
-               return 0;
+               return (0);
        }
 
        /*