From 8de4ac2826261a48c5270b9773f0f82be3a5e955 Mon Sep 17 00:00:00 2001 From: Sebastian Benoit Date: Tue, 1 Jul 2014 19:37:08 +0000 Subject: When a carp interface is created with IFXF_NOINET6 flag, no link-local address will be created when the vhid (and MAC) is set. Depending on the order of the configuration the interface can end up with a ipv6 address, but no v6 link-local and no working neigbor discovery. Removing this case statement will result in the link-local address being configured by "ifconfig up" if the inet6 address was configured before. If you are using inet6 on carp, put an "up" at the end of your hostname.if. I will work on a better solution at g2k14. ok henning, mpi --- sys/netinet6/in6_ifattach.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'sys/netinet6') diff --git a/sys/netinet6/in6_ifattach.c b/sys/netinet6/in6_ifattach.c index 37059e1c21c..93620c48377 100644 --- a/sys/netinet6/in6_ifattach.c +++ b/sys/netinet6/in6_ifattach.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in6_ifattach.c,v 1.71 2014/06/26 13:08:25 mpi Exp $ */ +/* $OpenBSD: in6_ifattach.c,v 1.72 2014/07/01 19:37:07 benno Exp $ */ /* $KAME: in6_ifattach.c,v 1.124 2001/07/18 08:32:51 jinmei Exp $ */ /* @@ -577,17 +577,6 @@ in6_ifattach(struct ifnet *ifp) return; } - /* - * quirks based on interface type - */ - switch (ifp->if_type) { - /* we attach a link-local address when a vhid is assigned */ - case IFT_CARP: - return; - default: - break; - } - /* * usually, we require multicast capability to the interface */ -- cgit v1.2.3