Lines Matching defs:ent
78 dns_order_ent_t *ent;
85 ent = isc_mem_get(order->mctx, sizeof(*ent));
86 if (ent == NULL)
89 dns_fixedname_init(&ent->name);
90 RUNTIME_CHECK(dns_name_copy(name, dns_fixedname_name(&ent->name), NULL)
92 ent->rdtype = rdtype;
93 ent->rdclass = rdclass;
94 ent->mode = mode;
95 ISC_LINK_INIT(ent, link);
96 ISC_LIST_INITANDAPPEND(order->ents, ent, link);
112 dns_order_ent_t *ent;
115 for (ent = ISC_LIST_HEAD(order->ents);
116 ent != NULL;
117 ent = ISC_LIST_NEXT(ent, link)) {
118 if (ent->rdtype != rdtype && ent->rdtype != dns_rdatatype_any)
120 if (ent->rdclass != rdclass &&
121 ent->rdclass != dns_rdataclass_any)
123 if (match(name, dns_fixedname_name(&ent->name)))
124 return (ent->mode);
140 dns_order_ent_t *ent;
152 while ((ent = ISC_LIST_HEAD(order->ents)) != NULL) {
153 ISC_LIST_UNLINK(order->ents, ent, link);
154 isc_mem_put(order->mctx, ent, sizeof(*ent));