aboutsummaryrefslogtreecommitdiffstats
path: root/fad-win32.c
diff options
context:
space:
mode:
authorguy <guy>2002-08-08 09:15:57 +0000
committerguy <guy>2002-08-08 09:15:57 +0000
commit9c622ec1bf95e3d4d87c99fb81bfd73117bc2995 (patch)
treeb01304adf4c7104356b90fa1c182d403c8cc4fe1 /fad-win32.c
parent32bfe4054737240b427abb11b66a65a8422693fd (diff)
Give it an SCCS and RCS ID.
Put in a comment noting why we don't return an error if "PacketGetNetInfoEx()" returns an error.
Diffstat (limited to 'fad-win32.c')
-rw-r--r--fad-win32.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/fad-win32.c b/fad-win32.c
index 6959fb2..3dd18c1 100644
--- a/fad-win32.c
+++ b/fad-win32.c
@@ -19,6 +19,11 @@
* 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);
}
/*