Lines Matching defs:mx
192 dns_rdata_mx_t *mx = source;
197 REQUIRE(mx->common.rdtype == type);
198 REQUIRE(mx->common.rdclass == rdclass);
203 RETERR(uint16_tobuffer(mx->pref, target));
204 dns_name_toregion(&mx->mx, ®ion);
211 dns_rdata_mx_t *mx = target;
218 mx->common.rdclass = rdata->rdclass;
219 mx->common.rdtype = rdata->type;
220 ISC_LINK_INIT(&mx->common, link);
224 mx->pref = uint16_fromregion(®ion);
227 dns_name_init(&mx->mx, NULL);
228 RETERR(name_duporclone(&name, mctx, &mx->mx));
229 mx->mctx = mctx;
235 dns_rdata_mx_t *mx = source;
238 REQUIRE(mx->common.rdtype == dns_rdatatype_mx);
240 if (mx->mctx == NULL)
243 dns_name_free(&mx->mx, mx->mctx);
244 mx->mctx = NULL;