]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
- Exclude loopback and point-to-point interfaces, rather than testing
authorTed Lemon <source@isc.org>
Fri, 23 Apr 1999 15:23:08 +0000 (15:23 +0000)
committerTed Lemon <source@isc.org>
Fri, 23 Apr 1999 15:23:08 +0000 (15:23 +0000)
  for broadcast flag.

common/discover.c

index af3aae3eba7bf0a54aedbc6548eb07aa239cce60..3529cc81aafe4fe7d4c82473cfa2caff6d2450ed 100644 (file)
@@ -22,7 +22,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: discover.c,v 1.8 1999/03/26 19:19:44 mellon Exp $ Copyright (c) 1995, 1996, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: discover.c,v 1.9 1999/04/23 15:23:08 mellon Exp $ Copyright (c) 1995, 1996, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -121,7 +121,8 @@ void discover_interfaces (state)
                /* Skip loopback, point-to-point and down interfaces,
                   except don't skip down interfaces if we're trying to
                   get a list of configurable interfaces. */
-               if ((!(ifr.ifr_flags & IFF_BROADCAST) && !tmp) ||
+               if (((ifr.ifr_flags & IFF_LOOPBACK ||
+                     ifr.ifr_flags & IFF_POINTOPOINT) && !tmp) ||
                    (!(ifr.ifr_flags & IFF_UP) &&
                     state != DISCOVER_UNCONFIGURED))
                        continue;