Lines Matching refs:ext

562 		const struct isakmp_gen *ext,			      \
600 const struct isakmp_gen *ext,
615 u_char np, const struct isakmp_gen *ext,
663 const struct isakmp_gen *ext,
991 const struct isakmp_gen *ext,
1003 p = (const struct ikev1_pl_sa *)ext;
1027 np = (const u_char *)ext + sizeof(struct ikev1_pl_sa);
1029 ident = GET_BE_U_4(ext + 1);
1034 ext = (const struct isakmp_gen *)np;
1035 ND_TCHECK_SIZE(ext);
1037 cp = ikev1_sub_print(ndo, ISAKMP_NPTYPE_P, ext, ep, phase, doi, proto0,
1048 const struct isakmp_gen *ext, u_int item_len _U_,
1058 p = (const struct ikev1_pl_p *)ext;
1070 ext = (const struct isakmp_gen *)((const u_char *)(p + 1) + spi_size);
1071 ND_TCHECK_SIZE(ext);
1073 cp = ikev1_sub_print(ndo, ISAKMP_NPTYPE_T, ext, ep, phase, doi0,
1212 const struct isakmp_gen *ext, u_int item_len,
1225 p = (const struct ikev1_pl_t *)ext;
1280 const struct isakmp_gen *ext, u_int item_len,
1286 ND_TCHECK_SIZE(ext);
1294 if (!rawprint(ndo, (const uint8_t *)(ext + 1), item_len - 4))
1297 return (const u_char *)ext + item_len;
1305 const struct isakmp_gen *ext, u_int item_len,
1324 p = (const struct ikev1_pl_id *)ext;
1357 doi_p = (const struct ipsecdoi_id *)ext;
1479 return (const u_char *)ext + item_len;
1487 const struct isakmp_gen *ext, u_int item_len,
1501 p = (const struct ikev1_pl_cert *)ext;
1511 if (!rawprint(ndo, (const uint8_t *)(ext + 1), item_len - 4))
1514 return (const u_char *)ext + item_len;
1522 const struct isakmp_gen *ext, u_int item_len,
1535 p = (const struct ikev1_pl_cert *)ext;
1545 if (!rawprint(ndo, (const uint8_t *)(ext + 1), item_len - 4))
1548 return (const u_char *)ext + item_len;
1556 const struct isakmp_gen *ext, u_int item_len,
1562 ND_TCHECK_SIZE(ext);
1570 if (!rawprint(ndo, (const uint8_t *)(ext + 1), item_len - 4))
1573 return (const u_char *)ext + item_len;
1581 const struct isakmp_gen *ext, u_int item_len,
1587 ND_TCHECK_SIZE(ext);
1595 if (!rawprint(ndo, (const uint8_t *)(ext + 1), item_len - 4))
1598 return (const u_char *)ext + item_len;
1606 const struct isakmp_gen *ext,
1614 ND_TCHECK_SIZE(ext);
1622 if (!rawprint(ndo, (const uint8_t *)(ext + 1), item_len - 4))
1626 if (!ike_show_somedata(ndo, (const u_char *)(ext + 1), ep))
1630 return (const u_char *)ext + item_len;
1638 const struct isakmp_gen *ext, u_int item_len,
1697 p = (const struct ikev1_pl_n *)ext;
1785 return (const u_char *)ext + item_len;
1793 const struct isakmp_gen *ext, u_int item_len _U_,
1807 p = (const struct ikev1_pl_d *)ext;
1841 const struct isakmp_gen *ext,
1848 ND_TCHECK_SIZE(ext);
1856 if (!rawprint(ndo, (const uint8_t *)(ext + 1), item_len - 4))
1859 return (const u_char *)ext + item_len;
1879 const struct isakmp_gen *ext, u_int item_len)
1881 const struct isakmp_gen *p = (const struct isakmp_gen *)ext;
1883 ND_TCHECK_SIZE(ext);
1893 if (!rawprint(ndo, (const uint8_t *)(ext + 1), item_len - 4))
1896 return (const u_char *)ext + item_len;
1904 const struct isakmp_gen *ext, u_int item_len,
1916 p = (const struct ikev2_t *)ext;
1982 const struct isakmp_gen *ext, u_int oprop_length,
1994 p = (const struct ikev2_p *)ext;
2023 for (np = ISAKMP_NPTYPE_T; np != 0; np = GET_U_1(ext->np)) {
2025 ext = (const struct isakmp_gen *)cp;
2026 if (prop_length < sizeof(*ext))
2028 ND_TCHECK_SIZE(ext);
2036 item_len = GET_BE_U_2(ext->len);
2050 cp = ikev2_t_print(ndo, tcount, ext, item_len, ep);
2083 const struct isakmp_gen *ext;
2106 for (np = ISAKMP_NPTYPE_P; np != 0; np = GET_U_1(ext->np)) {
2108 ext = (const struct isakmp_gen *)cp;
2109 if (sa_length < sizeof(*ext))
2111 ND_TCHECK_SIZE(ext);
2119 item_len = GET_BE_U_2(ext->len);
2133 cp = ikev2_p_print(ndo, np, pcount, ext, item_len,
2162 const struct isakmp_gen *ext,
2169 k = (const struct ikev2_ke *)ext;
2175 return (const u_char *)ext + item_len;
2185 return (const u_char *)ext + item_len;
2193 const struct isakmp_gen *ext,
2203 idp = (const struct ikev2_id *)ext;
2214 if (!rawprint(ndo, (const uint8_t *)(ext + 1), item_len - 4))
2221 typedata = (const unsigned char *)(ext)+sizeof(struct ikev2_id);
2269 return (const u_char *)ext + item_len;
2277 const struct isakmp_gen *ext,
2282 return ikev2_gen_print(ndo, tpay, ext, item_len);
2287 const struct isakmp_gen *ext,
2292 return ikev2_gen_print(ndo, tpay, ext, item_len);
2297 const struct isakmp_gen *ext,
2305 const u_char *authdata = (const u_char *)ext + sizeof(struct ikev2_auth);
2307 ND_TCHECK_LEN(ext, sizeof(struct ikev2_auth));
2308 p = (const struct ikev2_auth *)ext;
2328 return (const u_char *)ext + item_len;
2336 const struct isakmp_gen *ext,
2341 ND_TCHECK_SIZE(ext);
2342 ikev2_pay_print(ndo, "nonce", GET_U_1(ext->critical));
2350 if (!rawprint(ndo, (const uint8_t *)(ext + 1), item_len - 4))
2354 if(!ike_show_somedata(ndo, (const u_char *)(ext+1), ep)) goto trunc;
2357 return (const u_char *)ext + item_len;
2366 const struct isakmp_gen *ext,
2378 p = (const struct ikev2_n *)ext;
2562 return (const u_char *)ext + item_len;
2570 const struct isakmp_gen *ext,
2575 return ikev2_gen_print(ndo, tpay, ext, item_len);
2580 const struct isakmp_gen *ext,
2588 ND_TCHECK_SIZE(ext);
2589 ikev2_pay_print(ndo, NPSTR(tpay), GET_U_1(ext->critical));
2596 vid = (const u_char *)(ext+1);
2607 if (!rawprint(ndo, (const uint8_t *)(ext + 1), item_len - 4))
2610 return (const u_char *)ext + item_len;
2618 const struct isakmp_gen *ext,
2623 return ikev2_gen_print(ndo, tpay, ext, item_len);
2633 const struct isakmp_gen *ext,
2658 ND_TCHECK_SIZE(ext);
2659 ikev2_pay_print(ndo, NPSTR(tpay), GET_U_1(ext->critical));
2666 if (!rawprint(ndo, (const uint8_t *)(ext + 1), dlen))
2670 dat = (const u_char *)(ext+1);
2674 np = GET_U_1(ext->np);
2682 ext = (const struct isakmp_gen *)ndo->ndo_packetp;
2685 ikev2_sub_print(ndo, base, np, ext,
2709 const struct isakmp_gen *ext,
2714 return ikev2_gen_print(ndo, tpay, ext, item_len);
2719 const struct isakmp_gen *ext,
2724 return ikev2_gen_print(ndo, tpay, ext, item_len);
2729 u_char np, const struct isakmp_gen *ext, const u_char *ep,
2736 cp = (const u_char *)ext;
2737 ND_TCHECK_SIZE(ext);
2745 item_len = GET_BE_U_2(ext->len);
2754 cp = (*npfunc[np])(ndo, np, ext, item_len, ep, phase, doi, proto, depth);
2768 u_char np, const struct isakmp_gen *ext, const u_char *ep,
2775 cp = (const u_char *)ext;
2778 ND_TCHECK_SIZE(ext);
2780 item_len = GET_BE_U_2(ext->len);
2781 ND_TCHECK_LEN(ext, item_len);
2788 cp = ike_sub0_print(ndo, np, ext, ep, phase, doi, proto, depth);
2797 np = GET_U_1(ext->np);
2798 ext = (const struct isakmp_gen *)cp;
2861 const struct isakmp_gen *ext;
2878 ext = (const struct isakmp_gen *)(p + 1);
2879 ikev1_sub_print(ndo, np, ext, ep, phase, 0, 0, 0);
2894 const struct isakmp_gen *ext, const u_char *ep,
2900 cp = (const u_char *)ext;
2901 ND_TCHECK_SIZE(ext);
2909 item_len = GET_BE_U_2(ext->len);
2914 cp = ikev2_e_print(ndo, base, np, ext, item_len,
2921 cp = (*npfunc[np])(ndo, np, ext, item_len,
2937 u_char np, const struct isakmp_gen *ext, const u_char *ep,
2943 cp = (const u_char *)ext;
2945 ND_TCHECK_SIZE(ext);
2947 ND_TCHECK_LEN(ext, GET_BE_U_2(ext->len));
2955 ext, ep, phase, doi, proto, depth);
2964 np = GET_U_1(ext->np);
2965 ext = (const struct isakmp_gen *)cp;
3003 const struct isakmp_gen *ext;
3020 ext = (const struct isakmp_gen *)(p + 1);
3021 ikev2_sub_print(ndo, base, np, ext, ep, phase, 0, 0, 0);