Lines Matching defs:mifi
273 mifi_t mifi;
311 error = sooptcopyin(sopt, &mifi, sizeof(mifi), sizeof(mifi));
314 error = del_m6if(&mifi);
405 mifi_t mifi = req->mifi;
407 if (mifi >= nummifs)
410 req->icount = mif6table[mifi].m6_pkt_in;
411 req->ocount = mif6table[mifi].m6_pkt_out;
412 req->ibytes = mif6table[mifi].m6_bytes_in;
413 req->obytes = mif6table[mifi].m6_bytes_out;
484 mifi_t mifi;
506 for (mifi = 0; mifi < nummifs; mifi++) {
507 if (mif6table[mifi].m6_ifp &&
508 !(mif6table[mifi].m6_flags & MIFF_REGISTER)) {
510 if_allmulti(mif6table[mifi].m6_ifp, 0);
518 ifp = mif6table[mifi].m6_ifp;
640 /* Adjust nummifs up if the mifi is higher than nummifs */
663 mifi_t mifi;
689 for (mifi = nummifs; mifi > 0; mifi--)
690 if (mif6table[mifi - 1].m6_ifp)
692 nummifs = mifi;
965 mifi_t mifi;
1135 for (mifp = mif6table, mifi = 0;
1136 mifi < nummifs && mifp->m6_ifp != ifp;
1137 mifp++, mifi++)
1143 oim->im6_mif = mifi;
1147 im->im6_mif = mifi;
1280 mifi_t mifi, iif;
1301 mifi = rt->mf6c_parent;
1302 if ((mifi >= nummifs) || (mif6table[mifi].m6_ifp != ifp)) {
1307 "wrong if: ifid %d mifi %d mififid %x\n",
1308 ifp->if_index, mifi,
1309 mif6table[mifi].m6_ifp->if_index);
1319 if (mifi < nummifs && mif6table[mifi].m6_ifp)
1401 mif6table[mifi].m6_pkt_out++;
1402 mif6table[mifi].m6_bytes_out += plen;
1404 mif6table[mifi].m6_pkt_in++;
1405 mif6table[mifi].m6_bytes_in += plen;
1414 for (mifp = mif6table, mifi = 0; mifi < nummifs; mifp++, mifi++)
1415 if (IF_ISSET(mifi, &rt->mf6c_ifset)) {
1424 (mif6table[mifi].m6_flags & MIFF_REGISTER) == 0 &&
1426 in6_addr2scopeid(mif6table[mifi].m6_ifp,
1429 in6_addr2scopeid(mif6table[mifi].m6_ifp,