summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2004-01-15 15:47:06 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2004-01-15 15:47:06 +0000
commit0f79eb038c7a6a6ca45fbb11c50a5ee729ad89a2 (patch)
tree7c5561ab7f69e07bc1c0edbd4914a5cc6eabf1b3 /sys
parent33c623faacdf89c3e9faa52d11b69bb44b7e4a6a (diff)
missing #ifdef INET6, ok henning@
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_carp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c
index 70bd39c1a14..611b305677b 100644
--- a/sys/netinet/ip_carp.c
+++ b/sys/netinet/ip_carp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_carp.c,v 1.33 2004/01/13 07:23:43 mcbride Exp $ */
+/* $OpenBSD: ip_carp.c,v 1.34 2004/01/15 15:47:05 dhartmei Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff. All rights reserved.
@@ -263,12 +263,14 @@ carp_setroute(struct carp_softc *sc, int cmd)
TAILQ_FOREACH(ifa, &sc->sc_ac.ac_if.if_addrlist, ifa_list) {
if (ifa->ifa_addr->sa_family == AF_INET)
rtinit(ifa, cmd, RTF_UP | RTF_HOST);
+#ifdef INET6
if (ifa->ifa_addr->sa_family == AF_INET6) {
if (cmd == RTM_ADD)
in6_ifaddloop(ifa);
else
in6_ifremloop(ifa);
}
+#endif /* INET6 */
}
splx(s);
}