Lines Matching refs:router

284 	/* If I'm not a router, ignore it. */
398 * IFEF_IPV6_ROUTER is set (as router) but the RA is not locally
400 * RAs to be processed on the advertising interface, as a router.
403 * both a host and a router on different interfaces, hence the
589 * be properly set until after the router advertisement
698 * router's neighbor cache, which might also affect our on-link
726 * default router list proccessing sub routines
771 nd6log2((LOG_INFO, "%s: ignoring router %s, scoped=%d, "
778 nd6log2((LOG_INFO, "%s: adding default router %s, scoped=%d, "
807 nd6log((LOG_ERR, "%s: failed to add default router "
839 * Remove the default route for a given router.
859 nd6log2((LOG_INFO, "%s: removing default router %s, scoped=%d, "
889 nd6log((LOG_ERR, "%s: failed to delete default router "
905 * remove all default routes from default router list
933 /* Nuke primary (non-scoped) default router */
1033 * Flush all the routing table entries that use the router
1046 deldr = dr; /* The router is primary. */
1066 * Also delete all the pointers to the router in each prefix lists.
1080 * If the router is the primary one, choose a new one. If Scoped
1081 * Routing is enabled, always try to pick another eligible router
1154 * for default router selection
1155 * regards router-preference field as a 2-bit signed integer
1184 * If we have more than one (probably) reachable router, prefer ones
1185 * with the highest router preference.
1188 * fashion, regardless of router preference values.
1195 * router will be set to the reachable router on that link (if any) with
1196 * the highest router preference.
1198 * the highest router preference will be installed, either as scoped or
1201 * router, i.e. static one wins over dynamic.
1206 * We assume nd_defrouter is sorted by router preference value.
1207 * Since the code below covers both with and without router preference cases,
1240 * If default router list is empty, there's nothing to be done.
1258 * Search for a (probably) reachable router from the list.
1263 * selected_dr = candidate for primary router
1264 * installed_dr = currently installed primary router
1321 * If the router hasn't been installed and it is
1329 nd6log2((LOG_INFO, "%s: possible router %s, "
1342 /* Record the currently installed primary/non-scoped router */
1350 "%s default router is installed\n",
1384 /* See if there is already a default router for the link */
1410 nd6log2((LOG_INFO, "%s: possible router %s, "
1420 nd6log2((LOG_INFO, "%s: considering primary default router %s, "
1431 * Otherwise, if we have an installed router, check if the selected
1432 * (reachable) router should really be preferred to the installed one.
1433 * We only prefer the new router when the old one is not reachable
1471 * If the installed primary router is not on the current
1485 * If the selected router is currently scoped, make sure
1493 * If the installed router is no longe reachable, remove
1494 * it and install the selected router instead.
1509 * the selected router is different than the installed one,
1510 * remove the installed router and install the selected one.
1519 nd6log2((LOG_INFO, "%s: no update, selected router %s, "
1520 "installed router %s\n", if_name(dr->ifp),
1524 nd6log2((LOG_INFO, "%s: no update, router is %s\n",
1549 * router needs to be installed as primary/non-scoped entry. If
1554 nd6log2((LOG_INFO, "%s: considering primary default router %s, "
1735 * put the primary/non-scoped router at the top of the
1770 * preferred router may be changed, so relocate
1771 * this router.
1841 * Insert the new router in the Default Router List;
1843 * of router-preferece. When Scoped Routing is disabled, routers
1846 * preference is the primary default router, when the interface used
1928 if (search->router == dr)
1947 new->router = dr;
2880 * detect if a given prefix has a (probably) reachable advertising router.
2898 if ((rt = nd6_lookup(&pfxrtr->router->rtaddr, 0,
2899 pfxrtr->router->ifp, 0)) != NULL) {
2922 * Check if each prefix in the prefix list has at least one available router
2923 * that advertised the prefix (a router is "available" if its neighbor cache
2928 * that has an available router.
2929 * But, if there is no prefix that has an available router, we still regards
2932 * is no router around us.
2957 * router.
2991 * If we have no such prefix, check whether we still have a router
3014 * There is at least one prefix that has a reachable router,
3015 * or at least a router which probably does not advertise
3017 * to a new link where we have a router that does not provide
3020 * router, and attach other prefixes.
3058 /* there is no prefix that has a reachable router */
4121 * it shouldn't be called when acting as a router.