• Home
  • Raw
  • Download

Lines Matching refs:ext

580 		const struct isakmp_gen *ext,			      \
618 const struct isakmp_gen *ext,
633 u_char np, const struct isakmp_gen *ext,
681 const struct isakmp_gen *ext,
982 const struct isakmp_gen *ext, in ikev1_sa_print() argument
995 p = (const struct ikev1_pl_sa *)ext; in ikev1_sa_print()
997 UNALIGNED_MEMCPY(&sa, ext, sizeof(sa)); in ikev1_sa_print()
1020 np = (const u_char *)ext + sizeof(sa); in ikev1_sa_print()
1022 ND_TCHECK2(*(ext + 1), sizeof(ident)); in ikev1_sa_print()
1023 UNALIGNED_MEMCPY(&ident, ext + 1, sizeof(ident)); in ikev1_sa_print()
1028 ext = (const struct isakmp_gen *)np; in ikev1_sa_print()
1029 ND_TCHECK(*ext); in ikev1_sa_print()
1031 cp = ikev1_sub_print(ndo, ISAKMP_NPTYPE_P, ext, ep, phase, doi, proto0, in ikev1_sa_print()
1042 const struct isakmp_gen *ext, u_int item_len _U_, in ikev1_p_print() argument
1052 p = (const struct ikev1_pl_p *)ext; in ikev1_p_print()
1054 UNALIGNED_MEMCPY(&prop, ext, sizeof(prop)); in ikev1_p_print()
1063 ext = (const struct isakmp_gen *)((const u_char *)(p + 1) + prop.spi_size); in ikev1_p_print()
1064 ND_TCHECK(*ext); in ikev1_p_print()
1066 cp = ikev1_sub_print(ndo, ISAKMP_NPTYPE_T, ext, ep, phase, doi0, in ikev1_p_print()
1205 const struct isakmp_gen *ext, u_int item_len, in ikev1_t_print() argument
1219 p = (const struct ikev1_pl_t *)ext; in ikev1_t_print()
1221 UNALIGNED_MEMCPY(&t, ext, sizeof(t)); in ikev1_t_print()
1274 const struct isakmp_gen *ext, u_int item_len _U_, in ikev1_ke_print() argument
1282 ND_TCHECK(*ext); in ikev1_ke_print()
1283 UNALIGNED_MEMCPY(&e, ext, sizeof(e)); in ikev1_ke_print()
1287 if (!rawprint(ndo, (const uint8_t *)(ext + 1), ntohs(e.len) - 4)) in ikev1_ke_print()
1290 return (const u_char *)ext + ntohs(e.len); in ikev1_ke_print()
1298 const struct isakmp_gen *ext, u_int item_len, in ikev1_id_print() argument
1318 p = (const struct ikev1_pl_id *)ext; in ikev1_id_print()
1320 UNALIGNED_MEMCPY(&id, ext, sizeof(id)); in ikev1_id_print()
1351 doi_p = (const struct ipsecdoi_id *)ext; in ikev1_id_print()
1353 UNALIGNED_MEMCPY(&doi_id, ext, sizeof(doi_id)); in ikev1_id_print()
1460 return (const u_char *)ext + item_len; in ikev1_id_print()
1468 const struct isakmp_gen *ext, u_int item_len, in ikev1_cert_print() argument
1483 p = (const struct ikev1_pl_cert *)ext; in ikev1_cert_print()
1485 UNALIGNED_MEMCPY(&cert, ext, sizeof(cert)); in ikev1_cert_print()
1490 if (!rawprint(ndo, (const uint8_t *)(ext + 1), item_len - 4)) in ikev1_cert_print()
1493 return (const u_char *)ext + item_len; in ikev1_cert_print()
1501 const struct isakmp_gen *ext, u_int item_len, in ikev1_cr_print() argument
1515 p = (const struct ikev1_pl_cert *)ext; in ikev1_cr_print()
1517 UNALIGNED_MEMCPY(&cert, ext, sizeof(cert)); in ikev1_cr_print()
1522 if (!rawprint(ndo, (const uint8_t *)(ext + 1), item_len - 4)) in ikev1_cr_print()
1525 return (const u_char *)ext + item_len; in ikev1_cr_print()
1533 const struct isakmp_gen *ext, u_int item_len _U_, in ikev1_hash_print() argument
1541 ND_TCHECK(*ext); in ikev1_hash_print()
1542 UNALIGNED_MEMCPY(&e, ext, sizeof(e)); in ikev1_hash_print()
1546 if (!rawprint(ndo, (const uint8_t *)(ext + 1), ntohs(e.len) - 4)) in ikev1_hash_print()
1549 return (const u_char *)ext + ntohs(e.len); in ikev1_hash_print()
1557 const struct isakmp_gen *ext, u_int item_len _U_, in ikev1_sig_print() argument
1565 ND_TCHECK(*ext); in ikev1_sig_print()
1566 UNALIGNED_MEMCPY(&e, ext, sizeof(e)); in ikev1_sig_print()
1570 if (!rawprint(ndo, (const uint8_t *)(ext + 1), ntohs(e.len) - 4)) in ikev1_sig_print()
1573 return (const u_char *)ext + ntohs(e.len); in ikev1_sig_print()
1581 const struct isakmp_gen *ext, in ikev1_nonce_print() argument
1591 ND_TCHECK(*ext); in ikev1_nonce_print()
1592 UNALIGNED_MEMCPY(&e, ext, sizeof(e)); in ikev1_nonce_print()
1596 if (!rawprint(ndo, (const uint8_t *)(ext + 1), ntohs(e.len) - 4)) in ikev1_nonce_print()
1600 if (!ike_show_somedata(ndo, (const u_char *)(const uint8_t *)(ext + 1), ep)) in ikev1_nonce_print()
1603 return (const u_char *)ext + ntohs(e.len); in ikev1_nonce_print()
1611 const struct isakmp_gen *ext, u_int item_len, in ikev1_n_print() argument
1669 p = (const struct ikev1_pl_n *)ext; in ikev1_n_print()
1671 UNALIGNED_MEMCPY(&n, ext, sizeof(n)); in ikev1_n_print()
1745 return (const u_char *)ext + item_len; in ikev1_n_print()
1753 const struct isakmp_gen *ext, u_int item_len _U_, in ikev1_d_print() argument
1766 p = (const struct ikev1_pl_d *)ext; in ikev1_d_print()
1768 UNALIGNED_MEMCPY(&d, ext, sizeof(d)); in ikev1_d_print()
1797 const struct isakmp_gen *ext, in ikev1_vid_print() argument
1806 ND_TCHECK(*ext); in ikev1_vid_print()
1807 UNALIGNED_MEMCPY(&e, ext, sizeof(e)); in ikev1_vid_print()
1811 if (!rawprint(ndo, (const uint8_t *)(ext + 1), ntohs(e.len) - 4)) in ikev1_vid_print()
1814 return (const u_char *)ext + ntohs(e.len); in ikev1_vid_print()
1834 const struct isakmp_gen *ext) in ikev2_gen_print() argument
1838 ND_TCHECK(*ext); in ikev2_gen_print()
1839 UNALIGNED_MEMCPY(&e, ext, sizeof(e)); in ikev2_gen_print()
1845 if (!rawprint(ndo, (const uint8_t *)(ext + 1), ntohs(e.len) - 4)) in ikev2_gen_print()
1848 return (const u_char *)ext + ntohs(e.len); in ikev2_gen_print()
1856 const struct isakmp_gen *ext, u_int item_len, in ikev2_t_print() argument
1868 p = (const struct ikev2_t *)ext; in ikev2_t_print()
1870 UNALIGNED_MEMCPY(&t, ext, sizeof(t)); in ikev2_t_print()
1933 const struct isakmp_gen *ext, u_int oprop_length, in ikev2_p_print() argument
1946 p = (const struct ikev2_p *)ext; in ikev2_p_print()
1948 UNALIGNED_MEMCPY(&prop, ext, sizeof(prop)); in ikev2_p_print()
1977 ext = (const struct isakmp_gen *)cp; in ikev2_p_print()
1978 if (prop_length < sizeof(*ext)) in ikev2_p_print()
1980 ND_TCHECK(*ext); in ikev2_p_print()
1982 UNALIGNED_MEMCPY(&e, ext, sizeof(e)); in ikev2_p_print()
2004 cp = ikev2_t_print(ndo, tcount, ext, item_len, ep); in ikev2_p_print()
2037 const struct isakmp_gen *ext; in ikev2_sa_print() local
2064 ext = (const struct isakmp_gen *)cp; in ikev2_sa_print()
2065 if (sa_length < sizeof(*ext)) in ikev2_sa_print()
2067 ND_TCHECK(*ext); in ikev2_sa_print()
2069 UNALIGNED_MEMCPY(&e, ext, sizeof(e)); in ikev2_sa_print()
2091 cp = ikev2_p_print(ndo, np, pcount, ext, item_len, in ikev2_sa_print()
2120 const struct isakmp_gen *ext, in ikev2_ke_print() argument
2128 k = (const struct ikev2_ke *)ext; in ikev2_ke_print()
2129 ND_TCHECK(*ext); in ikev2_ke_print()
2130 UNALIGNED_MEMCPY(&ke, ext, sizeof(ke)); in ikev2_ke_print()
2141 return (const u_char *)ext + ntohs(ke.h.len); in ikev2_ke_print()
2149 const struct isakmp_gen *ext, in ikev2_ID_print() argument
2159 ND_TCHECK(*ext); in ikev2_ID_print()
2160 UNALIGNED_MEMCPY(&id, ext, sizeof(id)); in ikev2_ID_print()
2168 if (!rawprint(ndo, (const uint8_t *)(ext + 1), id_len - 4)) in ikev2_ID_print()
2175 typedata = (const unsigned char *)(ext)+sizeof(struct ikev2_id); in ikev2_ID_print()
2223 return (const u_char *)ext + id_len; in ikev2_ID_print()
2231 const struct isakmp_gen *ext, in ikev2_cert_print() argument
2236 return ikev2_gen_print(ndo, tpay, ext); in ikev2_cert_print()
2241 const struct isakmp_gen *ext, in ikev2_cr_print() argument
2246 return ikev2_gen_print(ndo, tpay, ext); in ikev2_cr_print()
2251 const struct isakmp_gen *ext, in ikev2_auth_print() argument
2259 const u_char *authdata = (const u_char*)ext + sizeof(a); in ikev2_auth_print()
2262 ND_TCHECK(*ext); in ikev2_auth_print()
2263 UNALIGNED_MEMCPY(&a, ext, sizeof(a)); in ikev2_auth_print()
2279 return (const u_char *)ext + len; in ikev2_auth_print()
2287 const struct isakmp_gen *ext, in ikev2_nonce_print() argument
2294 ND_TCHECK(*ext); in ikev2_nonce_print()
2295 UNALIGNED_MEMCPY(&e, ext, sizeof(e)); in ikev2_nonce_print()
2301 if (!rawprint(ndo, (const uint8_t *)(ext + 1), ntohs(e.len) - 4)) in ikev2_nonce_print()
2305 if(!ike_show_somedata(ndo, (const u_char *)(ext+1), ep)) goto trunc; in ikev2_nonce_print()
2308 return (const u_char *)ext + ntohs(e.len); in ikev2_nonce_print()
2317 const struct isakmp_gen *ext, in ikev2_n_print() argument
2329 p = (const struct ikev2_n *)ext; in ikev2_n_print()
2331 UNALIGNED_MEMCPY(&n, ext, sizeof(n)); in ikev2_n_print()
2517 return (const u_char *)ext + item_len; in ikev2_n_print()
2525 const struct isakmp_gen *ext, in ikev2_d_print() argument
2530 return ikev2_gen_print(ndo, tpay, ext); in ikev2_d_print()
2535 const struct isakmp_gen *ext, in ikev2_vid_print() argument
2544 ND_TCHECK(*ext); in ikev2_vid_print()
2545 UNALIGNED_MEMCPY(&e, ext, sizeof(e)); in ikev2_vid_print()
2549 vid = (const u_char *)(ext+1); in ikev2_vid_print()
2558 if (!rawprint(ndo, (const uint8_t *)(ext + 1), ntohs(e.len) - 4)) in ikev2_vid_print()
2561 return (const u_char *)ext + ntohs(e.len); in ikev2_vid_print()
2569 const struct isakmp_gen *ext, in ikev2_TS_print() argument
2574 return ikev2_gen_print(ndo, tpay, ext); in ikev2_TS_print()
2584 const struct isakmp_gen *ext, in ikev2_e_print() argument
2607 ND_TCHECK(*ext); in ikev2_e_print()
2608 UNALIGNED_MEMCPY(&e, ext, sizeof(e)); in ikev2_e_print()
2616 if (!rawprint(ndo, (const uint8_t *)(ext + 1), dlen)) in ikev2_e_print()
2620 dat = (const u_char *)(ext+1); in ikev2_e_print()
2630 ext = (const struct isakmp_gen *)ndo->ndo_packetp; in ikev2_e_print()
2633 ikev2_sub_print(ndo, base, e.np, ext, ndo->ndo_snapend, in ikev2_e_print()
2650 const struct isakmp_gen *ext, in ikev2_cp_print() argument
2655 return ikev2_gen_print(ndo, tpay, ext); in ikev2_cp_print()
2660 const struct isakmp_gen *ext, in ikev2_eap_print() argument
2665 return ikev2_gen_print(ndo, tpay, ext); in ikev2_eap_print()
2670 u_char np, const struct isakmp_gen *ext, const u_char *ep, in ike_sub0_print() argument
2678 cp = (const u_char *)ext; in ike_sub0_print()
2679 ND_TCHECK(*ext); in ike_sub0_print()
2680 UNALIGNED_MEMCPY(&e, ext, sizeof(e)); in ike_sub0_print()
2697 cp = (*npfunc[np])(ndo, np, ext, item_len, ep, phase, doi, proto, depth); in ike_sub0_print()
2711 u_char np, const struct isakmp_gen *ext, const u_char *ep, in ikev1_sub_print() argument
2718 cp = (const u_char *)ext; in ikev1_sub_print()
2721 ND_TCHECK(*ext); in ikev1_sub_print()
2723 UNALIGNED_MEMCPY(&e, ext, sizeof(e)); in ikev1_sub_print()
2725 ND_TCHECK2(*ext, ntohs(e.len)); in ikev1_sub_print()
2732 cp = ike_sub0_print(ndo, np, ext, ep, phase, doi, proto, depth); in ikev1_sub_print()
2742 ext = (const struct isakmp_gen *)cp; in ikev1_sub_print()
2803 const struct isakmp_gen *ext; in ikev1_print() local
2819 ext = (const struct isakmp_gen *)(p + 1); in ikev1_print()
2820 ikev1_sub_print(ndo, np, ext, ep, phase, 0, 0, 0); in ikev1_print()
2835 const struct isakmp_gen *ext, const u_char *ep, in ikev2_sub0_print() argument
2842 cp = (const u_char *)ext; in ikev2_sub0_print()
2843 ND_TCHECK(*ext); in ikev2_sub0_print()
2844 UNALIGNED_MEMCPY(&e, ext, sizeof(e)); in ikev2_sub0_print()
2857 cp = ikev2_e_print(ndo, base, np, ext, item_len, in ikev2_sub0_print()
2864 cp = (*npfunc[np])(ndo, np, ext, item_len, in ikev2_sub0_print()
2880 u_char np, const struct isakmp_gen *ext, const u_char *ep, in ikev2_sub_print() argument
2887 cp = (const u_char *)ext; in ikev2_sub_print()
2889 ND_TCHECK(*ext); in ikev2_sub_print()
2891 UNALIGNED_MEMCPY(&e, ext, sizeof(e)); in ikev2_sub_print()
2893 ND_TCHECK2(*ext, ntohs(e.len)); in ikev2_sub_print()
2901 ext, ep, phase, doi, proto, depth); in ikev2_sub_print()
2911 ext = (const struct isakmp_gen *)cp; in ikev2_sub_print()
2947 const struct isakmp_gen *ext; in ikev2_print() local
2964 ext = (const struct isakmp_gen *)(p + 1); in ikev2_print()
2965 ikev2_sub_print(ndo, base, np, ext, ep, phase, 0, 0, 0); in ikev2_print()