Lines Matching defs:no
424 cfg->no.name = cfg->name;
425 cfg->no.etlv = IPFW_TLV_NPTV6_NAME;
426 cfg->no.set = set;
448 uc->set = cfg->no.set;
449 strlcpy(uc->name, cfg->no.name, sizeof(uc->name));
458 export_config_cb(struct namedobj_instance *ni, struct named_object *no,
465 nptv6_export_config(da->ch, (struct nptv6_cfg *)no, uc);
557 if (ipfw_objhash_alloc_idx(ni, &cfg->no.kidx) != 0) {
562 ipfw_objhash_add(ni, &cfg->no);
563 SRV_OBJECT(ch, cfg->no.kidx) = cfg;
595 if (cfg->no.refcnt > 0) {
600 ipfw_reset_eaction_instance(ch, V_nptv6_eid, cfg->no.kidx);
601 SRV_OBJECT(ch, cfg->no.kidx) = NULL;
602 ipfw_objhash_del(CHAIN_TO_SRV(ch), &cfg->no);
603 ipfw_objhash_free_idx(CHAIN_TO_SRV(ch), cfg->no.kidx);
808 struct named_object *no;
812 no = ipfw_objhash_lookup_kidx(ni, idx);
813 KASSERT(no != NULL, ("NPT with index %d not found", idx));
815 NPTV6_DEBUG("kidx %u -> %s", idx, no->name);
816 return (no);
841 destroy_config_cb(struct namedobj_instance *ni, struct named_object *no,
850 cfg = (struct nptv6_cfg *)SRV_OBJECT(ch, no->kidx);
851 SRV_OBJECT(ch, no->kidx) = NULL;
852 ipfw_objhash_del(ni, &cfg->no);
853 ipfw_objhash_free_idx(ni, cfg->no.kidx);