Lines Matching refs:pini
167 struct if_nameindex *pini; in if_nameindex_test() local
176 pini = if_nameindex(); in if_nameindex_test()
177 if (pini == NULL) { in if_nameindex_test()
182 for (i = 0; pini[i].if_index; ++i) { in if_nameindex_test()
183 p = if_indextoname(pini[i].if_index, buf); in if_nameindex_test()
184 if (!p || strcmp(p, pini[i].if_name)) { in if_nameindex_test()
187 pini[i].if_index, pini[i].if_name, in if_nameindex_test()
188 pini[i].if_index, p ? p : ""); in if_nameindex_test()
191 idx = if_nametoindex(pini[i].if_name); in if_nameindex_test()
192 if (idx != pini[i].if_index) { in if_nameindex_test()
195 pini[i].if_index, pini[i].if_name, in if_nameindex_test()
196 pini[i].if_name, idx); in if_nameindex_test()
200 pini[i].if_index, pini[i].if_name); in if_nameindex_test()
202 if_freenameindex(pini); in if_nameindex_test()
220 pini = if_nameindex(); in if_nameindex_test()
221 if (pini == NULL) { in if_nameindex_test()
226 if_freenameindex(pini); in if_nameindex_test()