Lines Matching refs:pi

482 	struct phyint		*pi;  in check_addr_unique()  local
508 for (pi = pg->pg_phyint; pi != NULL; pi = pi->pi_pgnext) { in check_addr_unique()
509 pii = PHYINT_INSTANCE(pi, ss->ss_family); in check_addr_unique()
528 stop_probing(struct phyint *pi) in stop_probing() argument
532 pii = pi->pi_v4; in stop_probing()
539 pii = pi->pi_v6; in stop_probing()
546 phyint_chstate(pi, PI_OFFLINE); in stop_probing()
583 struct phyint *pi; in select_test_ifs() local
767 for (pi = phyints; pi != NULL; pi = pi->pi_next) { in select_test_ifs()
768 if ((!PROBE_ENABLED(pi->pi_v4) && !PROBE_ENABLED(pi->pi_v6)) && in select_test_ifs()
769 (pi->pi_state == PI_FAILED || in select_test_ifs()
770 pi->pi_state == PI_NOTARGETS)) { in select_test_ifs()
771 phyint_check_for_repair(pi); in select_test_ifs()
797 struct phyint *pi; in check_testconfig() local
802 for (pi = phyints; pi != NULL; pi = pi->pi_next) { in check_testconfig()
803 if (pi->pi_flags & IFF_OFFLINE) in check_testconfig()
806 if (PROBE_ENABLED(pi->pi_v4) || PROBE_ENABLED(pi->pi_v6)) { in check_testconfig()
807 if (pi->pi_taddrmsg_printed || in check_testconfig()
808 pi->pi_duptaddrmsg_printed) { in check_testconfig()
809 if (pi->pi_duptaddrmsg_printed) in check_testconfig()
815 "failure detection on it\n", pi->pi_name); in check_testconfig()
816 pi->pi_taddrmsg_printed = 0; in check_testconfig()
817 pi->pi_duptaddrmsg_printed = 0; in check_testconfig()
823 if (pi->pi_v4 != NULL && pi->pi_v4->pii_probe_logint != NULL && in check_testconfig()
824 pi->pi_v4->pii_probe_logint->li_dupaddr) in check_testconfig()
825 li = pi->pi_v4->pii_probe_logint; in check_testconfig()
827 if (pi->pi_v6 != NULL && pi->pi_v6->pii_probe_logint != NULL && in check_testconfig()
828 pi->pi_v6->pii_probe_logint->li_dupaddr) in check_testconfig()
829 li = pi->pi_v6->pii_probe_logint; in check_testconfig()
832 if (pi->pi_duptaddrmsg_printed) in check_testconfig()
837 li->li_addr, abuf, sizeof (abuf)), pi->pi_name); in check_testconfig()
838 pi->pi_duptaddrmsg_printed = 1; in check_testconfig()
842 if (getcurrentsec() < pi->pi_taddrthresh) in check_testconfig()
845 if (!pi->pi_taddrmsg_printed) { in check_testconfig()
848 pi->pi_name); in check_testconfig()
849 pi->pi_taddrmsg_printed = 1; in check_testconfig()
865 struct phyint *pi; in check_config() local
886 for (pi = pg->pg_phyint; pi != NULL; pi = pi->pi_pgnext) { in check_config()
887 if (pi->pi_v4 != NULL) in check_config()
889 if (pi->pi_v6 != NULL) in check_config()
898 for (pi = pg->pg_phyint; pi != NULL; pi = pi->pi_pgnext) { in check_config()
899 if (pi->pi_flags & IFF_OFFLINE) in check_config()
902 if (v4_in_group == _B_TRUE && pi->pi_v4 == NULL) { in check_config()
903 if (!pi->pi_cfgmsg_printed) { in check_config()
907 pi->pi_name, in check_config()
908 pi->pi_group->pg_name); in check_config()
909 pi->pi_cfgmsg_printed = 1; in check_config()
912 pi->pi_v6 == NULL) { in check_config()
913 if (!pi->pi_cfgmsg_printed) { in check_config()
917 pi->pi_name, in check_config()
918 pi->pi_group->pg_name); in check_config()
919 pi->pi_cfgmsg_printed = 1; in check_config()
928 if (pi->pi_cfgmsg_printed) { in check_config()
932 pi->pi_name, pi->pi_group->pg_name); in check_config()
933 pi->pi_cfgmsg_printed = 0; in check_config()
1338 struct phyint *pi; in process_rtm_ifinfo() local
1372 pi = phyint_lookup(sdl->sdl_data); in process_rtm_ifinfo()
1373 if (pi == NULL) { in process_rtm_ifinfo()
1400 pii = (type == AF_INET) ? pi->pi_v4 : pi->pi_v6; in process_rtm_ifinfo()
1404 "family %s for %s\n", AF_STR(type), pi->pi_name); in process_rtm_ifinfo()
1410 pi->pi_flags = pii->pii_flags; in process_rtm_ifinfo()
1414 "old flags: %llx, new flags: %llx\n", pi->pi_name, in process_rtm_ifinfo()
1415 AF_STR(type), old_flags, pi->pi_flags); in process_rtm_ifinfo()
1423 phyint_changed(pi); in process_rtm_ifinfo()
1425 phyint_standby_refresh_inactive(pi); in process_rtm_ifinfo()
1660 struct phyint *pi; in router_add_common() local
1686 pi = pii->pii_phyint; in router_add_common()
1687 if (pi->pi_group == phyint_anongroup) { in router_add_common()
1690 pi = pi->pi_group->pg_phyint; in router_add_common()
1691 for (; pi != NULL; pi = pi->pi_pgnext) in router_add_common()
1692 target_add(PHYINT_INSTANCE(pi, af), nexthop, _B_TRUE); in router_add_common()
1774 struct phyint *pi; in init_router_targets() local
1780 pi = pii->pii_phyint; in init_router_targets()
1795 pi = pii->pii_phyint; in init_router_targets()
1808 if (!tg->tg_in_use && !GROUP_FAILED(pi->pi_group)) in init_router_targets()
1839 struct phyint *pi; in dup_host_targets() local
1851 for (pi = desired_pii->pii_phyint; pi != NULL; pi = pi->pi_pgnext) { in dup_host_targets()
1852 pii = PHYINT_INSTANCE(pi, af); in dup_host_targets()
1924 struct phyint *pi; in main() local
2166 for (pi = phyints; pi != NULL; pi = pi->pi_next) { in main()
2167 if (pi->pi_notes != 0 && in main()
2168 pollfds[i].fd == dlpi_fd(pi->pi_dh)) { in main()
2169 (void) dlpi_recv(pi->pi_dh, NULL, NULL, in main()
2401 struct phyint *pi; in process_cmd() local
2413 pi = phyint_lookup(mio->mio_ifname); in process_cmd()
2414 if (pi == NULL) in process_cmd()
2417 retval = phyint_offline(pi, mio->mio_min_redundancy); in process_cmd()
2426 pi = phyint_lookup(miu->miu_ifname); in process_cmd()
2427 if (pi == NULL) in process_cmd()
2430 retval = phyint_undo_offline(pi); in process_cmd()