Lines Matching refs:cp
481 u_char *cp;
485 cp = (u_char *)dp + length;
487 for (; (u_char *)in6 < cp; in6++) {
606 const u_char *cp, *ep;
612 cp = bp;
616 while (cp < ep) {
617 op = (struct nd_opt_hdr *)cp;
624 if (cp + (op->nd_opt_len << 3) > ep)
637 print_lladdr(cp + 2, l);
642 print_lladdr(cp + 2, l);
706 print_unknown_data(cp+2,"\n\t ", (op->nd_opt_len << 3) - 2); /* skip option header */
713 print_unknown_data(cp+2,"\n\t ", (op->nd_opt_len << 3) - 2); /* skip option header */
715 cp += op->nd_opt_len << 3;
867 dnsname_print(const u_char *cp, const u_char *ep)
873 while (cp < ep) {
874 i = *cp++;
876 if (i > ep - cp) {
880 while (i-- && cp < ep) {
881 safeputchar(*cp);
882 cp++;
884 if (cp + 1 < ep && *cp)
887 if (cp == ep) {
890 } else if (cp + 1 == ep && *cp == '\0') {
907 const u_char *cp;
996 cp = (const u_char *)(ni6 + 1);
997 if (cp[0] == ep - cp - 1) {
1001 cp++;
1003 while (cp < ep) {
1004 safeputchar(*cp);
1005 cp++;
1009 dnsname_print(cp, ep);
1092 cp = (const u_char *)(ni6 + 1) + 4;
1093 if (cp[0] == ep - cp - 1) {
1097 cp++;
1099 while (cp < ep) {
1100 safeputchar(*cp);
1101 cp++;
1105 dnsname_print(cp, ep);
1155 const char *cp;
1164 cp = (const char *)(rr6 + 1);
1204 match = (struct rr_pco_match *)cp;
1205 cp = (const char *)(match + 1);
1238 use = (struct rr_pco_use *)cp;
1239 cp = (const char *)(use + 1);