changeset 1389:be4facdc8e5f draft

Don't check family on point to point interfaces as we monitor them.
author Roy Marples <roy@marples.name>
date Wed, 05 Aug 2009 21:39:42 +0000
parents 30fc2f427245
children eacf3229a9c8
files net.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/net.c	Wed Aug 05 21:16:09 2009 +0000
+++ b/net.c	Wed Aug 05 21:39:42 2009 +0000
@@ -360,6 +360,9 @@
 				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 @@
 					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