Lines Matching refs:pkt
75 parse_create_qinfo(sldns_buffer* pkt, struct msg_parse* msg,
84 dname_pkt_copy(pkt, qinf->qname, msg->qname);
183 rdata_copy(sldns_buffer* pkt, struct packed_rrset_data* data, uint8_t* to,
215 sldns_buffer_set_position(pkt, (size_t)
216 (rr->ttl_data - sldns_buffer_begin(pkt) + sizeof(uint32_t)));
223 pkt_len = sldns_buffer_read_u16(pkt);
224 if(sldns_buffer_remaining(pkt) < pkt_len)
236 oldpos = sldns_buffer_position(pkt);
237 dname_pkt_copy(pkt, to,
238 sldns_buffer_current(pkt));
239 to += pkt_dname_len(pkt);
240 pkt_len -= sldns_buffer_position(pkt)-oldpos;
245 len = sldns_buffer_current(pkt)[0] + 1;
253 memmove(to, sldns_buffer_current(pkt), len);
255 sldns_buffer_skip(pkt, (ssize_t)len);
263 memmove(to, sldns_buffer_current(pkt), pkt_len);
270 parse_rr_copy(sldns_buffer* pkt, struct rrset_parse* pset,
292 if(!rdata_copy(pkt, data, data->rr_data[i], rr,
303 if(!rdata_copy(pkt, data, data->rr_data[i], rr,
313 parse_create_rrset(sldns_buffer* pkt, struct rrset_parse* pset,
331 if(!parse_rr_copy(pkt, pset, *data)) {
377 parse_copy_decompress_rrset(sldns_buffer* pkt, struct msg_parse* msg,
392 dname_pkt_copy(pkt, pk->rk.dname, pset->dname);
397 if(!parse_create_rrset(pkt, pset, &data, region))
408 * @param pkt: the packet for compression pointer resolution.
415 parse_copy_decompress(sldns_buffer* pkt, struct msg_parse* msg,
428 if(!parse_copy_decompress_rrset(pkt, msg, pset, region,
443 parse_create_msg(sldns_buffer* pkt, struct msg_parse* msg,
447 log_assert(pkt && msg);
448 if(!parse_create_qinfo(pkt, msg, qinf, region))
456 if(!parse_copy_decompress(pkt, msg, *rep, region)) {
463 int reply_info_parse(sldns_buffer* pkt, struct alloc_cache* alloc,
479 sldns_buffer_set_position(pkt, 0);
480 if((ret = parse_packet(pkt, msg, region)) != 0) {
488 if(!parse_create_msg(pkt, msg, alloc, qinf, rep, NULL)) {
930 parse_reply_in_temp_region(sldns_buffer* pkt, struct regional* region,
939 sldns_buffer_set_position(pkt, 0);
940 if(parse_packet(pkt, msg, region) != 0){
943 if(!parse_create_msg(pkt, msg, NULL, qi, &rep, region)) {