Lines Matching defs:ifp
265 * Inline function which wraps assertions for a valid ifp.
344 im6o_match_group(const struct ip6_moptions *imo, const struct ifnet *ifp,
366 if ((ifp == NULL || (pinm->in6m_ifp == ifp)) &&
425 im6o_mc_filter(const struct ip6_moptions *imo, const struct ifnet *ifp,
433 VERIFY(ifp != NULL);
435 gidx = im6o_match_group(imo, ifp, group);
459 * Find and return a reference to an in6_multi record for (ifp, group),
462 * filters on ifp to listen for group.
467 in6_mc_get(struct ifnet *ifp, const struct in6_addr *group,
478 IN6_LOOKUP_MULTI(group, ifp, inm);
504 error = if_addmulti(ifp, (struct sockaddr *)&gsin6, &ifma);
520 VERIFY(inm->in6m_ifp == ifp);
571 inm->in6m_ifp = ifp;
572 inm->in6m_mli = MLD_IFINFO(ifp);
1188 in6_joingroup(struct ifnet *ifp, struct in6_addr *mcaddr,
1204 error = in6_mc_join(ifp, mcaddr, NULL, &imm->i6mm_maddr, delay);
1240 in6_mc_join(struct ifnet *ifp, const struct in6_addr *mcaddr,
1249 * Sanity: Check scope zone ID was set for ifp, if and
1259 ip6_sprintf(mcaddr), ifp, ifp->if_name, ifp->if_unit));
1272 error = in6_mc_get(ifp, mcaddr, &inm);
1391 struct ifnet *ifp;
1400 ifp = NULL;
1432 ifp = ifindex2ifnet[gsr.gsr_interface];
1435 if (ifp == NULL)
1452 (void) in6_setscope(&gsa->sin6.sin6_addr, ifp, NULL);
1462 idx = im6o_match_group(imo, ifp, &gsa->sa);
1614 struct ifnet *ifp;
1660 ifp = ifindex2ifnet[msfr.msfr_ifindex];
1663 if (ifp == NULL)
1673 (void)in6_setscope(&gsa->sin6.sin6_addr, ifp, NULL);
1679 idx = im6o_match_group(imo, ifp, &gsa->sa);
1861 * Returns NULL if no ifp could be found.
1868 struct ifnet *ifp;
1879 ifp = NULL;
1884 ifp = ro6.ro_rt->rt_ifp;
1885 VERIFY(ifp != NULL);
1889 return (ifp);
1902 struct ifnet *ifp;
1911 ifp = ifindex2ifnet[mreq->ipv6mr_interface];
1913 if (ifp == NULL)
1915 ifa = ifa_ifpgetprimary(ifp, AF_INET);
1936 struct ifnet *ifp;
1945 ifp = NULL;
2004 ifp = in6p_lookup_mcast_ifp(inp, gsin6);
2011 ifp = ifindex2ifnet[mreq.ipv6mr_interface];
2014 MLD_PRINTF(("%s: ipv6mr_interface = %d, ifp = %p\n",
2015 __func__, mreq.ipv6mr_interface, ifp));
2045 * list entry against passed-in ifp, if and only
2059 ifp = ifindex2ifnet[gsr.gsr_interface];
2073 if (ifp == NULL || (ifp->if_flags & IFF_MULTICAST) == 0)
2081 * Use the passed-in ifp to do this.
2083 (void)in6_setscope(&gsa->sin6.sin6_addr, ifp, &scopeid);
2099 idx = im6o_match_group(imo, ifp, &gsa->sa);
2223 error = in6_mc_join(ifp, &gsa->sin6.sin6_addr, imf, &inm, 0);
2281 struct ifnet *ifp;
2290 ifp = NULL;
2375 * list entry against passed-in ifp, if and only
2408 ifp = ifindex2ifnet[ifindex];
2410 if (ifp == NULL)
2412 (void) in6_setscope(&gsa->sin6.sin6_addr, ifp, NULL);
2423 * This is not the 'KAME way', but we need to see the ifp
2430 "ifp for group %s.\n", __func__,
2432 ifp = in6p_lookup_mcast_ifp(inp, &gsa->sin6);
2435 ifp = ifindex2ifnet[ifindex];
2438 if (ifp == NULL)
2442 VERIFY(ifp != NULL);
2443 MLD_PRINTF(("%s: ifp = %p\n", __func__, ifp));
2453 idx = im6o_match_group(imo, ifp, &gsa->sa);
2563 struct ifnet *ifp;
2581 ifp = ifindex2ifnet[ifindex];
2583 if (ifp == NULL || (ifp->if_flags & IFF_MULTICAST) == 0)
2591 imo->im6o_multicast_ifp = ifp;
2608 struct ifnet *ifp;
2660 ifp = ifindex2ifnet[msfr.msfr_ifindex];
2662 if (ifp == NULL)
2665 (void)in6_setscope(&gsa->sin6.sin6_addr, ifp, NULL);
2676 idx = im6o_match_group(imo, ifp, &gsa->sa);
2758 * list entry against passed-in ifp, if and only
2940 struct ifnet *ifp;
2976 ifp = ifindex2ifnet[ifindex];
2978 if (ifp == NULL) {
2979 MLD_PRINTF(("%s: no ifp for ifindex %u\n", __func__, ifindex));
2985 (void)in6_setscope(&mcaddr, ifp, NULL);
2991 if (inm->in6m_ifp != ifp)
3464 printf("addr %s ifp %p(%s%d) ifma %p\n",