Lines Matching defs:cp
888 const u_char *cp, const u_char *ep)
893 int len = ep - cp;
899 if(end < cp + len) {
900 end = cp+len;
905 if(!rawprint(ndo, (caddr_t)(cp), len)) goto trunc;
1001 const u_char *cp, *np;
1042 cp = ikev1_sub_print(ndo, ISAKMP_NPTYPE_P, ext, ep, phase, doi, proto0,
1045 return cp;
1059 const u_char *cp;
1077 cp = ikev1_sub_print(ndo, ISAKMP_NPTYPE_T, ext, ep, phase, doi0,
1080 return cp;
1222 const u_char *cp;
1266 cp = (u_char *)(p + 1);
1268 while (cp < ep && cp < ep2) {
1270 cp = ikev1_attrmap_print(ndo, cp, (ep < ep2) ? ep : ep2,
1273 cp = ikev1_attr_print(ndo, cp, (ep < ep2) ? ep : ep2);
1277 return cp;
1631 const u_char *cp;
1725 cp = (u_char *)(p + 1) + n.spi_size;
1728 if (cp < ep) {
1735 while (cp < ep && cp < ep2) {
1736 cp = ikev1_attrmap_print(ndo, cp,
1743 EXTRACT_32BITS(cp) ? "en" : "dis"));
1747 (struct isakmp_gen *)cp, ep, phase, doi, proto,
1753 isakmp_print(ndo, cp,
1877 const u_char *cp;
1929 cp = (u_char *)(p + 1);
1931 while (cp < ep && cp < ep2) {
1933 cp = ikev1_attrmap_print(ndo, cp, (ep < ep2) ? ep : ep2,
1936 cp = ikev1_attr_print(ndo, cp, (ep < ep2) ? ep : ep2);
1940 return cp;
1954 const u_char *cp;
1973 cp = ikev2_sub_print(ndo, NULL, ISAKMP_NPTYPE_T, ext, ep, phase, doi0,
1976 return cp;
2215 const u_char *cp;
2391 cp = (u_char *)(p + 1) + n.spi_size;
2397 if ((showdata || (showsomedata && ep-cp < 30)) && cp < ep) {
2399 if (!rawprint(ndo, (caddr_t)(cp), ep - cp))
2404 } else if(showsomedata && cp < ep) {
2405 if(!ike_show_somedata(ndo, cp, ep)) goto trunc;
2565 const u_char *cp;
2569 cp = (u_char *)ext;
2588 cp = (*npfunc[np])(ndo, np, ext, item_len, ep, phase, doi, proto, depth);
2591 cp += item_len;
2594 return cp;
2605 const u_char *cp;
2609 cp = (const u_char *)ext;
2623 cp = ike_sub0_print(ndo, np, ext, ep, phase, doi, proto, depth);
2627 if (cp == NULL) {
2633 ext = (struct isakmp_gen *)cp;
2635 return cp;
2729 const u_char *cp;
2733 cp = (u_char *)ext;
2748 cp = ikev2_p_print(ndo, np, pcount, ext, item_len,
2751 cp = ikev2_t_print(ndo, np, pcount, ext, item_len,
2754 cp = ikev2_e_print(ndo, base, np, ext, item_len,
2761 cp = (*npfunc[np])(ndo, np, /*pcount,*/ ext, item_len,
2765 cp += item_len;
2768 return cp;
2780 const u_char *cp;
2785 cp = (const u_char *)ext;
2800 cp = ikev2_sub0_print(ndo, base, np, pcount,
2805 if (cp == NULL) {
2811 ext = (struct isakmp_gen *)cp;
2813 return cp;