Lines Matching refs:ext

571 		const struct isakmp_gen *ext,			      \
609 const struct isakmp_gen *ext,
624 u_char np, const struct isakmp_gen *ext,
672 const struct isakmp_gen *ext,
1000 const struct isakmp_gen *ext,
1012 p = (const struct ikev1_pl_sa *)ext;
1036 np = (const u_char *)ext + sizeof(struct ikev1_pl_sa);
1038 ident = GET_BE_U_4(ext + 1);
1043 ext = (const struct isakmp_gen *)np;
1044 ND_TCHECK_SIZE(ext);
1046 cp = ikev1_sub_print(ndo, ISAKMP_NPTYPE_P, ext, ep, phase, doi, proto0,
1057 const struct isakmp_gen *ext, u_int item_len _U_,
1067 p = (const struct ikev1_pl_p *)ext;
1079 ext = (const struct isakmp_gen *)((const u_char *)(p + 1) + spi_size);
1080 ND_TCHECK_SIZE(ext);
1082 cp = ikev1_sub_print(ndo, ISAKMP_NPTYPE_T, ext, ep, phase, doi0,
1221 const struct isakmp_gen *ext, u_int item_len,
1234 p = (const struct ikev1_pl_t *)ext;
1289 const struct isakmp_gen *ext, u_int item_len,
1295 ND_TCHECK_SIZE(ext);
1303 if (!rawprint(ndo, (const uint8_t *)(ext + 1), item_len - 4))
1306 return (const u_char *)ext + item_len;
1314 const struct isakmp_gen *ext, u_int item_len,
1333 p = (const struct ikev1_pl_id *)ext;
1366 doi_p = (const struct ipsecdoi_id *)ext;
1488 return (const u_char *)ext + item_len;
1496 const struct isakmp_gen *ext, u_int item_len,
1510 p = (const struct ikev1_pl_cert *)ext;
1520 if (!rawprint(ndo, (const uint8_t *)(ext + 1), item_len - 4))
1523 return (const u_char *)ext + item_len;
1531 const struct isakmp_gen *ext, u_int item_len,
1544 p = (const struct ikev1_pl_cert *)ext;
1554 if (!rawprint(ndo, (const uint8_t *)(ext + 1), item_len - 4))
1557 return (const u_char *)ext + item_len;
1565 const struct isakmp_gen *ext, u_int item_len,
1571 ND_TCHECK_SIZE(ext);
1579 if (!rawprint(ndo, (const uint8_t *)(ext + 1), item_len - 4))
1582 return (const u_char *)ext + item_len;
1590 const struct isakmp_gen *ext, u_int item_len,
1596 ND_TCHECK_SIZE(ext);
1604 if (!rawprint(ndo, (const uint8_t *)(ext + 1), item_len - 4))
1607 return (const u_char *)ext + item_len;
1615 const struct isakmp_gen *ext,
1623 ND_TCHECK_SIZE(ext);
1631 if (!rawprint(ndo, (const uint8_t *)(ext + 1), item_len - 4))
1635 if (!ike_show_somedata(ndo, (const u_char *)(ext + 1), ep))
1639 return (const u_char *)ext + item_len;
1647 const struct isakmp_gen *ext, u_int item_len,
1706 p = (const struct ikev1_pl_n *)ext;
1794 return (const u_char *)ext + item_len;
1802 const struct isakmp_gen *ext, u_int item_len _U_,
1816 p = (const struct ikev1_pl_d *)ext;
1848 const struct isakmp_gen *ext,
1855 ND_TCHECK_SIZE(ext);
1863 if (!rawprint(ndo, (const uint8_t *)(ext + 1), item_len - 4))
1866 return (const u_char *)ext + item_len;
1886 const struct isakmp_gen *ext, u_int item_len)
1888 const struct isakmp_gen *p = (const struct isakmp_gen *)ext;
1890 ND_TCHECK_SIZE(ext);
1900 if (!rawprint(ndo, (const uint8_t *)(ext + 1), item_len - 4))
1903 return (const u_char *)ext + item_len;
1911 const struct isakmp_gen *ext, u_int item_len,
1923 p = (const struct ikev2_t *)ext;
1989 const struct isakmp_gen *ext, u_int oprop_length,
2001 p = (const struct ikev2_p *)ext;
2030 for (np = ISAKMP_NPTYPE_T; np != 0; np = GET_U_1(ext->np)) {
2032 ext = (const struct isakmp_gen *)cp;
2033 if (prop_length < sizeof(*ext))
2035 ND_TCHECK_SIZE(ext);
2043 item_len = GET_BE_U_2(ext->len);
2057 cp = ikev2_t_print(ndo, tcount, ext, item_len, ep);
2090 const struct isakmp_gen *ext;
2113 for (np = ISAKMP_NPTYPE_P; np != 0; np = GET_U_1(ext->np)) {
2115 ext = (const struct isakmp_gen *)cp;
2116 if (sa_length < sizeof(*ext))
2118 ND_TCHECK_SIZE(ext);
2126 item_len = GET_BE_U_2(ext->len);
2140 cp = ikev2_p_print(ndo, np, pcount, ext, item_len,
2169 const struct isakmp_gen *ext,
2176 k = (const struct ikev2_ke *)ext;
2182 return (const u_char *)ext + item_len;
2192 return (const u_char *)ext + item_len;
2200 const struct isakmp_gen *ext,
2210 idp = (const struct ikev2_id *)ext;
2221 if (!rawprint(ndo, (const uint8_t *)(ext + 1), item_len - 4))
2228 typedata = (const unsigned char *)(ext)+sizeof(struct ikev2_id);
2276 return (const u_char *)ext + item_len;
2284 const struct isakmp_gen *ext,
2289 return ikev2_gen_print(ndo, tpay, ext, item_len);
2294 const struct isakmp_gen *ext,
2299 return ikev2_gen_print(ndo, tpay, ext, item_len);
2304 const struct isakmp_gen *ext,
2312 const u_char *authdata = (const u_char *)ext + sizeof(struct ikev2_auth);
2314 ND_TCHECK_LEN(ext, sizeof(struct ikev2_auth));
2315 p = (const struct ikev2_auth *)ext;
2335 return (const u_char *)ext + item_len;
2343 const struct isakmp_gen *ext,
2348 ND_TCHECK_SIZE(ext);
2349 ikev2_pay_print(ndo, "nonce", GET_U_1(ext->critical));
2357 if (!rawprint(ndo, (const uint8_t *)(ext + 1), item_len - 4))
2361 if(!ike_show_somedata(ndo, (const u_char *)(ext+1), ep)) goto trunc;
2364 return (const u_char *)ext + item_len;
2373 const struct isakmp_gen *ext,
2385 p = (const struct ikev2_n *)ext;
2569 return (const u_char *)ext + item_len;
2577 const struct isakmp_gen *ext,
2582 return ikev2_gen_print(ndo, tpay, ext, item_len);
2587 const struct isakmp_gen *ext,
2595 ND_TCHECK_SIZE(ext);
2596 ikev2_pay_print(ndo, NPSTR(tpay), GET_U_1(ext->critical));
2603 vid = (const u_char *)(ext+1);
2614 if (!rawprint(ndo, (const uint8_t *)(ext + 1), item_len - 4))
2617 return (const u_char *)ext + item_len;
2625 const struct isakmp_gen *ext,
2630 return ikev2_gen_print(ndo, tpay, ext, item_len);
2640 const struct isakmp_gen *ext,
2665 ND_TCHECK_SIZE(ext);
2666 ikev2_pay_print(ndo, NPSTR(tpay), GET_U_1(ext->critical));
2673 if (!rawprint(ndo, (const uint8_t *)(ext + 1), dlen))
2677 dat = (const u_char *)(ext+1);
2681 np = GET_U_1(ext->np);
2689 ext = (const struct isakmp_gen *)ndo->ndo_packetp;
2692 ikev2_sub_print(ndo, base, np, ext,
2716 const struct isakmp_gen *ext,
2721 return ikev2_gen_print(ndo, tpay, ext, item_len);
2726 const struct isakmp_gen *ext,
2731 return ikev2_gen_print(ndo, tpay, ext, item_len);
2736 u_char np, const struct isakmp_gen *ext, const u_char *ep,
2743 cp = (const u_char *)ext;
2744 ND_TCHECK_SIZE(ext);
2752 item_len = GET_BE_U_2(ext->len);
2761 cp = (*npfunc[np])(ndo, np, ext, item_len, ep, phase, doi, proto, depth);
2775 u_char np, const struct isakmp_gen *ext, const u_char *ep,
2782 cp = (const u_char *)ext;
2785 ND_TCHECK_SIZE(ext);
2787 item_len = GET_BE_U_2(ext->len);
2788 ND_TCHECK_LEN(ext, item_len);
2795 cp = ike_sub0_print(ndo, np, ext, ep, phase, doi, proto, depth);
2804 np = GET_U_1(ext->np);
2805 ext = (const struct isakmp_gen *)cp;
2868 const struct isakmp_gen *ext;
2885 ext = (const struct isakmp_gen *)(p + 1);
2886 ikev1_sub_print(ndo, np, ext, ep, phase, 0, 0, 0);
2901 const struct isakmp_gen *ext, const u_char *ep,
2907 cp = (const u_char *)ext;
2908 ND_TCHECK_SIZE(ext);
2916 item_len = GET_BE_U_2(ext->len);
2921 cp = ikev2_e_print(ndo, base, np, ext, item_len,
2928 cp = (*npfunc[np])(ndo, np, ext, item_len,
2944 u_char np, const struct isakmp_gen *ext, const u_char *ep,
2950 cp = (const u_char *)ext;
2952 ND_TCHECK_SIZE(ext);
2954 ND_TCHECK_LEN(ext, GET_BE_U_2(ext->len));
2962 ext, ep, phase, doi, proto, depth);
2971 np = GET_U_1(ext->np);
2972 ext = (const struct isakmp_gen *)cp;
3010 const struct isakmp_gen *ext;
3027 ext = (const struct isakmp_gen *)(p + 1);
3028 ikev2_sub_print(ndo, base, np, ext, ep, phase, 0, 0, 0);