Lines Matching defs:if_index
190 static u_int if_index = 1;
497 sockaddr_dl_init(sdl, socksize, ifp->if_index, ifp->if_type,
648 ifp->if_index = if_index;
650 if_index++;
653 while (if_byindex(ifp->if_index)) {
657 * of if_index or if_index itself is compared
662 if (++if_index == 0) {
663 if_index = 1;
664 } else if (if_index == USHRT_MAX) {
674 if_index = 1;
676 ifp->if_index = if_index;
680 * ifindex2ifnet is indexed by if_index. Since if_index will
683 if (ifindex2ifnet == NULL || ifp->if_index >= if_indexlim) {
688 while (ifp->if_index >= if_indexlim)
701 ifindex2ifnet[ifp->if_index] = ifp;
1363 ifindex2ifnet[ifp->if_index] = NULL;
3060 KASSERT(ifp->if_index != 0);
3306 ifr->ifr_index = ifp->if_index;