Lines Matching refs:rdata
306 struct dns_a_rdata *rdata; in add_a_record() local
319 2 + sizeof(*rr) + sizeof(*rdata); in add_a_record()
338 rr->rdlength = htons(sizeof(*rdata)); in add_a_record()
341 rdata = (struct dns_a_rdata *)&buf[offset]; in add_a_record()
342 rdata->address = htonl(addr); in add_a_record()
343 offset += sizeof(*rdata); in add_a_record()
523 struct dns_aaaa_rdata *rdata; in add_aaaa_record() local
536 DNS_POINTER_SIZE + sizeof(*rr) + sizeof(*rdata); in add_aaaa_record()
555 rr->rdlength = htons(sizeof(*rdata)); in add_aaaa_record()
558 rdata = (struct dns_aaaa_rdata *)&buf[offset]; in add_aaaa_record()
559 memcpy(rdata->address, addr, sizeof(*rdata)); in add_aaaa_record()
560 offset += sizeof(*rdata); in add_aaaa_record()
574 struct dns_srv_rdata *rdata; in add_srv_record() local
595 + sizeof(*rdata) in add_srv_record()
620 rr->rdlength = htons(sizeof(*rdata) + DNS_LABEL_LEN_SIZE in add_srv_record()
625 rdata = (struct dns_srv_rdata *)&buf[offset]; in add_srv_record()
626 rdata->priority = 0; in add_srv_record()
627 rdata->weight = 0; in add_srv_record()
628 rdata->port = *(inst->port); in add_srv_record()
629 offset += sizeof(*rdata); in add_srv_record()