Lines Matching refs:alloc
200 perftestpkt(sldns_buffer* pkt, struct alloc_cache* alloc, sldns_buffer* out, in perftestpkt() argument
218 ret = reply_info_parse(pkt, alloc, &qi, &rep, region, &edns); in perftestpkt()
231 reply_info_parsedelete(rep, alloc); in perftestpkt()
314 testpkt(sldns_buffer* pkt, struct alloc_cache* alloc, sldns_buffer* out, in testpkt() argument
332 ret = reply_info_parse(pkt, alloc, &qi, &rep, region, &edns); in testpkt()
377 reply_info_parsedelete(rep, alloc); in testpkt()
383 simpletest(sldns_buffer* pkt, struct alloc_cache* alloc, sldns_buffer* out) in simpletest() argument
386 testpkt(pkt, alloc, out, in simpletest()
390 testpkt(pkt, alloc, out, in simpletest()
402 testpkt(pkt, alloc, out, in simpletest()
432 perftestpkt(pkt, alloc, out, in simpletest()
440 testfromfile(sldns_buffer* pkt, struct alloc_cache* alloc, sldns_buffer* out, in testfromfile() argument
459 testpkt(pkt, alloc, out, buf); in testfromfile()
467 testfromdrillfile(sldns_buffer* pkt, struct alloc_cache* alloc, in testfromdrillfile() argument
484 testpkt(pkt, alloc, out, buf); in testfromdrillfile()
494 testpkt(pkt, alloc, out, buf); in testfromdrillfile()
508 struct alloc_cache super_a, alloc; in msgparse_test() local
512 alloc_init(&alloc, &super_a, 2); in msgparse_test()
515 simpletest(pkt, &alloc, out); in msgparse_test()
517 testfromfile(pkt, &alloc, out, SRCDIRSTR "/testdata/test_packets.1"); in msgparse_test()
518 testfromfile(pkt, &alloc, out, SRCDIRSTR "/testdata/test_packets.2"); in msgparse_test()
519 testfromfile(pkt, &alloc, out, SRCDIRSTR "/testdata/test_packets.3"); in msgparse_test()
521 testfromdrillfile(pkt, &alloc, out, SRCDIRSTR "/testdata/test_packets.4"); in msgparse_test()
522 testfromdrillfile(pkt, &alloc, out, SRCDIRSTR "/testdata/test_packets.5"); in msgparse_test()
525 testfromdrillfile(pkt, &alloc, out, SRCDIRSTR "/testdata/test_packets.6"); in msgparse_test()
527 testfromdrillfile(pkt, &alloc, out, SRCDIRSTR "/testdata/test_packets.7"); in msgparse_test()
532 testfromdrillfile(pkt, &alloc, out, SRCDIRSTR "/testdata/test_packets.8"); in msgparse_test()
537 testfromdrillfile(pkt, &alloc, out, SRCDIRSTR "/testdata/test_packets.9"); in msgparse_test()
542 alloc_clear(&alloc); in msgparse_test()