Lines Matching refs:ext

581 		const struct isakmp_gen *ext,			      \
619 const struct isakmp_gen *ext,
634 u_char np, const struct isakmp_gen *ext,
684 const struct isakmp_gen *ext,
993 const struct isakmp_gen *ext, in ikev1_sa_print() argument
1006 p = (struct ikev1_pl_sa *)ext; in ikev1_sa_print()
1008 UNALIGNED_MEMCPY(&sa, ext, sizeof(sa)); in ikev1_sa_print()
1031 np = (u_char *)ext + sizeof(sa); in ikev1_sa_print()
1033 ND_TCHECK2(*(ext + 1), sizeof(ident)); in ikev1_sa_print()
1034 UNALIGNED_MEMCPY(&ident, ext + 1, sizeof(ident)); in ikev1_sa_print()
1039 ext = (struct isakmp_gen *)np; in ikev1_sa_print()
1040 ND_TCHECK(*ext); in ikev1_sa_print()
1042 cp = ikev1_sub_print(ndo, ISAKMP_NPTYPE_P, ext, ep, phase, doi, proto0, in ikev1_sa_print()
1053 const struct isakmp_gen *ext, u_int item_len _U_, in ikev1_p_print() argument
1063 p = (struct ikev1_pl_p *)ext; in ikev1_p_print()
1065 UNALIGNED_MEMCPY(&prop, ext, sizeof(prop)); in ikev1_p_print()
1074 ext = (struct isakmp_gen *)((u_char *)(p + 1) + prop.spi_size); in ikev1_p_print()
1075 ND_TCHECK(*ext); in ikev1_p_print()
1077 cp = ikev1_sub_print(ndo, ISAKMP_NPTYPE_T, ext, ep, phase, doi0, in ikev1_p_print()
1216 const struct isakmp_gen *ext, u_int item_len, in ikev1_t_print() argument
1230 p = (struct ikev1_pl_t *)ext; in ikev1_t_print()
1232 UNALIGNED_MEMCPY(&t, ext, sizeof(t)); in ikev1_t_print()
1285 const struct isakmp_gen *ext, u_int item_len _U_, in ikev1_ke_print() argument
1293 ND_TCHECK(*ext); in ikev1_ke_print()
1294 UNALIGNED_MEMCPY(&e, ext, sizeof(e)); in ikev1_ke_print()
1298 if (!rawprint(ndo, (caddr_t)(ext + 1), ntohs(e.len) - 4)) in ikev1_ke_print()
1301 return (u_char *)ext + ntohs(e.len); in ikev1_ke_print()
1309 const struct isakmp_gen *ext, u_int item_len, in ikev1_id_print() argument
1329 p = (struct ikev1_pl_id *)ext; in ikev1_id_print()
1331 UNALIGNED_MEMCPY(&id, ext, sizeof(id)); in ikev1_id_print()
1362 p = (struct ipsecdoi_id *)ext; in ikev1_id_print()
1364 UNALIGNED_MEMCPY(&id, ext, sizeof(id)); in ikev1_id_print()
1475 return (u_char *)ext + item_len; in ikev1_id_print()
1483 const struct isakmp_gen *ext, u_int item_len _U_, in ikev1_cert_print() argument
1498 p = (struct ikev1_pl_cert *)ext; in ikev1_cert_print()
1500 UNALIGNED_MEMCPY(&cert, ext, sizeof(cert)); in ikev1_cert_print()
1505 if (!rawprint(ndo, (caddr_t)(ext + 1), item_len - 4)) in ikev1_cert_print()
1508 return (u_char *)ext + item_len; in ikev1_cert_print()
1516 const struct isakmp_gen *ext, u_int item_len _U_, in ikev1_cr_print() argument
1530 p = (struct ikev1_pl_cert *)ext; in ikev1_cr_print()
1532 UNALIGNED_MEMCPY(&cert, ext, sizeof(cert)); in ikev1_cr_print()
1537 if (!rawprint(ndo, (caddr_t)(ext + 1), item_len - 4)) in ikev1_cr_print()
1540 return (u_char *)ext + item_len; in ikev1_cr_print()
1548 const struct isakmp_gen *ext, u_int item_len _U_, in ikev1_hash_print() argument
1556 ND_TCHECK(*ext); in ikev1_hash_print()
1557 UNALIGNED_MEMCPY(&e, ext, sizeof(e)); in ikev1_hash_print()
1561 if (!rawprint(ndo, (caddr_t)(ext + 1), ntohs(e.len) - 4)) in ikev1_hash_print()
1564 return (u_char *)ext + ntohs(e.len); in ikev1_hash_print()
1572 const struct isakmp_gen *ext, u_int item_len _U_, in ikev1_sig_print() argument
1580 ND_TCHECK(*ext); in ikev1_sig_print()
1581 UNALIGNED_MEMCPY(&e, ext, sizeof(e)); in ikev1_sig_print()
1585 if (!rawprint(ndo, (caddr_t)(ext + 1), ntohs(e.len) - 4)) in ikev1_sig_print()
1588 return (u_char *)ext + ntohs(e.len); in ikev1_sig_print()
1596 const struct isakmp_gen *ext, in ikev1_nonce_print() argument
1606 ND_TCHECK(*ext); in ikev1_nonce_print()
1607 UNALIGNED_MEMCPY(&e, ext, sizeof(e)); in ikev1_nonce_print()
1611 if (!rawprint(ndo, (caddr_t)(ext + 1), ntohs(e.len) - 4)) in ikev1_nonce_print()
1615 if (!ike_show_somedata(ndo, (u_char *)(caddr_t)(ext + 1), ep)) in ikev1_nonce_print()
1618 return (u_char *)ext + ntohs(e.len); in ikev1_nonce_print()
1626 const struct isakmp_gen *ext, u_int item_len, in ikev1_n_print() argument
1683 p = (struct ikev1_pl_n *)ext; in ikev1_n_print()
1685 UNALIGNED_MEMCPY(&n, ext, sizeof(n)); in ikev1_n_print()
1759 return (u_char *)ext + item_len; in ikev1_n_print()
1767 const struct isakmp_gen *ext, u_int item_len _U_, in ikev1_d_print() argument
1780 p = (struct ikev1_pl_d *)ext; in ikev1_d_print()
1782 UNALIGNED_MEMCPY(&d, ext, sizeof(d)); in ikev1_d_print()
1811 const struct isakmp_gen *ext, in ikev1_vid_print() argument
1820 ND_TCHECK(*ext); in ikev1_vid_print()
1821 UNALIGNED_MEMCPY(&e, ext, sizeof(e)); in ikev1_vid_print()
1825 if (!rawprint(ndo, (caddr_t)(ext + 1), ntohs(e.len) - 4)) in ikev1_vid_print()
1828 return (u_char *)ext + ntohs(e.len); in ikev1_vid_print()
1848 const struct isakmp_gen *ext) in ikev2_gen_print() argument
1852 ND_TCHECK(*ext); in ikev2_gen_print()
1853 UNALIGNED_MEMCPY(&e, ext, sizeof(e)); in ikev2_gen_print()
1859 if (!rawprint(ndo, (caddr_t)(ext + 1), ntohs(e.len) - 4)) in ikev2_gen_print()
1862 return (u_char *)ext + ntohs(e.len); in ikev2_gen_print()
1870 const struct isakmp_gen *ext, u_int item_len, in ikev2_t_print() argument
1883 p = (struct ikev2_t *)ext; in ikev2_t_print()
1885 UNALIGNED_MEMCPY(&t, ext, sizeof(t)); in ikev2_t_print()
1948 const struct isakmp_gen *ext, u_int item_len _U_, in ikev2_p_print() argument
1956 p = (struct ikev2_p *)ext; in ikev2_p_print()
1958 UNALIGNED_MEMCPY(&prop, ext, sizeof(prop)); in ikev2_p_print()
1970 ext = (struct isakmp_gen *)((u_char *)(p + 1) + prop.spi_size); in ikev2_p_print()
1971 ND_TCHECK(*ext); in ikev2_p_print()
1973 cp = ikev2_sub_print(ndo, NULL, ISAKMP_NPTYPE_T, ext, ep, phase, doi0, in ikev2_p_print()
2012 const struct isakmp_gen *ext, in ikev2_ke_print() argument
2020 k = (struct ikev2_ke *)ext; in ikev2_ke_print()
2021 ND_TCHECK(*ext); in ikev2_ke_print()
2022 UNALIGNED_MEMCPY(&ke, ext, sizeof(ke)); in ikev2_ke_print()
2033 return (u_char *)ext + ntohs(ke.h.len); in ikev2_ke_print()
2041 const struct isakmp_gen *ext, in ikev2_ID_print() argument
2051 ND_TCHECK(*ext); in ikev2_ID_print()
2052 UNALIGNED_MEMCPY(&id, ext, sizeof(id)); in ikev2_ID_print()
2060 if (!rawprint(ndo, (caddr_t)(ext + 1), id_len - 4)) in ikev2_ID_print()
2067 typedata = (unsigned char *)(ext)+sizeof(struct ikev2_id); in ikev2_ID_print()
2115 return (u_char *)ext + id_len; in ikev2_ID_print()
2123 const struct isakmp_gen *ext, in ikev2_cert_print() argument
2128 return ikev2_gen_print(ndo, tpay, ext); in ikev2_cert_print()
2133 const struct isakmp_gen *ext, in ikev2_cr_print() argument
2138 return ikev2_gen_print(ndo, tpay, ext); in ikev2_cr_print()
2143 const struct isakmp_gen *ext, in ikev2_auth_print() argument
2151 u_char *authdata = (u_char*)ext + sizeof(a); in ikev2_auth_print()
2154 ND_TCHECK(*ext); in ikev2_auth_print()
2155 UNALIGNED_MEMCPY(&a, ext, sizeof(a)); in ikev2_auth_print()
2171 return (u_char *)ext + len; in ikev2_auth_print()
2179 const struct isakmp_gen *ext, in ikev2_nonce_print() argument
2186 ND_TCHECK(*ext); in ikev2_nonce_print()
2187 UNALIGNED_MEMCPY(&e, ext, sizeof(e)); in ikev2_nonce_print()
2193 if (!rawprint(ndo, (caddr_t)(ext + 1), ntohs(e.len) - 4)) in ikev2_nonce_print()
2197 if(!ike_show_somedata(ndo, (const u_char *)(ext+1), ep)) goto trunc; in ikev2_nonce_print()
2200 return (u_char *)ext + ntohs(e.len); in ikev2_nonce_print()
2209 const struct isakmp_gen *ext, in ikev2_n_print() argument
2220 p = (struct ikev2_n *)ext; in ikev2_n_print()
2222 UNALIGNED_MEMCPY(&n, ext, sizeof(n)); in ikev2_n_print()
2408 return (u_char *)ext + item_len; in ikev2_n_print()
2416 const struct isakmp_gen *ext, in ikev2_d_print() argument
2421 return ikev2_gen_print(ndo, tpay, ext); in ikev2_d_print()
2426 const struct isakmp_gen *ext, in ikev2_vid_print() argument
2435 ND_TCHECK(*ext); in ikev2_vid_print()
2436 UNALIGNED_MEMCPY(&e, ext, sizeof(e)); in ikev2_vid_print()
2440 vid = (const u_char *)(ext+1); in ikev2_vid_print()
2449 if (!rawprint(ndo, (caddr_t)(ext + 1), ntohs(e.len) - 4)) in ikev2_vid_print()
2452 return (u_char *)ext + ntohs(e.len); in ikev2_vid_print()
2460 const struct isakmp_gen *ext, in ikev2_TS_print() argument
2465 return ikev2_gen_print(ndo, tpay, ext); in ikev2_TS_print()
2475 const struct isakmp_gen *ext, in ikev2_e_print() argument
2498 ND_TCHECK(*ext); in ikev2_e_print()
2499 UNALIGNED_MEMCPY(&e, ext, sizeof(e)); in ikev2_e_print()
2507 if (!rawprint(ndo, (caddr_t)(ext + 1), dlen)) in ikev2_e_print()
2511 dat = (u_char *)(ext+1); in ikev2_e_print()
2521 ext = (const struct isakmp_gen *)ndo->ndo_packetp; in ikev2_e_print()
2524 ikev2_sub_print(ndo, base, e.np, ext, ndo->ndo_snapend, in ikev2_e_print()
2541 const struct isakmp_gen *ext, in ikev2_cp_print() argument
2546 return ikev2_gen_print(ndo, tpay, ext); in ikev2_cp_print()
2551 const struct isakmp_gen *ext, in ikev2_eap_print() argument
2556 return ikev2_gen_print(ndo, tpay, ext); in ikev2_eap_print()
2561 u_char np, const struct isakmp_gen *ext, const u_char *ep, in ike_sub0_print() argument
2569 cp = (u_char *)ext; in ike_sub0_print()
2570 ND_TCHECK(*ext); in ike_sub0_print()
2571 UNALIGNED_MEMCPY(&e, ext, sizeof(e)); in ike_sub0_print()
2588 cp = (*npfunc[np])(ndo, np, ext, item_len, ep, phase, doi, proto, depth); in ike_sub0_print()
2602 u_char np, const struct isakmp_gen *ext, const u_char *ep, in ikev1_sub_print() argument
2609 cp = (const u_char *)ext; in ikev1_sub_print()
2612 ND_TCHECK(*ext); in ikev1_sub_print()
2614 UNALIGNED_MEMCPY(&e, ext, sizeof(e)); in ikev1_sub_print()
2616 ND_TCHECK2(*ext, ntohs(e.len)); in ikev1_sub_print()
2623 cp = ike_sub0_print(ndo, np, ext, ep, phase, doi, proto, depth); in ikev1_sub_print()
2633 ext = (struct isakmp_gen *)cp; in ikev1_sub_print()
2694 const struct isakmp_gen *ext; in ikev1_print() local
2710 ext = (struct isakmp_gen *)(p + 1); in ikev1_print()
2711 ikev1_sub_print(ndo, np, ext, ep, phase, 0, 0, 0); in ikev1_print()
2726 const struct isakmp_gen *ext, const u_char *ep, in ikev2_sub0_print() argument
2733 cp = (u_char *)ext; in ikev2_sub0_print()
2734 ND_TCHECK(*ext); in ikev2_sub0_print()
2735 UNALIGNED_MEMCPY(&e, ext, sizeof(e)); in ikev2_sub0_print()
2748 cp = ikev2_p_print(ndo, np, pcount, ext, item_len, in ikev2_sub0_print()
2751 cp = ikev2_t_print(ndo, np, pcount, ext, item_len, in ikev2_sub0_print()
2754 cp = ikev2_e_print(ndo, base, np, ext, item_len, in ikev2_sub0_print()
2761 cp = (*npfunc[np])(ndo, np, /*pcount,*/ ext, item_len, in ikev2_sub0_print()
2777 u_char np, const struct isakmp_gen *ext, const u_char *ep, in ikev2_sub_print() argument
2785 cp = (const u_char *)ext; in ikev2_sub_print()
2789 ND_TCHECK(*ext); in ikev2_sub_print()
2791 UNALIGNED_MEMCPY(&e, ext, sizeof(e)); in ikev2_sub_print()
2793 ND_TCHECK2(*ext, ntohs(e.len)); in ikev2_sub_print()
2801 ext, ep, phase, doi, proto, depth); in ikev2_sub_print()
2811 ext = (struct isakmp_gen *)cp; in ikev2_sub_print()
2847 const struct isakmp_gen *ext; in ikev2_print() local
2864 ext = (struct isakmp_gen *)(p + 1); in ikev2_print()
2865 ikev2_sub_print(ndo, base, np, ext, ep, phase, 0, 0, 0); in ikev2_print()