Lines Matching refs:pr_up
297 struct nd_prefix *__single pr_up; in nd6_prproxy_prelist_setroute() local
305 pr_up = down->ndprl_up; in nd6_prproxy_prelist_setroute()
306 VERIFY(pr_up != NULL); in nd6_prproxy_prelist_setroute()
308 NDPR_LOCK(pr_up); in nd6_prproxy_prelist_setroute()
310 prproxy = (pr_up->ndpr_stateflags & NDPRF_PRPROXY); in nd6_prproxy_prelist_setroute()
311 VERIFY(!prproxy || ((pr_up->ndpr_stateflags & NDPRF_ONLINK) && in nd6_prproxy_prelist_setroute()
312 !(pr_up->ndpr_stateflags & NDPRF_IFSCOPE))); in nd6_prproxy_prelist_setroute()
313 NDPR_UNLOCK(pr_up); in nd6_prproxy_prelist_setroute()
341 NDPR_REMREF(pr_up); in nd6_prproxy_prelist_setroute()
698 nd6_prproxy_prelist_update(struct nd_prefix *pr_cur, struct nd_prefix *pr_up) in nd6_prproxy_prelist_update() argument
721 if (pr_up == NULL) { in nd6_prproxy_prelist_update()
743 if ((pr_up = pr) == NULL) { in nd6_prproxy_prelist_update()
747 NDPR_LOCK(pr_up); in nd6_prproxy_prelist_update()
749 NDPR_LOCK(pr_up); in nd6_prproxy_prelist_update()
750 bcopy(&pr_up->ndpr_prefix.sin6_addr, &pr_addr, in nd6_prproxy_prelist_update()
752 pr_ifscope = pr_up->ndpr_prefix.sin6_scope_id; in nd6_prproxy_prelist_update()
753 pr_len = pr_up->ndpr_plen; in nd6_prproxy_prelist_update()
755 NDPR_LOCK_ASSERT_HELD(pr_up); in nd6_prproxy_prelist_update()
761 VERIFY(!(pr_up->ndpr_stateflags & NDPRF_IFSCOPE)); in nd6_prproxy_prelist_update()
762 enable = (pr_up->ndpr_stateflags & NDPRF_PRPROXY); in nd6_prproxy_prelist_update()
763 NDPR_UNLOCK(pr_up); in nd6_prproxy_prelist_update()
771 NDPR_ADDREF(pr_up); in nd6_prproxy_prelist_update()
772 up->ndprl_pr = pr_up; in nd6_prproxy_prelist_update()
799 NDPR_ADDREF(pr_up); in nd6_prproxy_prelist_update()
800 down->ndprl_up = pr_up; in nd6_prproxy_prelist_update()