Lines Matching refs:ifp
112 struct interface *ifp;
530 for (ifp = ifnet; n > 0 && 0 != ifp; ifp = ifp->int_next) {
531 if (ifp->int_rip_sock >= 0
532 && FD_ISSET(ifp->int_rip_sock, ibitsp)) {
533 read_rip(ifp->int_rip_sock, ifp);
565 struct interface *ifp;
574 for (ifp = ifnet; 0 != ifp; ifp = ifp->int_next) {
575 if (ifp->int_rip_sock >= 0)
576 if (sock_max <= ifp->int_rip_sock)
577 sock_max = ifp->int_rip_sock + 1;
593 for (ifp = ifnet; 0 != ifp; ifp = ifp->int_next) {
594 if (ifp->int_rip_sock >= 0)
595 FD_SET(ifp->int_rip_sock, fdbitsp);
687 struct interface *ifp;
699 for (ifp = ifnet; ifp != 0; ifp = ifp->int_next) {
700 if (ifp->int_state & IS_REMOTE)
702 if (ifp->int_rip_sock < 0) {
703 addr = ((ifp->int_if_flags & IFF_POINTOPOINT)
704 ? ifp->int_dstaddr
705 : ifp->int_addr);
706 ifp->int_rip_sock = get_rip_sock(addr, 0);
720 rip_mcast_on(struct interface *ifp)
724 if (!IS_RIP_IN_OFF(ifp->int_state)
725 && (ifp->int_if_flags & IFF_MULTICAST)
727 && !(ifp->int_if_flags & IFF_POINTOPOINT)
729 && !(ifp->int_state & IS_ALIAS)) {
732 m.imr_interface.s_addr = htonl(ifp->int_index);
734 m.imr_interface.s_addr = ((ifp->int_if_flags & IFF_POINTOPOINT)
735 ? ifp->int_dstaddr
736 : ifp->int_addr);
748 rip_on(struct interface *ifp)
754 if (ifp != 0)
755 rip_mcast_on(ifp);
772 for (ifp = ifnet; ifp != 0; ifp = ifp->int_next) {
773 if (ifp->int_rip_sock >= 0) {
774 (void)close(ifp->int_rip_sock);
775 ifp->int_rip_sock = -1;
787 for (ifp = ifnet; ifp != 0; ifp = ifp->int_next) {
788 ifp->int_query_time = NEVER;
789 rip_mcast_on(ifp);
793 } else if (ifp != 0
794 && !(ifp->int_state & IS_REMOTE)
795 && ifp->int_rip_sock < 0) {
799 ifp->int_rip_sock = get_rip_sock(ifp->int_addr, 0);