diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-07-12 17:57:27 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-07-12 17:57:27 +0000 |
commit | 913bfe368d1bbca77590e1fa14320d551ac957d7 (patch) | |
tree | d3efb025bb8cf0ef657a7e95e105412466838234 /sys | |
parent | 95f73978f93a569e728a8b9200678c215ebee381 (diff) |
No INET6 in ramdisk, fix the tree.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/route.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/route.c b/sys/net/route.c index 65e716236a2..4b0224ab0b4 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -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; } |