summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-08-05 21:44:26 +0000
committerRoy Marples <roy@marples.name>2009-08-05 21:44:26 +0000
commit6957b635c8f711b60dfc26fbc2e21b745dfee43b (patch)
tree643866131d8f6b8b16e8e7677cf17657fc65eeb4
parenta74873aebad463c70fbff15bb4ee6287a109fa47 (diff)
downloaddhcpcd-6957b635c8f711b60dfc26fbc2e21b745dfee43b.tar.xz
Don't check family on point to point interfaces as we monitor them.
-rw-r--r--net.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/net.c b/net.c
index 4c8be2fe..aeb89531 100644
--- a/net.c
+++ b/net.c
@@ -352,6 +352,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:
@@ -361,7 +364,8 @@ 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)