summaryrefslogtreecommitdiffstats
path: root/net.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2010-01-13 23:54:45 +0000
committerRoy Marples <roy@marples.name>2010-01-13 23:54:45 +0000
commitcbd287769429fc2ffad3c2a2f1c72ddf37b545af (patch)
tree0e9cb74c978a237cc3c00d0707eb87cffd270da5 /net.c
parent6d20473a95174d5beb9de2039bffa9c4d4f5a041 (diff)
downloaddhcpcd-cbd287769429fc2ffad3c2a2f1c72ddf37b545af.tar.xz
Don't warn about unsupported family for infiniband.
Thanks to Aurelien.
Diffstat (limited to 'net.c')
-rw-r--r--net.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/net.c b/net.c
index 626733b8..b55a7108 100644
--- a/net.c
+++ b/net.c
@@ -439,9 +439,15 @@ discover_interfaces(int argc, char * const *argv)
free_interface(ifp);
continue;
}
- if (ifp->family != ARPHRD_IEEE1394)
+ switch (ifp->family) {
+ case ARPHRD_IEEE1394: /* FALLTHROUGH */
+ case ARPHRD_INFINIBAND:
+ /* We don't warn for supported families */
+ break;
+ default:
syslog(LOG_WARNING,
"%s: unknown hardware family", p);
+ }
}
if (ifl)
ifl->next = ifp;