From cacb077d44ac0181730e812949af020568cae2d4 Mon Sep 17 00:00:00 2001 From: Ryan Thomas McBride Date: Tue, 13 Jan 2004 07:23:44 +0000 Subject: Add and remove IPv6 routes so when we're MASTER, we can connect to the common address. --- sys/netinet/ip_carp.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c index ca0a5eb2f1e..70bd39c1a14 100644 --- a/sys/netinet/ip_carp.c +++ b/sys/netinet/ip_carp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_carp.c,v 1.32 2003/12/10 07:22:43 itojun Exp $ */ +/* $OpenBSD: ip_carp.c,v 1.33 2004/01/13 07:23:43 mcbride Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff. All rights reserved. @@ -263,6 +263,12 @@ 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); + if (ifa->ifa_addr->sa_family == AF_INET6) { + if (cmd == RTM_ADD) + in6_ifaddloop(ifa); + else + in6_ifremloop(ifa); + } } splx(s); } -- cgit v1.2.3