]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
NetBSD-5.0RC4 has a kernel error causing an AF_LINK to be reported twice. A patch...
authorRoy Marples <roy@marples.name>
Fri, 17 Apr 2009 19:15:42 +0000 (19:15 +0000)
committerRoy Marples <roy@marples.name>
Fri, 17 Apr 2009 19:15:42 +0000 (19:15 +0000)
net.c

diff --git a/net.c b/net.c
index 716911eb00515527c00532f57ab227a24af3619e..e5b5f770ee4e9c021cddbf918daeda72088a4d5e 100644 (file)
--- 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;