Lines Matching refs:start
287 static int dns_packet_extend(DnsPacket *p, size_t add, void **ret, size_t *start) {
320 if (start)
321 *start = p->size;
352 int dns_packet_append_blob(DnsPacket *p, const void *d, size_t l, size_t *start) {
358 r = dns_packet_extend(p, l, &q, start);
366 int dns_packet_append_uint8(DnsPacket *p, uint8_t v, size_t *start) {
372 r = dns_packet_extend(p, sizeof(uint8_t), &d, start);
381 int dns_packet_append_uint16(DnsPacket *p, uint16_t v, size_t *start) {
387 r = dns_packet_extend(p, sizeof(uint16_t), &d, start);
396 int dns_packet_append_uint32(DnsPacket *p, uint32_t v, size_t *start) {
402 r = dns_packet_extend(p, sizeof(uint32_t), &d, start);
411 int dns_packet_append_string(DnsPacket *p, const char *s, size_t *start) {
415 return dns_packet_append_raw_string(p, s, strlen(s), start);
418 int dns_packet_append_raw_string(DnsPacket *p, const void *s, size_t size, size_t *start) {
428 r = dns_packet_extend(p, 1 + size, &d, start);
440 int dns_packet_append_label(DnsPacket *p, const char *d, size_t l, bool canonical_candidate, size_t *start) {
455 r = dns_packet_extend(p, 1 + l, (void**) &w, start);
483 size_t *start) {
549 if (start)
550 *start = saved_size;
559 int dns_packet_append_key(DnsPacket *p, const DnsResourceKey *k, size_t *start) {
580 if (start)
581 *start = saved_size;
590 static int dns_packet_append_type_window(DnsPacket *p, uint8_t window, uint8_t length, const uint8_t *types, size_t *start) {
612 if (start)
613 *start = saved_size;
621 static int dns_packet_append_types(DnsPacket *p, Bitmap *types, size_t *start) {
657 if (start)
658 *start = saved_size;
667 int dns_packet_append_opt(DnsPacket *p, uint16_t max_udp_size, bool edns0_do, size_t *start) {
750 if (start)
751 *start = saved_size;
781 int dns_packet_append_rr(DnsPacket *p, const DnsResourceRecord *rr, size_t *start, size_t *rdata_start) {
1100 if (start)
1101 *start = saved_size;
1113 int dns_packet_read(DnsPacket *p, size_t sz, const void **ret, size_t *start) {
1122 if (start)
1123 *start = p->rindex;
1137 int dns_packet_read_blob(DnsPacket *p, void *d, size_t sz, size_t *start) {
1144 r = dns_packet_read(p, sz, &q, start);
1158 size_t start;
1164 r = dns_packet_read(p, size, &src, &start);
1183 *ret_start = start;
1188 int dns_packet_read_uint8(DnsPacket *p, uint8_t *ret, size_t *start) {
1194 r = dns_packet_read(p, sizeof(uint8_t), &d, start);
1202 int dns_packet_read_uint16(DnsPacket *p, uint16_t *ret, size_t *start) {
1208 r = dns_packet_read(p, sizeof(uint16_t), &d, start);
1217 int dns_packet_read_uint32(DnsPacket *p, uint32_t *ret, size_t *start) {
1223 r = dns_packet_read(p, sizeof(uint32_t), &d, start);
1232 int dns_packet_read_string(DnsPacket *p, char **ret, size_t *start) {
1270 if (start)
1271 *start = saved_rindex;
1280 int dns_packet_read_raw_string(DnsPacket *p, const void **ret, size_t *size, size_t *start) {
1299 if (start)
1300 *start = saved_rindex;
1313 size_t *start) {
1403 if (start)
1404 *start = saved_rindex;
1413 static int dns_packet_read_type_window(DnsPacket *p, Bitmap **types, size_t *start) {
1481 if (start)
1482 *start = saved_rindex;
1490 static int dns_packet_read_type_windows(DnsPacket *p, Bitmap **types, size_t size, size_t *start) {
1513 if (start)
1514 *start = saved_rindex;
1522 int dns_packet_read_key(DnsPacket *p, DnsResourceKey **ret, bool *ret_cache_flush, size_t *start) {
1567 if (start)
1568 *start = saved_rindex;
1582 int dns_packet_read_rr(DnsPacket *p, DnsResourceRecord **ret, bool *ret_cache_flush, size_t *start) {
2040 if (start)
2041 *start = saved_rindex;