Lines Matching refs:cp
385 char *cp;
389 for (cp = optarg; *cp != '\0'; cp++) {
390 switch (*cp) {
1392 const u_char *cp;
1399 cp = *sp;
1402 if (cp >= ep)
1404 while (cp < ep) {
1405 i = *cp;
1406 if (i == 0 || cp != *sp) {
1412 cp++;
1414 if ((i & 0xc0) == 0xc0 && cp - base > (i & 0x3f)) {
1420 if (dnsdecode(&comp, cp, base, cresult,
1427 if (i > ep - cp)
1429 while (i-- > 0 && cp < ep) {
1431 isprint(*cp) ? "%c" : "\\%03o", *cp & 0xff);
1436 cp++;
1443 cp++;
1444 *sp = cp;
1465 u_char *cp = NULL, *dp, *end = buf + cc;
1561 cp = buf + off + ICMP6ECHOLEN + ICMP6ECHOTMLEN;
1563 for (i = 8; cp < end; ++i, ++cp, ++dp) {
1564 if (*cp != *dp) {
1565 (void)printf("\nwrong data byte #%d should be 0x%x but was 0x%x", i, *dp, *cp);
1614 cp = (u_char *)ni + ICMP6_NIRLEN;
1621 cp++; /* skip length */
1622 while (cp < end) {
1623 safeputc(*cp & 0xff);
1624 cp++;
1628 while (cp < end) {
1629 if (dnsdecode((const u_char **)&cp, end,
1639 if (cp + 1 <= end && !*cp &&
1642 cp++;
1692 cp = (u_char *)ni + ICMP6_NIRLEN;
1693 if (cp == end) {
1906 const u_char *cp, *end;
1916 cp = (u_char *)(ni + 1);
1929 while (cp < end) {
1930 clen = (size_t)(end - cp);
1940 memcpy(&cbit, cp, sizeof(cbit));
1944 cp += sizeof(cbit);
1952 memcpy(&v, cp + off, sizeof(v));
1959 cp += clen;
1970 u_char *cp = (u_char *)(ni + 1);
2005 ttl = (u_int32_t)ntohl(*(u_int32_t *)cp);
2006 cp += sizeof(u_int32_t);
2010 if (inet_ntop(AF_INET6, cp, ntop_buf, sizeof(ntop_buf)) ==
2028 cp += sizeof(struct in6_addr);
2222 const u_char *cp;
2382 cp = (const u_char *)(ni + 1);
2383 if (dnsdecode(&cp, end, NULL, dnsname,
2495 u_char *cp = (u_char *)ip6, nh;
2506 cp += hlen;
2507 while (end - cp >= 8) {
2511 hlen = (((struct ip6_hbh *)cp)->ip6h_len+1) << 3;
2512 nh = ((struct ip6_hbh *)cp)->ip6h_nxt;
2516 hlen = (((struct ip6_dest *)cp)->ip6d_len+1) << 3;
2517 nh = ((struct ip6_dest *)cp)->ip6d_nxt;
2522 nh = ((struct ip6_frag *)cp)->ip6f_nxt;
2526 hlen = (((struct ip6_rthdr *)cp)->ip6r_len+1) << 3;
2527 nh = ((struct ip6_rthdr *)cp)->ip6r_nxt;
2532 hlen = (((struct ah *)cp)->ah_len+2) << 2;
2533 nh = ((struct ah *)cp)->ah_nxt;
2538 *cp, *(cp + 1));
2545 (*cp * 256 + *(cp + 1)),
2546 (*(cp + 2) * 256 + *(cp + 3)));
2550 (*cp * 256 + *(cp + 1)),
2551 (*(cp + 2) * 256 + *(cp + 3)));
2558 if ((cp += hlen) >= end)
2561 if (end - cp < 8)
2577 char *cp;
2579 for (cp = patp; *cp; cp++)
2580 if (!isxdigit((unsigned char)*cp))