Home
last modified time | relevance | path

Searched refs:rrset (Results 1 – 3 of 3) sorted by relevance

/external/openssh/openbsd-compat/
Dgetrrsetbyname-ldns.c69 struct rrsetinfo *rrset = NULL; in getrrsetbyname() local
121 rrset = calloc(1, sizeof(struct rrsetinfo)); in getrrsetbyname()
122 if (rrset == NULL) { in getrrsetbyname()
128 rrset->rri_nrdatas = ldns_rr_list_rr_count(rrdata); in getrrsetbyname()
129 if (!rrset->rri_nrdatas) { in getrrsetbyname()
136 if ((rrset->rri_name = malloc(len)) == NULL) { in getrrsetbyname()
140 memcpy(rrset->rri_name, in getrrsetbyname()
143 rrset->rri_rdclass = ldns_rr_get_class(ldns_rr_list_rr(rrdata, 0)); in getrrsetbyname()
144 rrset->rri_rdtype = ldns_rr_get_type(ldns_rr_list_rr(rrdata, 0)); in getrrsetbyname()
145 rrset->rri_ttl = ldns_rr_ttl(ldns_rr_list_rr(rrdata, 0)); in getrrsetbyname()
[all …]
Dgetrrsetbyname.c194 struct rrsetinfo *rrset = NULL; in getrrsetbyname() local
266 rrset = calloc(1, sizeof(struct rrsetinfo)); in getrrsetbyname()
267 if (rrset == NULL) { in getrrsetbyname()
271 rrset->rri_rdclass = response->query->class; in getrrsetbyname()
272 rrset->rri_rdtype = response->query->type; in getrrsetbyname()
273 rrset->rri_ttl = response->answer->ttl; in getrrsetbyname()
274 rrset->rri_nrdatas = response->header.ancount; in getrrsetbyname()
279 rrset->rri_flags |= RRSET_VALIDATED; in getrrsetbyname()
283 rrset->rri_name = strdup(response->answer->name); in getrrsetbyname()
284 if (rrset->rri_name == NULL) { in getrrsetbyname()
[all …]
Dgetrrsetbyname.c.orig192 struct rrsetinfo *rrset = NULL;
263 /* initialize rrset */
264 rrset = calloc(1, sizeof(struct rrsetinfo));
265 if (rrset == NULL) {
269 rrset->rri_rdclass = response->query->class;
270 rrset->rri_rdtype = response->query->type;
271 rrset->rri_ttl = response->answer->ttl;
272 rrset->rri_nrdatas = response->header.ancount;
277 rrset->rri_flags |= RRSET_VALIDATED;
281 rrset->rri_name = strdup(response->answer->name);
[all …]