Home | History | Annotate | Download | only in openbsd-compat

Lines Matching refs:cp

93 #define GETSHORT(s, cp) { \
94 register u_char *t_cp = (u_char *)(cp); \
98 (cp) += INT16SZ; \
103 #define GETLONG(l, cp) { \
104 register u_char *t_cp = (u_char *)(cp); \
110 (cp) += INT32SZ; \
388 const u_char *cp;
396 cp = answer;
399 memcpy(&resp->header, cp, HFIXEDSZ);
400 cp += HFIXEDSZ;
415 resp->query = parse_dns_qsection(answer, size, &cp,
423 resp->answer = parse_dns_rrsection(answer, size, &cp,
431 resp->authority = parse_dns_rrsection(answer, size, &cp,
439 resp->additional = parse_dns_rrsection(answer, size, &cp,
450 parse_dns_qsection(const u_char *answer, int size, const u_char **cp, int count)
470 length = dn_expand(answer, answer + size, *cp, name,
481 *cp += length;
484 curr->type = _getshort(*cp);
485 *cp += INT16SZ;
488 curr->class = _getshort(*cp);
489 *cp += INT16SZ;
496 parse_dns_rrsection(const u_char *answer, int size, const u_char **cp,
517 length = dn_expand(answer, answer + size, *cp, name,
528 *cp += length;
531 curr->type = _getshort(*cp);
532 *cp += INT16SZ;
535 curr->class = _getshort(*cp);
536 *cp += INT16SZ;
539 curr->ttl = _getlong(*cp);
540 *cp += INT32SZ;
543 curr->size = _getshort(*cp);
544 *cp += INT16SZ;
552 memcpy(curr->rdata, *cp, curr->size);
553 *cp += curr->size;