Lines Matching defs:ifindex
2104 uint32_t ifindex;
2112 ifindex = 0;
2140 ifindex = mreq.ipv6mr_interface;
2175 ifindex = gsr.gsr_interface;
2195 if (ifindex != 0) {
2196 if (ifindex < 0 || V_if_index < ifindex)
2198 ifp = ifnet_byindex(ifindex);
2207 * Some badly behaved applications don't pass an ifindex
2216 ifindex = ntohs(gsa->sin6.sin6_addr.s6_addr16[1]);
2217 if (ifindex == 0) {
2218 CTR2(KTR_MLD, "%s: warning: no ifindex, looking up "
2223 ifp = ifnet_byindex(ifindex);
2345 u_int ifindex;
2351 error = sooptcopyin(sopt, &ifindex, sizeof(u_int), sizeof(u_int));
2354 if (ifindex < 0 || V_if_index < ifindex)
2357 ifp = ifnet_byindex(ifindex);
2656 * keyed by (ifindex, group).
2660 * SMPng: NOTE: unlocked read of ifindex space.
2674 uint32_t fmode, ifindex;
2685 /* int: ifindex + 4 * 32 bits of IPv6 address */
2689 ifindex = name[0];
2690 if (ifindex <= 0 || ifindex > V_if_index) {
2691 CTR2(KTR_MLD, "%s: ifindex %u out of range",
2692 __func__, ifindex);
2703 ifp = ifnet_byindex(ifindex);
2705 CTR2(KTR_MLD, "%s: no ifp for ifindex %u",
2706 __func__, ifindex);