summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}