Lines Matching defs:pi

480 	struct phyint		*pi;
506 for (pi = pg->pg_phyint; pi != NULL; pi = pi->pi_pgnext) {
507 pii = PHYINT_INSTANCE(pi, ss->ss_family);
526 stop_probing(struct phyint *pi)
530 pii = pi->pi_v4;
537 pii = pi->pi_v6;
544 phyint_chstate(pi, PI_OFFLINE);
581 struct phyint *pi;
765 for (pi = phyints; pi != NULL; pi = pi->pi_next) {
766 if ((!PROBE_ENABLED(pi->pi_v4) && !PROBE_ENABLED(pi->pi_v6)) &&
767 (pi->pi_state == PI_FAILED ||
768 pi->pi_state == PI_NOTARGETS)) {
769 phyint_check_for_repair(pi);
795 struct phyint *pi;
800 for (pi = phyints; pi != NULL; pi = pi->pi_next) {
801 if (pi->pi_flags & IFF_OFFLINE)
804 if (PROBE_ENABLED(pi->pi_v4) || PROBE_ENABLED(pi->pi_v6)) {
805 if (pi->pi_taddrmsg_printed ||
806 pi->pi_duptaddrmsg_printed) {
807 if (pi->pi_duptaddrmsg_printed)
813 "failure detection on it\n", pi->pi_name);
814 pi->pi_taddrmsg_printed = 0;
815 pi->pi_duptaddrmsg_printed = 0;
821 if (pi->pi_v4 != NULL && pi->pi_v4->pii_probe_logint != NULL &&
822 pi->pi_v4->pii_probe_logint->li_dupaddr)
823 li = pi->pi_v4->pii_probe_logint;
825 if (pi->pi_v6 != NULL && pi->pi_v6->pii_probe_logint != NULL &&
826 pi->pi_v6->pii_probe_logint->li_dupaddr)
827 li = pi->pi_v6->pii_probe_logint;
830 if (pi->pi_duptaddrmsg_printed)
835 li->li_addr, abuf, sizeof (abuf)), pi->pi_name);
836 pi->pi_duptaddrmsg_printed = 1;
840 if (getcurrentsec() < pi->pi_taddrthresh)
843 if (!pi->pi_taddrmsg_printed) {
846 pi->pi_name);
847 pi->pi_taddrmsg_printed = 1;
863 struct phyint *pi;
884 for (pi = pg->pg_phyint; pi != NULL; pi = pi->pi_pgnext) {
885 if (pi->pi_v4 != NULL)
887 if (pi->pi_v6 != NULL)
896 for (pi = pg->pg_phyint; pi != NULL; pi = pi->pi_pgnext) {
897 if (pi->pi_flags & IFF_OFFLINE)
900 if (v4_in_group == _B_TRUE && pi->pi_v4 == NULL) {
901 if (!pi->pi_cfgmsg_printed) {
905 pi->pi_name,
906 pi->pi_group->pg_name);
907 pi->pi_cfgmsg_printed = 1;
910 pi->pi_v6 == NULL) {
911 if (!pi->pi_cfgmsg_printed) {
915 pi->pi_name,
916 pi->pi_group->pg_name);
917 pi->pi_cfgmsg_printed = 1;
926 if (pi->pi_cfgmsg_printed) {
930 pi->pi_name, pi->pi_group->pg_name);
931 pi->pi_cfgmsg_printed = 0;
1336 struct phyint *pi;
1370 pi = phyint_lookup(sdl->sdl_data);
1371 if (pi == NULL) {
1398 pii = (type == AF_INET) ? pi->pi_v4 : pi->pi_v6;
1402 "family %s for %s\n", AF_STR(type), pi->pi_name);
1408 pi->pi_flags = pii->pii_flags;
1412 "old flags: %llx, new flags: %llx\n", pi->pi_name,
1413 AF_STR(type), old_flags, pi->pi_flags);
1421 phyint_changed(pi);
1423 phyint_standby_refresh_inactive(pi);
1658 struct phyint *pi;
1684 pi = pii->pii_phyint;
1685 if (pi->pi_group == phyint_anongroup) {
1688 pi = pi->pi_group->pg_phyint;
1689 for (; pi != NULL; pi = pi->pi_pgnext)
1690 target_add(PHYINT_INSTANCE(pi, af), nexthop, _B_TRUE);
1772 struct phyint *pi;
1778 pi = pii->pii_phyint;
1793 pi = pii->pii_phyint;
1806 if (!tg->tg_in_use && !GROUP_FAILED(pi->pi_group))
1837 struct phyint *pi;
1849 for (pi = desired_pii->pii_phyint; pi != NULL; pi = pi->pi_pgnext) {
1850 pii = PHYINT_INSTANCE(pi, af);
1922 struct phyint *pi;
2164 for (pi = phyints; pi != NULL; pi = pi->pi_next) {
2165 if (pi->pi_notes != 0 &&
2166 pollfds[i].fd == dlpi_fd(pi->pi_dh)) {
2167 (void) dlpi_recv(pi->pi_dh, NULL, NULL,
2398 struct phyint *pi;
2410 pi = phyint_lookup(mio->mio_ifname);
2411 if (pi == NULL)
2414 retval = phyint_offline(pi, mio->mio_min_redundancy);
2423 pi = phyint_lookup(miu->miu_ifname);
2424 if (pi == NULL)
2427 retval = phyint_undo_offline(pi);