Lines Matching defs:ifindex
1893 * Since ipv6_mreq contains an ifindex and ip_mreq contains an AF_INET
2286 uint32_t ifindex = 0;
2341 ifindex = mreq.ipv6mr_interface;
2382 ifindex = gsr.gsr_interface;
2402 if (ifindex != 0) {
2404 if ((u_int)if_index < ifindex) {
2408 ifp = ifindex2ifnet[ifindex];
2418 * Some badly behaved applications don't pass an ifindex
2427 ifindex = ntohs(gsa->sin6.sin6_addr.s6_addr16[1]);
2428 if (ifindex == 0) {
2429 MLD_PRINTF(("%s: warning: no ifindex, looking up "
2435 ifp = ifindex2ifnet[ifindex];
2565 u_int ifindex;
2571 error = sooptcopyin(sopt, &ifindex, sizeof(u_int), sizeof(u_int));
2576 if ((u_int)if_index < ifindex) {
2581 ifp = ifindex2ifnet[ifindex];
2928 * keyed by (ifindex, group).
2947 uint32_t fmode, ifindex;
2955 /* int: ifindex + 4 * 32 bits of IPv6 address */
2959 ifindex = name[0];
2961 if (ifindex <= 0 || ifindex > (u_int)if_index) {
2962 MLD_PRINTF(("%s: ifindex %u out of range\n",
2963 __func__, ifindex));
2976 ifp = ifindex2ifnet[ifindex];
2979 MLD_PRINTF(("%s: no ifp for ifindex %u\n", __func__, ifindex));