From: Roy Marples Date: Fri, 17 Apr 2009 19:15:42 +0000 (+0000) Subject: NetBSD-5.0RC4 has a kernel error causing an AF_LINK to be reported twice. A patch... X-Git-Tag: v5.0.0~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=623330decced8f8eeb1868a57ae687d40c39dad1;p=thirdparty%2Fdhcpcd.git NetBSD-5.0RC4 has a kernel error causing an AF_LINK to be reported twice. A patch has been submitted, hopefully included in NetBSD-5.0 --- diff --git a/net.c b/net.c index 716911eb..e5b5f770 100644 --- a/net.c +++ b/net.c @@ -275,14 +275,6 @@ discover_interfaces(int argc, char * const *argv) #ifdef AF_LINK if (ifa->ifa_addr->sa_family != AF_LINK) continue; -#ifdef __NetBSD__ - /* FIXME: Why do I get 2 AF_LINK addresses per interface? */ - for (ifp = ifs; ifp; ifp = ifp->next) - if (strcmp(ifp->name, ifa->ifa_name) == 0) - break; - if (ifp) - continue; -#endif #elif AF_PACKET if (ifa->ifa_addr->sa_family != AF_PACKET) continue;