Lines Matching defs:ifp
165 rti_find(struct ifnet *ifp)
171 if (rti->rti_ifidx == ifp->if_index)
178 rti->rti_ifidx = ifp->if_index;
185 rti_delete(struct ifnet *ifp)
190 if (rti->rti_ifidx == ifp->if_index) {
201 struct ifnet *ifp;
205 ifp = if_get((*mp)->m_pkthdr.ph_ifidx);
206 if (ifp == NULL) {
212 proto = igmp_input_if(ifp, mp, offp, proto, af);
214 if_put(ifp);
219 igmp_input_if(struct ifnet *ifp, struct mbuf **mp, int *offp, int proto, int af)
270 if (ifp->if_flags & IFF_LOOPBACK)
274 rti = rti_find(ifp);
294 TAILQ_FOREACH(ifma, &ifp->if_maddrlist, ifma_list) {
325 TAILQ_FOREACH(ifma, &ifp->if_maddrlist, ifma_list) {
360 if (ifp->if_flags & IFF_LOOPBACK)
380 IFP_TO_IA(ifp, ia);
389 IN_LOOKUP_MULTI(igmp->igmp_group, ifp, inm);
419 IFP_TO_IA(ifp, ia);
426 if (ifp->if_flags & IFF_LOOPBACK)
447 IFP_TO_IA(ifp, ia);
457 IN_LOOKUP_MULTI(igmp->igmp_group, ifp, inm);
491 igmp_joingroup(struct in_multi *inm, struct ifnet *ifp)
498 (ifp->if_flags & IFF_LOOPBACK) == 0) {
500 igmp_sendpkt(ifp, inm, i, 0);
515 igmp_leavegroup(struct in_multi *inm, struct ifnet *ifp)
521 (ifp->if_flags & IFF_LOOPBACK) == 0)
523 igmp_sendpkt(ifp, inm,
537 struct ifnet *ifp;
553 TAILQ_FOREACH(ifp, &ifnetlist, if_list) {
554 if (igmp_checktimer(ifp))
565 igmp_checktimer(struct ifnet *ifp)
573 TAILQ_FOREACH(ifma, &ifp->if_maddrlist, ifma_list) {
582 igmp_sendpkt(ifp, inm,
585 igmp_sendpkt(ifp, inm,
615 igmp_sendpkt(struct ifnet *ifp, struct in_multi *inm, int type,
658 m->m_pkthdr.ph_rtableid = ifp->if_rdomain;
667 imo.imo_loop = (ip_mrouter[ifp->if_rdomain] != NULL);