Lines Matching defs:node
64 dns_compressnode_t *node;
72 node = cctx->table[i];
74 if (node->count < DNS_COMPRESS_INITIALNODES)
76 isc_mem_put(cctx->mctx, node, sizeof(*node));
120 #define NODENAME(node, name) \
122 (name)->length = (node)->r.length; \
123 (name)->labels = (node)->labels; \
124 (name)->ndata = (node)->r.base; \
138 dns_compressnode_t *node = NULL;
158 for (node = cctx->table[hash]; node != NULL; node = node->next)
160 NODENAME(node, &nname);
169 if (node != NULL)
174 * If node == NULL, we found no match at all.
176 if (node == NULL)
184 *offset = node->offset;
204 dns_compressnode_t *node;
229 * Create a new node and add it.
232 node = &cctx->initialnodes[cctx->count];
234 node = isc_mem_get(cctx->mctx,
236 if (node == NULL)
239 node->count = cctx->count++;
240 node->offset = toffset;
241 dns_name_toregion(&tname, &node->r);
242 node->labels = (isc_uint8_t)dns_name_countlabels(&tname);
243 node->next = cctx->table[hash];
244 cctx->table[hash] = node;
254 dns_compressnode_t *node;
259 node = cctx->table[i];
266 while (node != NULL && node->offset >= offset) {
267 cctx->table[i] = node->next;
268 if (node->count >= DNS_COMPRESS_INITIALNODES)
269 isc_mem_put(cctx->mctx, node, sizeof(*node));
271 node = cctx->table[i];