Home | History | Annotate | Download | only in netbsd

Lines Matching refs:cp

155 		cp += (x); \
156 if (cp > eom) { \
175 const u_char *cp;
212 cp = answer->buf;
218 n = dn_expand(answer->buf, eom, cp, bp, ep - bp);
247 while (ancount-- > 0 && cp < eom && !had_error) {
248 n = dn_expand(answer->buf, eom, cp, bp, ep - bp);
253 cp += n; /* name */
254 BOUNDS_CHECK(cp, 3 * INT16SZ + INT32SZ);
255 type = _getshort(cp);
256 cp += INT16SZ; /* type */
257 class = _getshort(cp);
258 cp += INT16SZ + INT32SZ; /* class, TTL */
259 n = _getshort(cp);
260 cp += INT16SZ; /* len */
261 BOUNDS_CHECK(cp, n);
262 erdata = cp + n;
265 cp += n;
271 n = dn_expand(answer->buf, eom, cp, tbuf, sizeof tbuf);
276 cp += n;
277 if (cp != erdata) {
301 n = dn_expand(answer->buf, eom, cp, tbuf, sizeof tbuf);
306 cp += n;
307 if (cp != erdata) {
328 cp += n;
336 cp += n;
339 n = dn_expand(answer->buf, eom, cp, bp, ep - bp);
345 cp += n;
346 if (cp != erdata) {
384 cp += n;
388 cp += n;
393 memcpy(&in6, cp, IN6ADDRSZ);
395 cp += n;
419 cp += n;
422 (void)memcpy(*hap++ = bp, cp, (size_t)n);
424 cp += n;
425 if (cp != erdata) {
520 const char *cp;
556 if (!strchr(name, '.') && (cp = __hostalias(name)))
557 name = cp;
564 for (cp = name;; ++cp) {
565 if (!*cp) {
566 if (*--cp == '.')
593 if (!isdigit((u_char) *cp) && *cp != '.')
598 for (cp = name;; ++cp) {
599 if (!*cp) {
600 if (*--cp == '.')
625 if (!isxdigit((u_char) *cp) && *cp != ':' && *cp != '.')
723 char *cp, **q;
738 if (!(cp = strpbrk(p, "#\n")))
740 *cp = '\0';
741 if (!(cp = strpbrk(p, " \t")))
743 *cp++ = '\0';
774 while (*cp == ' ' || *cp == '\t')
775 cp++;
776 rs->host.h_name = cp;
778 if ((cp = strpbrk(cp, " \t")) != NULL)
779 *cp++ = '\0';
780 while (cp && *cp) {
781 if (*cp == ' ' || *cp == '\t') {
782 cp++;
786 *q++ = cp;
787 if ((cp = strpbrk(cp, " \t")) != NULL)
788 *cp++ = '\0';
836 char *tmpbuf, *ptr, **cp;
850 for (cp = p->h_aliases; *cp != NULL; cp++)
851 if (strcasecmp(*cp, name) == 0)
853 if (*cp == NULL) continue;
863 for (cp = p->h_aliases; *cp != NULL; cp++)
864 bufsize += strlen(*cp) + 1;
874 for (cp = p->h_aliases; *cp != NULL; cp++) {
875 src = *cp;
903 cp = rs->host_aliases;
905 *cp++ = ptr;
909 *cp = NULL;
912 cp = rs->h_addr_ptrs;
914 *cp++ = ptr;
917 *cp = NULL;