Lines Matching refs:ife
1938 struct ifentry *ife; member
2138 struct ifentry *ife; in destroy_ifidx_locked() local
2142 ife = (struct ifentry *)no; in destroy_ifidx_locked()
2144 ipfw_iface_del_notify(ch, &ife->ic); in destroy_ifidx_locked()
2145 ipfw_iface_unref(ch, &ife->ic); in destroy_ifidx_locked()
2146 free(ife, M_IPFW_TBL); in destroy_ifidx_locked()
2200 struct ifentry *ife; in ta_prepare_add_ifidx() local
2209 ife = malloc(sizeof(struct ifentry), M_IPFW_TBL, M_WAITOK | M_ZERO); in ta_prepare_add_ifidx()
2210 ife->ic.cb = if_notifier; in ta_prepare_add_ifidx()
2211 ife->ic.cbdata = ife; in ta_prepare_add_ifidx()
2213 if (ipfw_iface_ref(ch, ifname, &ife->ic) != 0) { in ta_prepare_add_ifidx()
2214 free(ife, M_IPFW_TBL); in ta_prepare_add_ifidx()
2219 ife->no.name = ife->ic.iface->ifname; in ta_prepare_add_ifidx()
2221 tb->ife = ife; in ta_prepare_add_ifidx()
2231 struct ifentry *ife, *tmp; in ta_add_ifidx() local
2241 ife = tb->ife; in ta_add_ifidx()
2243 ife->icfg = icfg; in ta_add_ifidx()
2244 ife->value = tei->value; in ta_add_ifidx()
2261 ifi->value = ife->value; in ta_add_ifidx()
2274 ipfw_objhash_add(icfg->ii, &ife->no); in ta_add_ifidx()
2277 ipfw_iface_add_notify(icfg->ch, &ife->ic); in ta_add_ifidx()
2280 tb->ife = NULL; in ta_add_ifidx()
2313 struct ifentry *ife; in ta_del_ifidx() local
2323 ife = (struct ifentry *)ipfw_objhash_lookup_name(icfg->ii, 0, ifname); in ta_del_ifidx()
2325 if (ife == NULL) in ta_del_ifidx()
2328 if (ife->linked != 0) { in ta_del_ifidx()
2330 ifindex = ife->ic.iface->ifindex; in ta_del_ifidx()
2338 ife->linked = 0; in ta_del_ifidx()
2342 ipfw_objhash_del(icfg->ii, &ife->no); in ta_del_ifidx()
2344 ipfw_iface_del_notify(icfg->ch, &ife->ic); in ta_del_ifidx()
2345 ipfw_iface_unref(icfg->ch, &ife->ic); in ta_del_ifidx()
2348 tei->value = ife->value; in ta_del_ifidx()
2350 tb->ife = ife; in ta_del_ifidx()
2368 if (tb->ife != NULL) in ta_flush_ifidx_entry()
2369 free(tb->ife, M_IPFW_TBL); in ta_flush_ifidx_entry()
2379 struct ifentry *ife; in if_notifier() local
2385 ife = (struct ifentry *)cbdata; in if_notifier()
2386 icfg = ife->icfg; in if_notifier()
2391 if (ife->linked == 0 && ifindex != 0) { in if_notifier()
2395 ifi.value = ife->value; in if_notifier()
2401 ife->linked = 1; in if_notifier()
2402 } else if (ife->linked != 0 && ifindex == 0) { in if_notifier()
2404 ifindex = ife->ic.iface->ifindex; in if_notifier()
2412 ife->linked = 0; in if_notifier()
2522 struct ifentry *ife; in ta_dump_ifidx_tentry() local
2524 ife = (struct ifentry *)e; in ta_dump_ifidx_tentry()
2527 memcpy(&tent->k, ife->no.name, IF_NAMESIZE); in ta_dump_ifidx_tentry()
2528 tent->v.kidx = ife->value; in ta_dump_ifidx_tentry()
2538 struct ifentry *ife; in ta_find_ifidx_tentry() local
2547 ife = (struct ifentry *)ipfw_objhash_lookup_name(icfg->ii, 0, ifname); in ta_find_ifidx_tentry()
2549 if (ife != NULL) { in ta_find_ifidx_tentry()
2550 ta_dump_ifidx_tentry(ta_state, ti, ife, tent); in ta_find_ifidx_tentry()
2566 struct ifentry *ife; in foreach_ifidx() local
2569 ife = (struct ifentry *)no; in foreach_ifidx()
2572 wa->f(ife, wa->arg); in foreach_ifidx()