Lines Matching refs:dohlen

502 static DOHcode doh_skipqname(const unsigned char *doh, size_t dohlen,  in doh_skipqname()  argument
507 if(dohlen < (*indexp + 1)) in doh_skipqname()
512 if(dohlen < (*indexp + 2)) in doh_skipqname()
519 if(dohlen < (*indexp + 1 + length)) in doh_skipqname()
586 static DOHcode doh_store_cname(const unsigned char *doh, size_t dohlen, in doh_store_cname() argument
598 if(index >= dohlen) in doh_store_cname()
604 if((index + 1) >= dohlen) in doh_store_cname()
622 if((index + length) > dohlen) in doh_store_cname()
637 size_t dohlen, in doh_rdata() argument
669 rc = doh_store_cname(doh, dohlen, (unsigned int)index, d); in doh_rdata()
694 size_t dohlen, in doh_resp_decode() argument
708 if(dohlen < 12) in doh_resp_decode()
718 rc = doh_skipqname(doh, dohlen, &index); in doh_resp_decode()
721 if(dohlen < (index + 4)) in doh_resp_decode()
732 rc = doh_skipqname(doh, dohlen, &index); in doh_resp_decode()
736 if(dohlen < (index + 2)) in doh_resp_decode()
747 if(dohlen < (index + 2)) in doh_resp_decode()
754 if(dohlen < (index + 4)) in doh_resp_decode()
762 if(dohlen < (index + 2)) in doh_resp_decode()
767 if(dohlen < (index + rdlength)) in doh_resp_decode()
770 rc = doh_rdata(doh, dohlen, rdlength, type, (int)index, d); in doh_resp_decode()
779 rc = doh_skipqname(doh, dohlen, &index); in doh_resp_decode()
783 if(dohlen < (index + 8)) in doh_resp_decode()
788 if(dohlen < (index + 2)) in doh_resp_decode()
793 if(dohlen < (index + rdlength)) in doh_resp_decode()
801 rc = doh_skipqname(doh, dohlen, &index); in doh_resp_decode()
805 if(dohlen < (index + 8)) in doh_resp_decode()
810 if(dohlen < (index + 2)) in doh_resp_decode()
815 if(dohlen < (index + rdlength)) in doh_resp_decode()
821 if(index != dohlen) in doh_resp_decode()