]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Don't check family on point to point interfaces as we monitor them.
authorRoy Marples <roy@marples.name>
Wed, 5 Aug 2009 21:39:42 +0000 (21:39 +0000)
committerRoy Marples <roy@marples.name>
Wed, 5 Aug 2009 21:39:42 +0000 (21:39 +0000)
net.c

diff --git a/net.c b/net.c
index 3b30cf5efd5e89bf40bb0e6618254cc5bf13cdb0..e52a3f5d22d66f63b2f6fdb605e6c8a82be075be 100644 (file)
--- a/net.c
+++ b/net.c
@@ -360,6 +360,9 @@ discover_interfaces(int argc, char * const *argv)
                                memcpy(ifp->hwaddr, sll->sll_addr, ifp->hwlen);
 #endif
 
+               }
+
+               if (!(ifp->flags & IFF_POINTOPOINT)) {
                        switch(ifp->family) {
                        case ARPHRD_ETHER: /* FALLTHROUGH */
                        case ARPHRD_IEEE1394:
@@ -369,10 +372,10 @@ discover_interfaces(int argc, char * const *argv)
                                        free_interface(ifp);
                                        continue;
                                }
-                               syslog(LOG_WARNING, "%s: unknown hardware family", p);
+                               syslog(LOG_WARNING,
+                                   "%s: unknown hardware family", p);
                        }
                }
-
                if (ifl)
                        ifl->next = ifp; 
                else