Lines Matching refs:u_char
58 typedef u_char cookie_t[8];
59 typedef u_char msgid_t[4];
579 #define DECLARE_PRINTER(func) static const u_char *ike##func##_print( \
580 netdissect_options *ndo, u_char tpay, \
583 const u_char *end_pointer, \
616 static const u_char *ikev2_e_print(netdissect_options *ndo,
618 u_char tpay,
621 const u_char *end_pointer,
627 static const u_char *ike_sub0_print(netdissect_options *ndo,u_char, const struct isakmp_gen *,
628 const u_char *, uint32_t, uint32_t, uint32_t, int);
629 static const u_char *ikev1_sub_print(netdissect_options *ndo,u_char, const struct isakmp_gen *,
630 const u_char *, uint32_t, uint32_t, uint32_t, int);
632 static const u_char *ikev2_sub_print(netdissect_options *ndo,
634 u_char np, const struct isakmp_gen *ext,
635 const u_char *ep, uint32_t phase,
644 const u_char *bp, u_int length,
645 const u_char *bp2, struct isakmp *base);
683 static const u_char *(*npfunc[])(netdissect_options *ndo, u_char tpay,
686 const u_char *end_pointer,
745 if (ep < (u_char *)(p)) { \
756 iszero(u_char *p, size_t l) in iszero()
781 cookie_record(cookie_t *in, const u_char *bp2) in cookie_record()
820 cookie_sidecheck(int i, const u_char *bp2, int initiator) in cookie_sidecheck()
864 u_char *p; in hexprint()
867 p = (u_char *)loc; in hexprint()
888 const u_char *cp, const u_char *ep) in ike_show_somedata()
891 const u_char *end = ep - 20; in ike_show_somedata()
923 static const u_char *
925 const u_char *p, const u_char *ep, in ikev1_attrmap_print()
961 static const u_char *
962 ikev1_attr_print(netdissect_options *ndo, const u_char *p, const u_char *ep) in ikev1_attr_print()
991 static const u_char *
992 ikev1_sa_print(netdissect_options *ndo, u_char tpay _U_, in ikev1_sa_print()
995 const u_char *ep, uint32_t phase, uint32_t doi0 _U_, in ikev1_sa_print()
1001 const u_char *cp, *np; in ikev1_sa_print()
1014 return (u_char *)(p + 1); in ikev1_sa_print()
1031 np = (u_char *)ext + sizeof(sa); in ikev1_sa_print()
1051 static const u_char *
1052 ikev1_p_print(netdissect_options *ndo, u_char tpay _U_, in ikev1_p_print()
1054 const u_char *ep, uint32_t phase, uint32_t doi0, in ikev1_p_print()
1059 const u_char *cp; in ikev1_p_print()
1074 ext = (struct isakmp_gen *)((u_char *)(p + 1) + prop.spi_size); in ikev1_p_print()
1214 static const u_char *
1215 ikev1_t_print(netdissect_options *ndo, u_char tpay _U_, in ikev1_t_print()
1217 const u_char *ep, uint32_t phase _U_, uint32_t doi _U_, in ikev1_t_print()
1222 const u_char *cp; in ikev1_t_print()
1226 const u_char *ep2; in ikev1_t_print()
1266 cp = (u_char *)(p + 1); in ikev1_t_print()
1267 ep2 = (u_char *)p + item_len; in ikev1_t_print()
1283 static const u_char *
1284 ikev1_ke_print(netdissect_options *ndo, u_char tpay _U_, in ikev1_ke_print()
1286 const u_char *ep _U_, uint32_t phase _U_, uint32_t doi _U_, in ikev1_ke_print()
1301 return (u_char *)ext + ntohs(e.len); in ikev1_ke_print()
1307 static const u_char *
1308 ikev1_id_print(netdissect_options *ndo, u_char tpay _U_, in ikev1_id_print()
1310 const u_char *ep _U_, uint32_t phase, uint32_t doi _U_, in ikev1_id_print()
1325 const u_char *data; in ikev1_id_print()
1333 data = (u_char *)(p + 1); in ikev1_id_print()
1398 const u_char *mask; in ikev1_id_print()
1420 const u_char *mask; in ikev1_id_print()
1424 mask = (u_char *)(data + sizeof(struct in6_addr)); in ikev1_id_print()
1475 return (u_char *)ext + item_len; in ikev1_id_print()
1481 static const u_char *
1482 ikev1_cert_print(netdissect_options *ndo, u_char tpay _U_, in ikev1_cert_print()
1484 const u_char *ep _U_, uint32_t phase _U_, in ikev1_cert_print()
1508 return (u_char *)ext + item_len; in ikev1_cert_print()
1514 static const u_char *
1515 ikev1_cr_print(netdissect_options *ndo, u_char tpay _U_, in ikev1_cr_print()
1517 const u_char *ep _U_, uint32_t phase _U_, uint32_t doi0 _U_, in ikev1_cr_print()
1540 return (u_char *)ext + item_len; in ikev1_cr_print()
1546 static const u_char *
1547 ikev1_hash_print(netdissect_options *ndo, u_char tpay _U_, in ikev1_hash_print()
1549 const u_char *ep _U_, uint32_t phase _U_, uint32_t doi _U_, in ikev1_hash_print()
1564 return (u_char *)ext + ntohs(e.len); in ikev1_hash_print()
1570 static const u_char *
1571 ikev1_sig_print(netdissect_options *ndo, u_char tpay _U_, in ikev1_sig_print()
1573 const u_char *ep _U_, uint32_t phase _U_, uint32_t doi _U_, in ikev1_sig_print()
1588 return (u_char *)ext + ntohs(e.len); in ikev1_sig_print()
1594 static const u_char *
1595 ikev1_nonce_print(netdissect_options *ndo, u_char tpay _U_, in ikev1_nonce_print()
1598 const u_char *ep _U_, 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()
1624 static const u_char *
1625 ikev1_n_print(netdissect_options *ndo, u_char tpay _U_, in ikev1_n_print()
1627 const u_char *ep, uint32_t phase, uint32_t doi0 _U_, in ikev1_n_print()
1631 const u_char *cp; in ikev1_n_print()
1632 u_char *ep2; in ikev1_n_print()
1704 return (u_char *)(p + 1) + n.spi_size; in ikev1_n_print()
1725 cp = (u_char *)(p + 1) + n.spi_size; in ikev1_n_print()
1726 ep2 = (u_char *)p + item_len; in ikev1_n_print()
1759 return (u_char *)ext + item_len; in ikev1_n_print()
1765 static const u_char *
1766 ikev1_d_print(netdissect_options *ndo, u_char tpay _U_, in ikev1_d_print()
1768 const u_char *ep _U_, uint32_t phase _U_, uint32_t doi0 _U_, in ikev1_d_print()
1809 static const u_char *
1810 ikev1_vid_print(netdissect_options *ndo, u_char tpay _U_, in ikev1_vid_print()
1812 u_int item_len _U_, const u_char *ep _U_, in ikev1_vid_print()
1828 return (u_char *)ext + ntohs(e.len); in ikev1_vid_print()
1846 static const u_char *
1847 ikev2_gen_print(netdissect_options *ndo, u_char tpay, in ikev2_gen_print()
1862 return (u_char *)ext + ntohs(e.len); in ikev2_gen_print()
1868 static const u_char *
1869 ikev2_t_print(netdissect_options *ndo, u_char tpay _U_, int pcount, in ikev2_t_print()
1871 const u_char *ep, uint32_t phase _U_, uint32_t doi _U_, in ikev2_t_print()
1877 const u_char *cp; in ikev2_t_print()
1881 const u_char *ep2; in ikev2_t_print()
1929 cp = (u_char *)(p + 1); in ikev2_t_print()
1930 ep2 = (u_char *)p + item_len; in ikev2_t_print()
1946 static const u_char *
1947 ikev2_p_print(netdissect_options *ndo, u_char tpay _U_, int pcount _U_, in ikev2_p_print()
1949 const u_char *ep, uint32_t phase, uint32_t doi0, in ikev2_p_print()
1954 const u_char *cp; in ikev2_p_print()
1970 ext = (struct isakmp_gen *)((u_char *)(p + 1) + prop.spi_size); in ikev2_p_print()
1982 static const u_char *
1983 ikev2_sa_print(netdissect_options *ndo, u_char tpay, in ikev2_sa_print()
1985 u_int item_len _U_, const u_char *ep _U_, in ikev2_sa_print()
2004 return (u_char *)ext1 + osa_length; in ikev2_sa_print()
2010 static const u_char *
2011 ikev2_ke_print(netdissect_options *ndo, u_char tpay, in ikev2_ke_print()
2013 u_int item_len _U_, const u_char *ep _U_, in ikev2_ke_print()
2033 return (u_char *)ext + ntohs(ke.h.len); in ikev2_ke_print()
2039 static const u_char *
2040 ikev2_ID_print(netdissect_options *ndo, u_char tpay, in ikev2_ID_print()
2042 u_int item_len _U_, const u_char *ep _U_, in ikev2_ID_print()
2115 return (u_char *)ext + id_len; in ikev2_ID_print()
2121 static const u_char *
2122 ikev2_cert_print(netdissect_options *ndo, u_char tpay, in ikev2_cert_print()
2124 u_int item_len _U_, const u_char *ep _U_, in ikev2_cert_print()
2131 static const u_char *
2132 ikev2_cr_print(netdissect_options *ndo, u_char tpay, in ikev2_cr_print()
2134 u_int item_len _U_, const u_char *ep _U_, in ikev2_cr_print()
2141 static const u_char *
2142 ikev2_auth_print(netdissect_options *ndo, u_char tpay, in ikev2_auth_print()
2144 u_int item_len _U_, const u_char *ep _U_, in ikev2_auth_print()
2151 u_char *authdata = (u_char*)ext + sizeof(a); in ikev2_auth_print()
2171 return (u_char *)ext + len; in ikev2_auth_print()
2177 static const u_char *
2178 ikev2_nonce_print(netdissect_options *ndo, u_char tpay, in ikev2_nonce_print()
2180 u_int item_len _U_, const u_char *ep _U_, 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()
2207 static const u_char *
2208 ikev2_n_print(netdissect_options *ndo, u_char tpay _U_, in ikev2_n_print()
2210 u_int item_len _U_, const u_char *ep _U_, in ikev2_n_print()
2215 const u_char *cp; in ikev2_n_print()
2216 u_char showspi, showdata, showsomedata; in ikev2_n_print()
2391 cp = (u_char *)(p + 1) + n.spi_size; in ikev2_n_print()
2408 return (u_char *)ext + item_len; in ikev2_n_print()
2414 static const u_char *
2415 ikev2_d_print(netdissect_options *ndo, u_char tpay, in ikev2_d_print()
2417 u_int item_len _U_, const u_char *ep _U_, in ikev2_d_print()
2424 static const u_char *
2425 ikev2_vid_print(netdissect_options *ndo, u_char tpay, in ikev2_vid_print()
2427 u_int item_len _U_, const u_char *ep _U_, in ikev2_vid_print()
2432 const u_char *vid; in ikev2_vid_print()
2440 vid = (const u_char *)(ext+1); in ikev2_vid_print()
2452 return (u_char *)ext + ntohs(e.len); in ikev2_vid_print()
2458 static const u_char *
2459 ikev2_TS_print(netdissect_options *ndo, u_char tpay, in ikev2_TS_print()
2461 u_int item_len _U_, const u_char *ep _U_, in ikev2_TS_print()
2468 static const u_char *
2474 u_char tpay, in ikev2_e_print()
2476 u_int item_len _U_, const u_char *ep _U_, in ikev2_e_print()
2495 u_char *dat; in ikev2_e_print()
2511 dat = (u_char *)(ext+1); in ikev2_e_print()
2539 static const u_char *
2540 ikev2_cp_print(netdissect_options *ndo, u_char tpay, in ikev2_cp_print()
2542 u_int item_len _U_, const u_char *ep _U_, in ikev2_cp_print()
2549 static const u_char *
2550 ikev2_eap_print(netdissect_options *ndo, u_char tpay, in ikev2_eap_print()
2552 u_int item_len _U_, const u_char *ep _U_, in ikev2_eap_print()
2559 static const u_char *
2561 u_char np, const struct isakmp_gen *ext, const u_char *ep, in ike_sub0_print()
2565 const u_char *cp; in ike_sub0_print()
2569 cp = (u_char *)ext; in ike_sub0_print()
2600 static const u_char *
2602 u_char np, const struct isakmp_gen *ext, const u_char *ep, in ikev1_sub_print()
2605 const u_char *cp; in ikev1_sub_print()
2609 cp = (const u_char *)ext; in ikev1_sub_print()
2651 const u_char *bp, u_int length, in ikev1_print()
2652 const u_char *bp2, struct isakmp *base) in ikev1_print()
2655 const u_char *ep; in ikev1_print()
2656 u_char np; in ikev1_print()
2671 if (iszero((u_char *)&base->r_ck, sizeof(base->r_ck))) { in ikev1_print()
2723 static const u_char *
2725 u_char np, int pcount, in ikev2_sub0_print()
2726 const struct isakmp_gen *ext, const u_char *ep, in ikev2_sub0_print()
2729 const u_char *cp; in ikev2_sub0_print()
2733 cp = (u_char *)ext; in ikev2_sub0_print()
2774 static const u_char *
2777 u_char np, const struct isakmp_gen *ext, const u_char *ep, in ikev2_sub_print()
2780 const u_char *cp; in ikev2_sub_print()
2785 cp = (const u_char *)ext; in ikev2_sub_print()
2821 const u_char *bp, u_int length, in ikev2_print()
2822 const u_char *bp2 _U_, struct isakmp *base) in ikev2_print()
2825 const u_char *ep; in ikev2_print()
2826 u_char np; in ikev2_print()
2879 const u_char *bp, u_int length, in isakmp_print()
2880 const u_char *bp2) in isakmp_print()
2884 const u_char *ep; in isakmp_print()
2941 const u_char *bp, u_int length, in isakmp_rfc3948_print()
2942 const u_char *bp2) in isakmp_rfc3948_print()