MCPcopy Create free account
hub / github.com/F-Stack/f-stack / check_release_defrouter

Function check_release_defrouter

freebsd/netinet6/nd6.c:1577–1592  ·  view source on GitHub ↗

* Updates status of the default router route. */

Source from the content-addressed store, hash-verified

1575 * Updates status of the default router route.
1576 */
1577static void
1578check_release_defrouter(struct rib_cmd_info *rc, void *_cbdata)
1579{
1580 struct nd_defrouter *dr;
1581 struct nhop_object *nh;
1582
1583 nh = rc->rc_nh_old;
1584
1585 if ((nh != NULL) && (nh->nh_flags & NHF_DEFAULT)) {
1586 dr = defrouter_lookup(&nh->gw6_sa.sin6_addr, nh->nh_ifp);
1587 if (dr != NULL) {
1588 dr->installed = 0;
1589 defrouter_rele(dr);
1590 }
1591 }
1592}
1593
1594void
1595nd6_subscription_cb(struct rib_head *rnh, struct rib_cmd_info *rc, void *arg)

Callers 1

nd6_subscription_cbFunction · 0.85

Calls 2

defrouter_lookupFunction · 0.85
defrouter_releFunction · 0.85

Tested by

no test coverage detected