Lines Matching defs:dr
413 struct nd_defrouter *dr;
566 dr = TAILQ_FIRST(&nd_defrouter);
567 while (dr) {
568 if (dr->expire && dr->expire < timenow.tv_sec) {
570 t = TAILQ_NEXT(dr, dr_entry);
571 defrtrlist_del(dr, 1);
572 dr = t;
574 dr = TAILQ_NEXT(dr, dr_entry);
767 struct nd_defrouter *dr, *ndr, drany;
772 if ((dr = TAILQ_FIRST(&nd_defrouter)) != NULL) {
777 for (dr = TAILQ_NEXT(dr, dr_entry); dr; dr = ndr) {
778 ndr = TAILQ_NEXT(dr, dr_entry);
779 if (dr->ifp == ifp)
780 defrtrlist_del(dr, 1);
782 dr = TAILQ_FIRST(&nd_defrouter);
783 if (dr->ifp == ifp)
784 defrtrlist_del(dr, 1);
1024 struct nd_defrouter *dr;
1033 dr = defrouter_lookup(&((struct sockaddr_in6 *)rt_key(rt))->sin6_addr,
1036 if ((ln && ln->ln_router) || dr) {
1045 if (dr) {
1069 if (dr == TAILQ_FIRST(&nd_defrouter)) {
1077 TAILQ_REMOVE(&nd_defrouter, dr, dr_entry);
1078 TAILQ_INSERT_TAIL(&nd_defrouter, dr, dr_entry);
1434 struct nd_defrouter *dr, any;
1446 dr = TAILQ_FIRST(&nd_defrouter);
1447 while (dr && i < DRLSTSIZ) {
1448 drl->defrouter[i].rtaddr = dr->rtaddr;
1458 drl->defrouter[i].flags = dr->flags;
1459 drl->defrouter[i].rtlifetime = dr->rtlifetime;
1460 drl->defrouter[i].expire = dr->expire;
1461 drl->defrouter[i].if_index = dr->ifp->if_index;
1463 dr = TAILQ_NEXT(dr, dr_entry);
1620 if ((dr = TAILQ_FIRST(&nd_defrouter)) != NULL) {
1625 for (dr = TAILQ_NEXT(dr, dr_entry); dr; dr = next) {
1626 next = TAILQ_NEXT(dr, dr_entry);
1627 defrtrlist_del(dr, 1);
2329 struct nd_defrouter *dr;
2336 for (dr = TAILQ_FIRST(&nd_defrouter);
2337 dr;
2338 dr = TAILQ_NEXT(dr, dr_entry)) {
2346 if (in6_recoverscope(&d->rtaddr, &dr->rtaddr,
2347 dr->ifp) != 0)
2351 ip6_sprintf(&dr->rtaddr));
2352 d->flags = dr->flags;
2353 d->rtlifetime = dr->rtlifetime;
2354 d->expire = dr->expire;
2355 d->if_index = dr->ifp->if_index;