Lines Matching refs:ifa
532 struct ifaddr *ifa = NULL;
547 if ((ifa = ifaof_ifpforaddr((struct sockaddr *)&def, ifp)) == NULL) {
556 flags = ifa->ifa_flags;
557 error = rtrequest_locked(RTM_ADD, (struct sockaddr *)&def, ifa->ifa_addr,
572 in6_post_msg(ifp, KEV_INET6_DEFROUTER, (struct in6_ifaddr *)ifa);
575 ifafree(ifa);
929 struct ifaddr *ifa, *ifa_next;
941 for (ifa = ifp->if_addrlist.tqh_first; ifa; ifa = ifa_next) {
942 ifa_next = ifa->ifa_list.tqe_next;
943 if (ifa->ifa_addr->sa_family != AF_INET6)
945 ia = (struct in6_ifaddr *)ifa;
948 in6_purgeaddr(ifa, 1);
1087 struct ifaddr *ifa;
1217 TAILQ_FOREACH(ifa, &ifp->if_addrlist, ifa_list)
1223 if (ifa->ifa_addr->sa_family != AF_INET6)
1226 ifa6 = (struct in6_ifaddr *)ifa;
1421 struct in6_ifaddr *ifa;
1522 for (ifa = in6_ifaddrs; ifa; ifa = ifa->ia_next) {
1523 if ((ifa->ia6_flags & IN6_IFF_AUTOCONF) == 0)
1526 if (ifa->ia6_ndpr == NULL) {
1535 if (find_pfxlist_reachable_router(ifa->ia6_ndpr))
1538 if (ifa) {
1539 for (ifa = in6_ifaddrs; ifa; ifa = ifa->ia_next) {
1540 if ((ifa->ia6_flags & IN6_IFF_AUTOCONF) == 0)
1543 if (ifa->ia6_ndpr == NULL) /* XXX: see above. */
1546 if (find_pfxlist_reachable_router(ifa->ia6_ndpr))
1547 ifa->ia6_flags &= ~IN6_IFF_DETACHED;
1549 ifa->ia6_flags |= IN6_IFF_DETACHED;
1553 for (ifa = in6_ifaddrs; ifa; ifa = ifa->ia_next) {
1554 if ((ifa->ia6_flags & IN6_IFF_AUTOCONF) == 0)
1557 ifa->ia6_flags &= ~IN6_IFF_DETACHED;
1568 struct ifaddr *ifa;
1618 ifa = (struct ifaddr *)in6ifa_ifpforlinklocal(ifp,
1621 if (ifa == NULL) {
1624 TAILQ_FOREACH(ifa, &ifp->if_addrlist, ifa_list)
1626 if (ifa->ifa_addr->sa_family == AF_INET6)
1632 if (ifa == NULL) {
1649 * ifa->ifa_rtrequest = nd6_rtrequest;
1658 rtflags = ifa->ifa_flags | RTF_CLONING | RTF_UP;
1669 ifa->ifa_addr, (struct sockaddr *)&mask6,
1682 ip6_sprintf(&((struct sockaddr_in6 *)ifa->ifa_addr)->sin6_addr),
1794 struct ifaddr *ifa;
1827 ifa = (struct ifaddr *)in6ifa_ifpforlinklocal(ifp, 0);/* 0 is OK? */
1828 if (ifa)
1829 ib = (struct in6_ifaddr *)ifa;
1835 if (((struct in6_ifaddr *)ifa)->ia6_flags & IN6_IFF_NOTREADY) {
2023 "in6_tmpifadd: ifa update succeeded, but we got "