Lines Matching defs:no
92 struct named_object no;
197 obj->no.name = obj->name;
198 obj->no.etlv = IPFW_TLV_EACTION;
215 if (ipfw_objhash_alloc_idx(ni, &obj->no.kidx) != 0) {
221 ipfw_objhash_add(ni, &obj->no);
223 SRV_OBJECT(ch, obj->no.kidx) = obj;
225 obj->no.refcnt++;
229 *eaction_id = obj->no.kidx;
234 destroy_eaction_obj(struct ip_fw_chain *ch, struct named_object *no)
243 obj = SRV_OBJECT(ch, no->kidx);
244 SRV_OBJECT(ch, no->kidx) = NULL;
246 ipfw_objhash_del(ni, no);
247 ipfw_objhash_free_idx(ni, no->kidx);
258 struct named_object *no;
263 no = ipfw_objhash_lookup_name_type(CHAIN_TO_SRV(ch), 0,
265 if (no == NULL)
267 if (eaction_id == no->kidx)
270 EACTION_DEBUG("Going to replace id %u with %u", eaction_id, no->kidx);
285 no->kidx, instance_id) != 0)
286 no->refcnt++;
294 ipfw_dyn_reset_eaction(ch, eaction_id, no->kidx, instance_id);
320 struct named_object *no;
325 no = ipfw_objhash_lookup_name_type(ni, 0, IPFW_TLV_EACTION,
327 if (no != NULL)
328 destroy_eaction_obj(ch, no);
359 struct named_object *no;
362 no = ipfw_objhash_lookup_kidx(CHAIN_TO_SRV(ch), eaction_id);
363 if (no == NULL || no->etlv != IPFW_TLV_EACTION) {
367 reset_eaction_rules(ch, eaction_id, 0, (no->refcnt > 1));
369 no->name, eaction_id);
370 destroy_eaction_obj(ch, no);
438 struct named_object *no;
441 no = ipfw_objhash_lookup_kidx(CHAIN_TO_SRV(ch), eaction_id);
442 if (no == NULL || no->etlv != IPFW_TLV_EACTION)