Lines Matching defs:cp
286 skipName (cp, endOfMsg)
287 u_char *cp;
292 if ((n = dn_skipname (cp, endOfMsg)) < 0)
300 * skipToData -- This routine advances the cp pointer to the *
305 skipToData (cp, type, class, ttl, dlen, endOfMsg)
306 u_char *cp;
313 u_char *tmp_cp = cp; /* temporary version of cp */
327 return (tmp_cp - cp);
355 u_char *cp; /* character pointer to parse DNS packet */
399 cp = response.buf + sizeof (HEADER);
408 * After this calculation, cp points to the start of the
411 cp += skipName (cp, endOfMsg) + QFIXEDSZ;
416 && (cp < endOfMsg))
421 cp += skipToData (cp, &type, &class, &ttl, &dlen, endOfMsg);
428 loc_ntoa (cp, result);
440 cp, /* Position in the packet */
463 bcopy ((char *) cp, (char *) &addr, INADDRSZ);
475 cp += dlen;
499 u_char *cp; /* character pointer to parse DNS packet */
542 cp = response.buf + sizeof (HEADER);
551 * After this calculation, cp points to the start of the
554 cp += skipName (cp, endOfMsg) + QFIXEDSZ;
559 && (cp < endOfMsg))
564 cp += skipToData (cp, &type, &class, &ttl, &dlen, endOfMsg);
568 bcopy ((char *) cp, (char *) &addr, INADDRSZ);
586 cp += dlen;