Lines Matching refs:rdlength

874         size_t saved_size, rdlength_offset, end, rdlength, rds;  in dns_packet_append_rr()  local
1192 rdlength = p->size - rdlength_offset - sizeof(uint16_t); in dns_packet_append_rr()
1193 if (rdlength > 0xFFFF) { in dns_packet_append_rr()
1200 r = dns_packet_append_uint16(p, rdlength, NULL); in dns_packet_append_rr()
1688 uint16_t rdlength; in dns_packet_read_rr() local
1712 r = dns_packet_read_uint16(p, &rdlength, NULL); in dns_packet_read_rr()
1716 if (p->rindex + rdlength > p->size) in dns_packet_read_rr()
1753 if (rdlength <= 0) { in dns_packet_read_rr()
1760 while (p->rindex < offset + rdlength) { in dns_packet_read_rr()
1893 if (rdlength < 4) in dns_packet_read_rr()
1896 r = dns_packet_read_memdup(p, rdlength - 4, in dns_packet_read_rr()
1918 if (rdlength < 2) in dns_packet_read_rr()
1921 r = dns_packet_read_memdup(p, rdlength - 2, in dns_packet_read_rr()
1945 if (rdlength < 4) in dns_packet_read_rr()
1948 r = dns_packet_read_memdup(p, rdlength - 4, in dns_packet_read_rr()
1992 if (rdlength + offset < p->rindex) in dns_packet_read_rr()
1995 r = dns_packet_read_memdup(p, offset + rdlength - p->rindex, in dns_packet_read_rr()
2019 … r = dns_packet_read_type_windows(p, &rr->nsec.types, offset + rdlength - p->rindex, NULL); in dns_packet_read_rr()
2064 … r = dns_packet_read_type_windows(p, &rr->nsec3.types, offset + rdlength - p->rindex, NULL); in dns_packet_read_rr()
2084 if (rdlength < 3) in dns_packet_read_rr()
2087 r = dns_packet_read_memdup(p, rdlength - 3, in dns_packet_read_rr()
2107 if (rdlength + offset < p->rindex) in dns_packet_read_rr()
2111 rdlength + offset - p->rindex, in dns_packet_read_rr()
2120 … r = dns_packet_read_memdup(p, rdlength, &rr->generic.data, &rr->generic.data_size, NULL); in dns_packet_read_rr()
2126 if (p->rindex != offset + rdlength) in dns_packet_read_rr()
2455 uint16_t type, rdlength; in patch_rr() local
2481 r = dns_packet_read_uint16(p, &rdlength, NULL); in patch_rr()
2485 r = dns_packet_read(p, rdlength, NULL, NULL); in patch_rr()