Searched refs:rr (Results 1 – 1 of 1) sorted by relevance
299 struct dns_rr *rr; in add_a_record() local313 2 + sizeof(*rr) + sizeof(*rdata); in add_a_record()328 rr = (struct dns_rr *)&buf[offset]; in add_a_record()329 rr->type = htons(DNS_RR_TYPE_A); in add_a_record()330 rr->class_ = htons(DNS_CLASS_IN | DNS_CLASS_FLUSH); in add_a_record()331 rr->ttl = htonl(ttl); in add_a_record()332 rr->rdlength = htons(sizeof(*rdata)); in add_a_record()333 offset += sizeof(*rr); in add_a_record()351 struct dns_rr *rr; in add_ptr_record() local388 sizeof(*rr) in add_ptr_record()[all …]