Home | History | Annotate | Download | only in net

Lines Matching defs:cp

1029 	char *cp, *hostname2 = NULL, *scope, *addr;
1050 cp = strchr(hostname, SCOPE_DELIMITER);
1051 if (cp == NULL)
1061 hostname2[cp - hostname] = '\0';
1063 scope = cp + 1;
1312 const u_char *cp;
1348 cp = answer->buf + HFIXEDSZ;
1353 n = dn_expand(answer->buf, eom, cp, bp, ep - bp);
1358 cp += n + QFIXEDSZ;
1376 while (ancount-- > 0 && cp < eom && !had_error) {
1377 n = dn_expand(answer->buf, eom, cp, bp, ep - bp);
1382 cp += n; /* name */
1383 type = _getshort(cp);
1384 cp += INT16SZ; /* type */
1385 class = _getshort(cp);
1386 cp += INT16SZ + INT32SZ; /* class, TTL */
1387 n = _getshort(cp);
1388 cp += INT16SZ; /* len */
1391 cp += n;
1396 n = dn_expand(answer->buf, eom, cp, tbuf, sizeof tbuf);
1401 cp += n;
1415 cp += n;
1424 cp += n;
1433 cp += n;
1437 cp += n;
1441 cp += n;
1446 memcpy(&in6, cp, IN6ADDRSZ);
1448 cp += n;
1465 cp += n;
1468 cur->ai_next = get_ai(&ai, afd, (const char *)cp);
1473 cp += n;
2047 char *cp, *tname, *cname;
2064 if (!(cp = strpbrk(p, "#\n")))
2066 *cp = '\0';
2067 if (!(cp = strpbrk(p, " \t")))
2069 *cp++ = '\0';
2073 while (cp && *cp) {
2074 if (*cp == ' ' || *cp == '\t') {
2075 cp++;
2079 cname = cp;
2080 tname = cp;
2081 if ((cp = strpbrk(cp, " \t")) != NULL)
2082 *cp++ = '\0';
2260 const char *cp, * const *domain;
2274 for (cp = name; *cp; cp++)
2275 dots += (*cp == '.');
2277 if (cp > name && *--cp == '.')
2286 if (!dots && (cp = __hostalias(name)) != NULL) {
2287 ret = res_queryN(cp, target, res);