Deleted Added
full compact
21c21
< __FBSDID("$FreeBSD: head/sys/net/if_lagg.c 251859 2013-06-17 19:31:03Z delphij $");
---
> __FBSDID("$FreeBSD: head/sys/net/if_lagg.c 252511 2013-07-02 16:58:15Z hrs $");
65a66,67
> #include <netinet6/in6_var.h>
> #include <netinet6/in6_ifattach.h>
545a548,575
> #ifdef INET6
> /*
> * The member interface should not have inet6 address because
> * two interfaces with a valid link-local scope zone must not be
> * merged in any form. This restriction is needed to
> * prevent violation of link-local scope zone. Attempts to
> * add a member interface which has inet6 addresses triggers
> * removal of all inet6 addresses on the member interface.
> */
> SLIST_FOREACH(lp, &sc->sc_ports, lp_entries) {
> if (in6ifa_llaonifp(lp->lp_ifp)) {
> in6_ifdetach(lp->lp_ifp);
> if_printf(sc->sc_ifp,
> "IPv6 addresses on %s have been removed "
> "before adding it as a member to prevent "
> "IPv6 address scope violation.\n",
> lp->lp_ifp->if_xname);
> }
> }
> if (in6ifa_llaonifp(ifp)) {
> in6_ifdetach(ifp);
> if_printf(sc->sc_ifp,
> "IPv6 addresses on %s have been removed "
> "before adding it as a member to prevent "
> "IPv6 address scope violation.\n",
> ifp->if_xname);
> }
> #endif