No INET6 in ramdisk, fix the tree.
authormpi <mpi@openbsd.org>
Sat, 12 Jul 2014 17:57:26 +0000 (17:57 +0000)
committermpi <mpi@openbsd.org>
Sat, 12 Jul 2014 17:57:26 +0000 (17:57 +0000)
sys/net/route.c

index 65e7162..4b0224a 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: route.c,v 1.172 2014/07/12 14:26:00 mpi Exp $ */
+/*     $OpenBSD: route.c,v 1.173 2014/07/12 17:57:26 mpi Exp $ */
 /*     $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $      */
 
 /*
@@ -1216,11 +1216,13 @@ rt_ifa_addloop(struct ifaddr *ifa)
                if (satosin(ifa->ifa_addr)->sin_addr.s_addr == INADDR_ANY)
                        return;
                break;
+#ifdef INET6
        case AF_INET6:
                if (IN6_ARE_ADDR_EQUAL(&satosin6(ifa->ifa_addr)->sin6_addr,
                    &in6addr_any))
                        return;
                break;
+#endif
        default:
                break;
        }
@@ -1252,11 +1254,13 @@ rt_ifa_delloop(struct ifaddr *ifa)
                if (satosin(ifa->ifa_addr)->sin_addr.s_addr == INADDR_ANY)
                        return;
                break;
+#ifdef INET6
        case AF_INET6:
                if (IN6_ARE_ADDR_EQUAL(&satosin6(ifa->ifa_addr)->sin6_addr,
                    &in6addr_any))
                        return;
                break;
+#endif
        default:
                break;
        }