Lines Matching refs:pr
425 struct prefix *pr;
541 pr = prefix_lookup_name(pi, ifname);
542 if (pr == NULL) {
543 pr = prefix_create_name(pi, ifname);
544 if (pr == NULL) {
548 if (prefix_init_from_k(pr) == -1) {
549 prefix_delete(pr);
554 if (pr->pr_kernel_state != 0)
555 pr->pr_in_use = _B_TRUE;
559 (pr->pr_flags & IFF_TEMPORARY)) {
564 if (++pr->pr_attempts >= MAX_DAD_FAILURES) {
567 pr->pr_name, inet_ntop(AF_INET6,
569 pr->pr_attempts, pi->pi_name);
572 prefix_delete(pr);
576 pr->pr_name, inet_ntop(AF_INET6, (void *)&pi->pi_tmp_token,
579 prefix_delete(pr);
588 pr->pr_address.s6_addr[i] = pr->pr_prefix.s6_addr[i] |
591 if (prefix_lookup_addr_match(pr) != NULL) {
592 prefix_delete(pr);
595 pr->pr_CreateTime = getcurrenttime() / MILLISEC;
601 pr->pr_kernel_state &= ~PR_AUTO;
602 prefix_update_k(pr);
624 struct prefix *pr;
662 for (pr = pi->pi_prefix_list; pr != NULL; pr = pr->pr_next) {
663 pr->pr_in_use = _B_FALSE;
1206 struct prefix *pr;
1241 for (pr = pi->pi_prefix_list; pr != NULL; pr = next_pr) {
1242 next_pr = pr->pr_next;
1243 nexti = prefix_timer(pr, elapsed);
1247 logmsg(LOG_DEBUG, "run_timeouts (pr %s): "
1248 "%d -> %u ms\n", pr->pr_name, nexti, next);
1259 "(adv pr on %s): %d -> %u ms\n",
1588 struct prefix *pr;
1681 for (pr = pi->pi_prefix_list; pr != NULL; pr = pr->pr_next) {
1682 pr->pr_in_use = _B_FALSE;
1693 for (pr = pi->pi_prefix_list; pr != NULL; pr = pr->pr_next) {
1694 if_process(ifsock, pr->pr_name, _B_FALSE);
1824 struct prefix *pr, *next_pr;
1832 for (pr = pi->pi_prefix_list; pr != NULL; pr = next_pr) {
1833 next_pr = pr->pr_next;
1834 if (!pr->pr_in_use) {
1836 pr->pr_kernel_state &= PR_STATIC;
1837 if (pr->pr_state & PR_STATIC)
1838 prefix_update_ipadm_addrobj(pr, _B_FALSE);
1839 pr->pr_name[0] = '\0';
1840 if (pr->pr_state & PR_STATIC) {
1841 prefix_delete(pr);
1847 pr->pr_state = pr->pr_kernel_state;
1848 } else if (pr->pr_state != pr->pr_kernel_state) {
1851 prefix_update_k(pr);
1868 for (pr = pi->pi_prefix_list; pr != NULL; pr = next_pr) {
1869 next_pr = pr->pr_next;
1870 if (pr->pr_state & PR_AUTO)
1871 prefix_update_ipadm_addrobj(pr, _B_FALSE);
1872 prefix_delete(pr);
2161 logperror_pr(const struct prefix *pr, const char *str)
2165 str, pr->pr_name, pr->pr_physical->pi_name);
2169 str, pr->pr_name, pr->pr_physical->pi_name,
2410 struct prefix *pr, *next_pr;
2433 for (pr = pi->pi_prefix_list; pr != NULL; pr = next_pr) {
2434 next_pr = pr->pr_next;
2435 if (pr->pr_name[0] == '\0') {
2436 prefix_delete(pr);
2443 (void) strncpy(lifr.lifr_name, pr->pr_name,
2452 prefix_update_ipadm_addrobj(pr, _B_FALSE);
2454 prefix_delete(pr);