Lines Matching refs:ifp
759 struct interface *ifp; in rip_off() local
769 for (ifp = ifnet; ifp != NULL; ifp = ifp->int_next) { in rip_off()
770 if ((ifp->int_if_flags & IFF_MULTICAST) && in rip_off()
771 !IS_IFF_QUIET(ifp->int_if_flags) && in rip_off()
772 !IS_RIP_IN_OFF(ifp->int_state) && in rip_off()
773 !(ifp->int_state & IS_DUP)) { in rip_off()
777 (ifp->int_if_flags & IFF_POINTOPOINT) ? in rip_off()
778 ifp->int_dstaddr : ifp->int_addr; in rip_off()
788 "%s, %s): %s", ifp->int_name, in rip_off()
802 rip_mcast_on(struct interface *ifp) in rip_mcast_on() argument
806 if (!IS_RIP_IN_OFF(ifp->int_state) && in rip_mcast_on()
807 (ifp->int_if_flags & IFF_MULTICAST) && in rip_mcast_on()
808 !IS_IFF_QUIET(ifp->int_if_flags) && in rip_mcast_on()
809 !(ifp->int_state & IS_DUP)) { in rip_mcast_on()
811 m.imr_interface.s_addr = (ifp->int_if_flags & IFF_POINTOPOINT) ? in rip_mcast_on()
812 ifp->int_dstaddr : ifp->int_addr; in rip_mcast_on()
814 &m, sizeof (m)) < 0) && !(ifp->int_state & IS_BROKE)) in rip_mcast_on()
817 ifp->int_name, rip_strerror(errno)); in rip_mcast_on()
823 rip_mcast_off(struct interface *ifp) in rip_mcast_off() argument
827 if ((ifp->int_if_flags & IFF_MULTICAST) && in rip_mcast_off()
828 !IS_IFF_QUIET(ifp->int_if_flags) && rip_enabled) { in rip_mcast_off()
830 m.imr_interface.s_addr = (ifp->int_if_flags & IFF_POINTOPOINT) ? in rip_mcast_off()
831 ifp->int_dstaddr : ifp->int_addr; in rip_mcast_off()
837 ifp->int_name, rip_strerror(errno)); in rip_mcast_off()
843 rip_on(struct interface *ifp) in rip_on() argument
850 if (ifp != NULL) in rip_on()
851 rip_mcast_on(ifp); in rip_on()
871 for (ifp = ifnet; ifp != NULL; ifp = ifp->int_next) { in rip_on()
872 ifp->int_query_time = NEVER; in rip_on()
873 rip_mcast_on(ifp); in rip_on()