summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-11-29 19:39:00 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-11-29 19:39:00 +0000
commit6ec1c645ce48e15709056d33e572452df1f73ac3 (patch)
tree7fd6ffa82ef7f68440e98d6593334bb56f4823ab /sys
parent616b9d5305655dff5883a67b13b936ac5d6db4ca (diff)
Let ifa_print_rb() build on INET6-free kernels. Repairs RAMDISK on a few
platforms.
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 93322f6c7c4..4414b151b3b 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.230 2010/11/17 19:43:23 henning Exp $ */
+/* $OpenBSD: if.c,v 1.231 2010/11/29 19:38:59 miod Exp $ */
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
@@ -2269,10 +2269,12 @@ ifa_print_rb(void)
printf("%s", inet_ntoa((satosin(
ifai->ifai_addr))->sin_addr));
break;
+#ifdef INET6
case AF_INET6:
printf("%s", ip6_sprintf(&(satosin6(
ifai->ifai_addr))->sin6_addr));
break;
+#endif
case AF_LINK:
printf("%s",
ether_sprintf(ifai->ifai_addr->sa_data));