Lines Matching defs:no
573 struct named_object no;
655 struct named_object *no;
673 obj->no.name = obj->name;
674 obj->no.etlv = IPFW_TLV_STATE_NAME;
678 no = ipfw_objhash_lookup_name_type(ni, 0,
680 if (no != NULL) {
685 *pkidx = no->kidx;
686 no->refcnt++;
692 if (ipfw_objhash_alloc_idx(ni, &obj->no.kidx) != 0) {
698 ipfw_objhash_add(ni, &obj->no);
699 SRV_OBJECT(ch, obj->no.kidx) = obj;
700 obj->no.refcnt++;
701 *pkidx = obj->no.kidx;
708 dyn_destroy(struct ip_fw_chain *ch, struct named_object *no)
714 KASSERT(no->etlv == IPFW_TLV_STATE_NAME,
715 ("%s: wrong object type %u", __func__, no->etlv));
716 KASSERT(no->refcnt == 1,
718 no->name, no->etlv, no->kidx, no->refcnt));
719 DYN_DEBUG("kidx %d", no->kidx);
720 obj = SRV_OBJECT(ch, no->kidx);
721 SRV_OBJECT(ch, no->kidx) = NULL;
722 ipfw_objhash_del(CHAIN_TO_SRV(ch), no);
723 ipfw_objhash_free_idx(CHAIN_TO_SRV(ch), no->kidx);
1022 * Expiration timer has the per-second granularity, no need to update
1324 * no state, NULL is returned.
2150 obj->no.refcnt++;
2151 MPASS(obj->no.etlv == IPFW_TLV_STATE_NAME);
2167 if (obj->no.refcnt == 1)
2168 dyn_destroy(ch, &obj->no);
2170 obj->no.refcnt--;
2179 * and there is no matching state. So, since the old parent rule was deleted
2808 * Do not perform any checks if we currently have no dynamic states