Lines Matching defs:x25
102 dns_rdata_x25_t *x25 = source;
107 REQUIRE(x25->common.rdtype == type);
108 REQUIRE(x25->common.rdclass == rdclass);
109 REQUIRE(x25->x25 != NULL && x25->x25_len != 0);
114 if (x25->x25_len < 4)
117 for (i = 0; i < x25->x25_len; i++)
118 if (!isdigit(x25->x25[i] & 0xff))
121 RETERR(uint8_tobuffer(x25->x25_len, target));
122 return (mem_tobuffer(target, x25->x25, x25->x25_len));
127 dns_rdata_x25_t *x25 = target;
134 x25->common.rdclass = rdata->rdclass;
135 x25->common.rdtype = rdata->type;
136 ISC_LINK_INIT(&x25->common, link);
139 x25->x25_len = uint8_fromregion(&r);
141 x25->x25 = mem_maybedup(mctx, r.base, x25->x25_len);
142 if (x25->x25 == NULL)
145 x25->mctx = mctx;
151 dns_rdata_x25_t *x25 = source;
153 REQUIRE(x25->common.rdtype == dns_rdatatype_x25);
155 if (x25->mctx == NULL)
158 if (x25->x25 != NULL)
159 isc_mem_free(x25->mctx, x25->x25);
160 x25->mctx = NULL;