Lines Matching refs:ifa
108 struct ifaddr *ifa;
190 ifa = (struct ifaddr *)in6ifa_ifpwithaddr(ifp, &daddr6);
191 if (ifa && (((struct in6_ifaddr *)ifa)->ia6_flags & IN6_IFF_ANYCAST))
207 ifa = (struct ifaddr *)in6ifa_ifpwithaddr(ifp, &taddr6);
210 if (!ifa) {
225 ifa = (struct ifaddr *)in6ifa_ifpforlinklocal(ifp,
227 if (ifa) {
235 if (!ifa) {
243 myaddr6 = *IFA_IN6(ifa);
244 anycast = ((struct in6_ifaddr *)ifa)->ia6_flags & IN6_IFF_ANYCAST;
245 tentative = ((struct in6_ifaddr *)ifa)->ia6_flags & IN6_IFF_TENTATIVE;
246 if (((struct in6_ifaddr *)ifa)->ia6_flags & IN6_IFF_DUPLICATED)
285 nd6_dad_ns_input(ifa);
558 struct ifaddr *ifa;
619 ifa = (struct ifaddr *)in6ifa_ifpwithaddr(ifp, &taddr6);
630 if (ifa
631 && (((struct in6_ifaddr *)ifa)->ia6_flags & IN6_IFF_TENTATIVE)) {
632 nd6_dad_na_input(ifa);
637 if (ifa) {
1007 struct ifaddr *ifa)
1012 if (dp->dad_ifa == ifa) {
1024 struct ifaddr *ifa)
1027 untimeout((void (*)(void *))nd6_dad_timer, (void *)ifa);
1054 struct ifaddr *ifa,
1057 struct in6_ifaddr *ia = (struct in6_ifaddr *)ifa;
1076 ifa->ifa_ifp ? if_name(ifa->ifa_ifp) : "???");
1087 if (!ifa->ifa_ifp)
1088 panic("nd6_dad_start: ifa->ifa_ifp == NULL");
1089 if (!(ifa->ifa_ifp->if_flags & IFF_UP))
1091 if (nd6_dad_find(ifa) != NULL) {
1101 ifa->ifa_ifp ? if_name(ifa->ifa_ifp) : "???");
1109 nd6log((LOG_DEBUG, "%s: starting DAD for %s\n", if_name(ifa->ifa_ifp),
1118 dp->dad_ifa = ifa;
1119 ifaref(ifa); /*just for safety*/
1124 nd6_dad_ns_output(dp, ifa);
1125 timeout((void (*)(void *))nd6_dad_timer, (void *)ifa,
1126 nd_ifinfo[ifa->ifa_ifp->if_index].retrans * hz / 1000);
1135 timeout((void (*)(void *))nd6_dad_timer, (void *)ifa,
1145 struct ifaddr *ifa)
1151 dp = nd6_dad_find(ifa);
1157 untimeout((void (*)(void *))nd6_dad_timer, (void *)ifa);
1164 ifafree(ifa);
1170 struct ifaddr *ifa)
1172 struct in6_ifaddr *ia = (struct in6_ifaddr *)ifa;
1180 dp = nd6_dad_find(ifa);
1189 ifa->ifa_ifp ? if_name(ifa->ifa_ifp) : "???");
1196 ifa->ifa_ifp ? if_name(ifa->ifa_ifp) : "???");
1203 if_name(ifa->ifa_ifp)));
1210 ifafree(ifa);
1219 nd6_dad_ns_output(dp, ifa);
1220 timeout((void (*)(void *))nd6_dad_timer, (void *)ifa,
1221 nd_ifinfo[ifa->ifa_ifp->if_index].retrans * hz / 1000);
1256 if_name(ifa->ifa_ifp));
1272 nd6_dad_duplicated(ifa);
1282 if_name(ifa->ifa_ifp),
1291 ifafree(ifa);
1301 struct ifaddr *ifa)
1303 struct in6_ifaddr *ia = (struct in6_ifaddr *)ifa;
1306 dp = nd6_dad_find(ifa);
1314 if_name(ifa->ifa_ifp), ip6_sprintf(&ia->ia_addr.sin6_addr),
1321 untimeout((void (*)(void *))nd6_dad_timer, (void *)ifa);
1325 if_name(ifa->ifa_ifp), ip6_sprintf(&ia->ia_addr.sin6_addr));
1327 if_name(ifa->ifa_ifp));
1334 ifafree(ifa);
1340 struct ifaddr *ifa)
1342 struct in6_ifaddr *ia = (struct in6_ifaddr *)ifa;
1343 struct ifnet *ifp = ifa->ifa_ifp;
1365 struct ifaddr *ifa)
1372 if (!ifa)
1373 panic("ifa == NULL in nd6_dad_ns_input");
1375 ia = (struct in6_ifaddr *)ifa;
1378 dp = nd6_dad_find(ifa);
1385 if_name(ifa->ifa_ifp)));
1400 nd6_dad_duplicated(ifa);
1413 struct ifaddr *ifa)
1417 if (!ifa)
1418 panic("ifa == NULL in nd6_dad_na_input");
1420 dp = nd6_dad_find(ifa);
1425 nd6_dad_duplicated(ifa);