summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2010-11-29 19:38:59 +0000
committermiod <miod@openbsd.org>2010-11-29 19:38:59 +0000
commit2741906442e1e193d5e4dc1d95bb4190e4eb86d5 (patch)
tree364fb23963200646ec5568b46445531743c24981
parentcorrectly load comment for encrypted rsa1 keys; (diff)
downloadwireguard-openbsd-2741906442e1e193d5e4dc1d95bb4190e4eb86d5.tar.xz
wireguard-openbsd-2741906442e1e193d5e4dc1d95bb4190e4eb86d5.zip
Let ifa_print_rb() build on INET6-free kernels. Repairs RAMDISK on a few
platforms.
-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));