* Updates status of the default router route. */
| 1575 | * Updates status of the default router route. |
| 1576 | */ |
| 1577 | static void |
| 1578 | check_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 | |
| 1594 | void |
| 1595 | nd6_subscription_cb(struct rib_head *rnh, struct rib_cmd_info *rc, void *arg) |
no test coverage detected