Lines Matching refs:cp
350 const uint8_t* cp = buf + HFIXEDSZ; in res_nameinquery() local
355 int n = dn_expand(buf, eom, cp, tname, sizeof tname); in res_nameinquery()
357 cp += n; in res_nameinquery()
358 if (cp + 2 * INT16SZ > eom) return (-1); in res_nameinquery()
359 int ttype = ntohs(*reinterpret_cast<const uint16_t*>(cp)); in res_nameinquery()
360 cp += INT16SZ; in res_nameinquery()
361 int tclass = ntohs(*reinterpret_cast<const uint16_t*>(cp)); in res_nameinquery()
362 cp += INT16SZ; in res_nameinquery()
381 const uint8_t* cp = buf1 + HFIXEDSZ; in res_queriesmatch() local
397 int n = dn_expand(buf1, eom1, cp, tname, sizeof tname); in res_queriesmatch()
399 cp += n; in res_queriesmatch()
400 if (cp + 2 * INT16SZ > eom1) return (-1); in res_queriesmatch()
401 int ttype = ntohs(*reinterpret_cast<const uint16_t*>(cp)); in res_queriesmatch()
402 cp += INT16SZ; in res_queriesmatch()
403 int tclass = ntohs(*reinterpret_cast<const uint16_t*>(cp)); in res_queriesmatch()
404 cp += INT16SZ; in res_queriesmatch()
668 uint8_t* cp; in send_vc() local
773 cp = ans; in send_vc()
775 while ((n = read(statp->tcp_nssock, (char*)cp, (size_t)len)) > 0) { in send_vc()
776 cp += n; in send_vc()
814 cp = ans; in send_vc()
815 while (len != 0 && (n = read(statp->tcp_nssock, (char*)cp, (size_t)len)) > 0) { in send_vc()
816 cp += n; in send_vc()