Lines Matching defs:no
89 struct named_object no;
194 obj->no.name = obj->name;
195 obj->no.etlv = IPFW_TLV_EACTION;
212 if (ipfw_objhash_alloc_idx(ni, &obj->no.kidx) != 0) {
218 ipfw_objhash_add(ni, &obj->no);
220 SRV_OBJECT(ch, obj->no.kidx) = obj;
222 obj->no.refcnt++;
226 *eaction_id = obj->no.kidx;
231 destroy_eaction_obj(struct ip_fw_chain *ch, struct named_object *no)
240 obj = SRV_OBJECT(ch, no->kidx);
241 SRV_OBJECT(ch, no->kidx) = NULL;
243 ipfw_objhash_del(ni, no);
244 ipfw_objhash_free_idx(ni, no->kidx);
255 struct named_object *no;
260 no = ipfw_objhash_lookup_name_type(CHAIN_TO_SRV(ch), 0,
262 if (no == NULL)
264 if (eaction_id == no->kidx)
267 EACTION_DEBUG("Going to replace id %u with %u", eaction_id, no->kidx);
282 no->kidx, instance_id) != 0)
283 no->refcnt++;
291 ipfw_dyn_reset_eaction(ch, eaction_id, no->kidx, instance_id);
317 struct named_object *no;
322 no = ipfw_objhash_lookup_name_type(ni, 0, IPFW_TLV_EACTION,
324 if (no != NULL)
325 destroy_eaction_obj(ch, no);
356 struct named_object *no;
359 no = ipfw_objhash_lookup_kidx(CHAIN_TO_SRV(ch), eaction_id);
360 if (no == NULL || no->etlv != IPFW_TLV_EACTION) {
364 reset_eaction_rules(ch, eaction_id, 0, (no->refcnt > 1));
366 no->name, eaction_id);
367 destroy_eaction_obj(ch, no);
435 struct named_object *no;
438 no = ipfw_objhash_lookup_kidx(CHAIN_TO_SRV(ch), eaction_id);
439 if (no == NULL || no->etlv != IPFW_TLV_EACTION)