Home | History | Annotate | Download | only in net

Lines Matching defs:cp

1021 	char *cp, *hostname2 = NULL, *scope, *addr;
1042 cp = strchr(hostname, SCOPE_DELIMITER);
1043 if (cp == NULL)
1053 hostname2[cp - hostname] = '\0';
1055 scope = cp + 1;
1304 const u_char *cp;
1340 cp = answer->buf + HFIXEDSZ;
1345 n = dn_expand(answer->buf, eom, cp, bp, ep - bp);
1350 cp += n + QFIXEDSZ;
1368 while (ancount-- > 0 && cp < eom && !had_error) {
1369 n = dn_expand(answer->buf, eom, cp, bp, ep - bp);
1374 cp += n; /* name */
1375 type = _getshort(cp);
1376 cp += INT16SZ; /* type */
1377 class = _getshort(cp);
1378 cp += INT16SZ + INT32SZ; /* class, TTL */
1379 n = _getshort(cp);
1380 cp += INT16SZ; /* len */
1383 cp += n;
1388 n = dn_expand(answer->buf, eom, cp, tbuf, sizeof tbuf);
1393 cp += n;
1407 cp += n;
1416 cp += n;
1425 cp += n;
1429 cp += n;
1433 cp += n;
1438 memcpy(&in6, cp, IN6ADDRSZ);
1440 cp += n;
1457 cp += n;
1460 cur->ai_next = get_ai(&ai, afd, (const char *)cp);
1465 cp += n;
2052 char *cp, *tname, *cname;
2069 if (!(cp = strpbrk(p, "#\n")))
2071 *cp = '\0';
2072 if (!(cp = strpbrk(p, " \t")))
2074 *cp++ = '\0';
2078 while (cp && *cp) {
2079 if (*cp == ' ' || *cp == '\t') {
2080 cp++;
2084 cname = cp;
2085 tname = cp;
2086 if ((cp = strpbrk(cp, " \t")) != NULL)
2087 *cp++ = '\0';
2265 const char *cp, * const *domain;
2279 for (cp = name; *cp; cp++)
2280 dots += (*cp == '.');
2282 if (cp > name && *--cp == '.')
2291 if (!dots && (cp = __hostalias(name)) != NULL) {
2292 ret = res_queryN(cp, target, res);