summaryrefslogtreecommitdiff
path: root/sys/net/route.c
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2024-02-07 23:52:21 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2024-02-07 23:52:21 +0000
commit4e7e88fca9530367c6e8b1aecbd71360cca22c98 (patch)
tree5f8de66f341d01d006b5dd6d1a84fb570e0bf049 /sys/net/route.c
parentaf84b5e283a349e2b566baeed4bbdd002816897e (diff)
Add missing #ifdef INET6 to fix ramdisk build.
Diffstat (limited to 'sys/net/route.c')
-rw-r--r--sys/net/route.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/route.c b/sys/net/route.c
index 5a6f7aad6d8..ae8867da407 100644
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.429 2024/02/07 23:40:40 bluhm Exp $ */
+/* $OpenBSD: route.c,v 1.430 2024/02/07 23:52:20 bluhm Exp $ */
/* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */
/*
@@ -230,6 +230,7 @@ route_cache(struct route *ro, struct in_addr addr, u_int rtableid)
satosin(&ro->ro_dst)->sin_addr = addr;
}
+#ifdef INET6
void
route6_cache(struct route_in6 *ro, const struct in6_addr *addr,
u_int rtableid)
@@ -259,6 +260,7 @@ route6_cache(struct route_in6 *ro, const struct in6_addr *addr,
ro->ro_dst.sin6_len = sizeof(struct sockaddr_in6);
ro->ro_dst.sin6_addr = *addr;
}
+#endif
/*
* Returns 1 if the (cached) ``rt'' entry is still valid, 0 otherwise.