diff options
author | Sebastian Benoit <benno@cvs.openbsd.org> | 2014-07-01 19:37:08 +0000 |
---|---|---|
committer | Sebastian Benoit <benno@cvs.openbsd.org> | 2014-07-01 19:37:08 +0000 |
commit | 8de4ac2826261a48c5270b9773f0f82be3a5e955 (patch) | |
tree | c650fa9cdd2cf3e2d721f73ca201351f548bf06b /sys/netinet6 | |
parent | cf2c73a56b6a71739494433901b2dfd3bc90a08c (diff) |
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
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/in6_ifattach.c | 13 |
1 files changed, 1 insertions, 12 deletions
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 $ */ /* @@ -578,17 +578,6 @@ in6_ifattach(struct ifnet *ifp) } /* - * 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 */ if ((ifp->if_flags & IFF_MULTICAST) == 0) { |