Lines Matching refs:router

285 	/* If I'm not a router, ignore it. */
400 * IFEF_IPV6_ROUTER is set (as router) but the RA is not locally
402 * RAs to be processed on the advertising interface, as a router.
405 * both a host and a router on different interfaces, hence the
587 * be properly set until after the router advertisement
700 * router's neighbor cache, which might also affect our on-link
726 * default router list proccessing sub routines
775 nd6log2((LOG_INFO, "%s: ignoring router %s, scoped=%d, "
782 nd6log2((LOG_INFO, "%s: adding default router %s, scoped=%d, "
813 nd6log((LOG_ERR, "%s: failed to add default router "
849 * Remove the default route for a given router.
872 nd6log2((LOG_INFO, "%s: removing default router %s, scoped=%d, "
903 nd6log((LOG_ERR, "%s: failed to delete default router "
922 * remove all default routes from default router list
948 /* Nuke primary (non-scoped) default router */
1047 deldr = dr; /* The router is primary. */
1052 * Flush all the routing table entries that use the router
1075 * Also delete all the pointers to the router in each prefix lists.
1089 * If the router is the primary one, choose a new one. If Scoped
1090 * Routing is enabled, always try to pick another eligible router
1170 * for default router selection
1171 * regards router-preference field as a 2-bit signed integer
1200 * If we have more than one (probably) reachable router, prefer ones
1201 * with the highest router preference.
1204 * fashion, regardless of router preference values.
1211 * router will be set to the reachable router on that link (if any) with
1212 * the highest router preference.
1214 * the highest router preference will be installed, either as scoped or
1217 * router, i.e. static one wins over dynamic.
1222 * We assume nd_defrouter is sorted by router preference value.
1223 * Since the code below covers both with and without router preference cases,
1256 * If default router list is empty, there's nothing to be done.
1274 * Search for a (probably) reachable router from the list.
1279 * selected_dr = candidate for primary router
1280 * installed_dr = currently installed primary router
1337 * If the router hasn't been installed and it is
1345 nd6log2((LOG_INFO, "%s: possible router %s, "
1358 /* Record the currently installed primary/non-scoped router */
1366 "%s default router is installed\n",
1400 /* See if there is already a default router for the link */
1426 nd6log2((LOG_INFO, "%s: possible router %s, "
1436 nd6log2((LOG_INFO, "%s: considering primary default router %s, "
1447 * Otherwise, if we have an installed router, check if the selected
1448 * (reachable) router should really be preferred to the installed one.
1449 * We only prefer the new router when the old one is not reachable
1487 * If the installed primary router is not on the current
1501 * If the selected router is currently scoped, make sure
1509 * If the installed router is no longe reachable, remove
1510 * it and install the selected router instead.
1525 * the selected router is different than the installed one,
1526 * remove the installed router and install the selected one.
1535 nd6log2((LOG_INFO, "%s: no update, selected router %s, "
1536 "installed router %s\n", if_name(dr->ifp),
1540 nd6log2((LOG_INFO, "%s: no update, router is %s\n",
1561 * router needs to be installed as primary/non-scoped entry. If
1566 nd6log2((LOG_INFO, "%s: considering primary default router %s, "
1743 * put the primary/non-scoped router at the top of the
1778 * preferred router may be changed, so relocate
1779 * this router.
1854 * Insert the new router in the Default Router List;
1856 * of router-preferece. When Scoped Routing is disabled, routers
1859 * preference is the primary default router, when the interface used
1941 if (search->router == dr)
1960 new->router = dr;
2906 * detect if a given prefix has a (probably) reachable advertising router.
2925 ifp = pfxrtr->router->ifp;
2926 rtaddr = pfxrtr->router->rtaddr;
2958 * Check if each prefix in the prefix list has at least one available router
2959 * that advertised the prefix (a router is "available" if its neighbor cache
2964 * that has an available router.
2965 * But, if there is no prefix that has an available router, we still regards
2968 * is no router around us.
2993 * router.
3027 * If we have no such prefix, check whether we still have a router
3050 * There is at least one prefix that has a reachable router,
3051 * or at least a router which probably does not advertise
3053 * to a new link where we have a router that does not provide
3056 * router, and attach other prefixes.
3094 /* there is no prefix that has a reachable router */
4183 * it shouldn't be called when acting as a router.