Lines Matching defs:no
426 cfg->no.name = cfg->name;
427 cfg->no.etlv = IPFW_TLV_NPTV6_NAME;
428 cfg->no.set = set;
453 uc->set = cfg->no.set;
454 strlcpy(uc->name, cfg->no.name, sizeof(uc->name));
463 export_config_cb(struct namedobj_instance *ni, struct named_object *no,
470 nptv6_export_config(da->ch, (struct nptv6_cfg *)no, uc);
571 ifaddr_cb(struct namedobj_instance *ni, struct named_object *no,
579 cfg = (struct nptv6_cfg *)SRV_OBJECT(ch, no->kidx);
702 if (ipfw_objhash_alloc_idx(ni, &cfg->no.kidx) != 0) {
707 ipfw_objhash_add(ni, &cfg->no);
708 SRV_OBJECT(ch, cfg->no.kidx) = cfg;
743 if (cfg->no.refcnt > 0) {
748 ipfw_reset_eaction_instance(ch, V_nptv6_eid, cfg->no.kidx);
749 SRV_OBJECT(ch, cfg->no.kidx) = NULL;
750 ipfw_objhash_del(CHAIN_TO_SRV(ch), &cfg->no);
751 ipfw_objhash_free_idx(CHAIN_TO_SRV(ch), cfg->no.kidx);
956 struct named_object *no;
960 no = ipfw_objhash_lookup_kidx(ni, idx);
961 KASSERT(no != NULL, ("NPT with index %d not found", idx));
963 NPTV6_DEBUG("kidx %u -> %s", idx, no->name);
964 return (no);
989 destroy_config_cb(struct namedobj_instance *ni, struct named_object *no,
998 cfg = (struct nptv6_cfg *)SRV_OBJECT(ch, no->kidx);
999 SRV_OBJECT(ch, no->kidx) = NULL;
1000 ipfw_objhash_del(ni, &cfg->no);
1001 ipfw_objhash_free_idx(ni, cfg->no.kidx);