Lines Matching defs:cp
361 char *cp;
365 for (cp = optarg; *cp != '\0'; cp++) {
366 switch (*cp) {
1368 const u_char *cp;
1375 cp = *sp;
1378 if (cp >= ep)
1380 while (cp < ep) {
1381 i = *cp;
1382 if (i == 0 || cp != *sp) {
1388 cp++;
1390 if ((i & 0xc0) == 0xc0 && cp - base > (i & 0x3f)) {
1396 if (dnsdecode(&comp, cp, base, cresult,
1403 if (i > ep - cp)
1405 while (i-- > 0 && cp < ep) {
1407 isprint(*cp) ? "%c" : "\\%03o", *cp & 0xff);
1412 cp++;
1419 cp++;
1420 *sp = cp;
1441 u_char *cp = NULL, *dp, *end = buf + cc;
1537 cp = buf + off + ICMP6ECHOLEN + ICMP6ECHOTMLEN;
1539 for (i = 8; cp < end; ++i, ++cp, ++dp) {
1540 if (*cp != *dp) {
1541 (void)printf("\nwrong data byte #%d should be 0x%x but was 0x%x", i, *dp, *cp);
1590 cp = (u_char *)ni + ICMP6_NIRLEN;
1597 cp++; /* skip length */
1598 while (cp < end) {
1599 safeputc(*cp & 0xff);
1600 cp++;
1604 while (cp < end) {
1605 if (dnsdecode((const u_char **)&cp, end,
1615 if (cp + 1 <= end && !*cp &&
1618 cp++;
1668 cp = (u_char *)ni + ICMP6_NIRLEN;
1669 if (cp == end) {
1882 const u_char *cp, *end;
1892 cp = (u_char *)(ni + 1);
1905 while (cp < end) {
1906 clen = (size_t)(end - cp);
1916 memcpy(&cbit, cp, sizeof(cbit));
1920 cp += sizeof(cbit);
1928 memcpy(&v, cp + off, sizeof(v));
1935 cp += clen;
1946 u_char *cp = (u_char *)(ni + 1);
1981 ttl = (u_int32_t)ntohl(*(u_int32_t *)cp);
1982 cp += sizeof(u_int32_t);
1986 if (inet_ntop(AF_INET6, cp, ntop_buf, sizeof(ntop_buf)) ==
2004 cp += sizeof(struct in6_addr);
2198 const u_char *cp;
2358 cp = (const u_char *)(ni + 1);
2359 if (dnsdecode(&cp, end, NULL, dnsname,
2471 u_char *cp = (u_char *)ip6, nh;
2482 cp += hlen;
2483 while (end - cp >= 8) {
2487 hlen = (((struct ip6_hbh *)cp)->ip6h_len+1) << 3;
2488 nh = ((struct ip6_hbh *)cp)->ip6h_nxt;
2492 hlen = (((struct ip6_dest *)cp)->ip6d_len+1) << 3;
2493 nh = ((struct ip6_dest *)cp)->ip6d_nxt;
2498 nh = ((struct ip6_frag *)cp)->ip6f_nxt;
2502 hlen = (((struct ip6_rthdr *)cp)->ip6r_len+1) << 3;
2503 nh = ((struct ip6_rthdr *)cp)->ip6r_nxt;
2508 hlen = (((struct ah *)cp)->ah_len+2) << 2;
2509 nh = ((struct ah *)cp)->ah_nxt;
2514 *cp, *(cp + 1));
2521 (*cp * 256 + *(cp + 1)),
2522 (*(cp + 2) * 256 + *(cp + 3)));
2526 (*cp * 256 + *(cp + 1)),
2527 (*(cp + 2) * 256 + *(cp + 3)));
2534 if ((cp += hlen) >= end)
2537 if (end - cp < 8)
2553 char *cp;
2555 for (cp = patp; *cp; cp++)
2556 if (!isxdigit((unsigned char)*cp))