Lines Matching defs:rdlength
524 static int parse_rdata(AvahiDnsPacket *p, AvahiRecord *r, uint16_t rdlength) {
571 if (rdlength > 0) {
572 if (avahi_string_list_parse(avahi_dns_packet_get_rptr(p), rdlength, &r->data.txt.string_list) < 0)
575 if (avahi_dns_packet_skip(p, rdlength) < 0)
604 if (rdlength > 0) {
606 r->data.generic.data = avahi_memdup(avahi_dns_packet_get_rptr(p), rdlength);
607 r->data.generic.size = rdlength;
609 if (avahi_dns_packet_skip(p, rdlength) < 0)
617 if ((const uint8_t*) avahi_dns_packet_get_rptr(p) - (const uint8_t*) start != rdlength)
627 uint16_t rdlength;
636 avahi_dns_packet_consume_uint16(p, &rdlength) < 0 ||
637 p->rindex + rdlength > p->size)
647 if (parse_rdata(p, r, rdlength) < 0)