Module Name: src
Committed By: is
Date: Sat Jul 23 12:19:08 UTC 2016
Modified Files:
src/sys/netinet: ip_carp.c
Log Message:
Workaround for PR 47013 by bouyer@. Only works for mixed IPv4/IPv6
environemnts, not for pure-IPv6 yet. A real fix is still needed.
To generate a diff of this commit:
cvs rdiff -u -r1.74 -r1.75 src/sys/netinet/ip_carp.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/netinet/ip_carp.c
diff -u src/sys/netinet/ip_carp.c:1.74 src/sys/netinet/ip_carp.c:1.75
--- src/sys/netinet/ip_carp.c:1.74 Thu Jul 7 09:32:02 2016
+++ src/sys/netinet/ip_carp.c Sat Jul 23 12:19:07 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_carp.c,v 1.74 2016/07/07 09:32:02 ozaki-r Exp $ */
+/* $NetBSD: ip_carp.c,v 1.75 2016/07/23 12:19:07 is Exp $ */
/* $OpenBSD: ip_carp.c,v 1.113 2005/11/04 08:11:54 mcbride Exp $ */
/*
@@ -33,7 +33,7 @@
#endif
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_carp.c,v 1.74 2016/07/07 09:32:02 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_carp.c,v 1.75 2016/07/23 12:19:07 is Exp $");
/*
* TODO:
@@ -1086,7 +1086,7 @@ carp_send_ad(void *v)
}
}
#endif /* INET */
-#ifdef INET6
+#ifdef INET6_notyet
if (sc->sc_naddrs6) {
struct ip6_hdr *ip6;
@@ -1494,7 +1494,7 @@ carp_setrun(struct carp_softc *sc, sa_fa
callout_schedule(&sc->sc_md_tmo, tvtohz(&tv));
break;
#endif /* INET */
-#ifdef INET6
+#ifdef INET6_notyet
case AF_INET6:
callout_schedule(&sc->sc_md6_tmo, tvtohz(&tv));
break;
@@ -1502,8 +1502,10 @@ carp_setrun(struct carp_softc *sc, sa_fa
default:
if (sc->sc_naddrs)
callout_schedule(&sc->sc_md_tmo, tvtohz(&tv));
+#ifdef INET6_notyet
if (sc->sc_naddrs6)
callout_schedule(&sc->sc_md6_tmo, tvtohz(&tv));
+#endif /* INET6 */
break;
}
break;