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