Lines Matching defs:if_index
190 static u_int if_index = 1;
497 sockaddr_dl_init(sdl, socksize, ifp->if_index, ifp->if_type,
652 ifp->if_index = if_index;
654 if_index++;
657 while (if_byindex(ifp->if_index)) {
661 * of if_index or if_index itself is compared
666 if (++if_index == 0) {
667 if_index = 1;
668 } else if (if_index == USHRT_MAX) {
678 if_index = 1;
680 ifp->if_index = if_index;
684 * ifindex2ifnet is indexed by if_index. Since if_index will
687 if (ifindex2ifnet == NULL || ifp->if_index >= if_indexlim) {
692 while (ifp->if_index >= if_indexlim)
705 ifindex2ifnet[ifp->if_index] = ifp;
1363 ifindex2ifnet[ifp->if_index] = NULL;
3055 KASSERT(ifp->if_index != 0);
3301 ifr->ifr_index = ifp->if_index;