summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-04-17 19:15:42 +0000
committerRoy Marples <roy@marples.name>2009-04-17 19:15:42 +0000
commit623330decced8f8eeb1868a57ae687d40c39dad1 (patch)
tree3a71b097041fea9ef043cb34caf708758c8bf7f0
parent47681a7058d5f9a4235aa42fd509d2c6cd196fb6 (diff)
downloaddhcpcd-623330decced8f8eeb1868a57ae687d40c39dad1.tar.xz
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
-rw-r--r--net.c8
1 files changed, 0 insertions, 8 deletions
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;