Lines Matching refs:rindex

56     p->size = p->rindex = AVAHI_DNS_PACKET_HEADER_SIZE;  in avahi_dns_packet_new()
96 saved_rindex = p->rindex; in avahi_dns_packet_new_reply()
97 p->rindex = AVAHI_DNS_PACKET_HEADER_SIZE; in avahi_dns_packet_new_reply()
109 p->rindex = saved_rindex; in avahi_dns_packet_new_reply()
424 if ((r = consume_labels(p, p->rindex, ret_name, l)) < 0) in avahi_dns_packet_consume_name()
427 p->rindex += r; in avahi_dns_packet_consume_name()
437 if (p->rindex + sizeof(uint16_t) > p->size) in avahi_dns_packet_consume_uint16()
440 d = (uint8_t*) (AVAHI_DNS_PACKET_DATA(p) + p->rindex); in avahi_dns_packet_consume_uint16()
442 p->rindex += sizeof(uint16_t); in avahi_dns_packet_consume_uint16()
453 if (p->rindex + sizeof(uint32_t) > p->size) in avahi_dns_packet_consume_uint32()
456 d = (uint8_t*) (AVAHI_DNS_PACKET_DATA(p) + p->rindex); in avahi_dns_packet_consume_uint32()
458 p->rindex += sizeof(uint32_t); in avahi_dns_packet_consume_uint32()
468 if (p->rindex + l > p->size) in avahi_dns_packet_consume_bytes()
471 memcpy(ret_data, AVAHI_DNS_PACKET_DATA(p) + p->rindex, l); in avahi_dns_packet_consume_bytes()
472 p->rindex += l; in avahi_dns_packet_consume_bytes()
484 if (p->rindex >= p->size) in avahi_dns_packet_consume_string()
487 k = AVAHI_DNS_PACKET_DATA(p)[p->rindex]; in avahi_dns_packet_consume_string()
489 if (p->rindex+1+k > p->size) in avahi_dns_packet_consume_string()
495 memcpy(ret_string, AVAHI_DNS_PACKET_DATA(p)+p->rindex+1, l-1); in avahi_dns_packet_consume_string()
498 p->rindex += 1+k; in avahi_dns_packet_consume_string()
506 if (p->rindex > p->size) in avahi_dns_packet_get_rptr()
509 return AVAHI_DNS_PACKET_DATA(p) + p->rindex; in avahi_dns_packet_get_rptr()
515 if (p->rindex + length > p->size) in avahi_dns_packet_skip()
518 p->rindex += length; in avahi_dns_packet_skip()
635 p->rindex + rdlength > p->size) in avahi_dns_packet_consume_record()
845 p.rindex = 0; in avahi_rdata_parse()
865 p.size = p.rindex = 0; in avahi_rdata_serialize()