/external/tcpdump/ |
D | interface.h | 122 (const u_char *)&(var) <= snapend - (l)) 136 extern int fn_print(const u_char *, const u_char *); 137 extern int fn_printn(const u_char *, u_int, const u_char *); 138 extern int fn_printzp(const u_char *, u_int, const u_char *); 163 extern const char *isonsap_string(const u_char *, register u_int); 164 extern const char *protoid_string(const u_char *); 171 extern u_int16_t verify_crc10_cksum(u_int16_t, const u_char *, int); 178 extern int print_unknown_data(const u_char *, const char *,int); 179 extern void ascii_print(const u_char *, u_int); 180 extern void hex_and_ascii_print_with_offset(const char *, const u_char *, [all …]
|
D | netdissect.h | 148 const u_char *ndo_packetp; 149 const u_char *ndo_snapend; 156 register const u_char *bp, register u_int length); 241 (const u_char *)&(var) <= ndo->ndo_snapend - (l)) 261 extern int fn_print(const u_char *, const u_char *); 262 extern int fn_printn(const u_char *, u_int, const u_char *); 315 extern const char *isonsap_string(netdissect_options *, const u_char *); 316 extern const char *protoid_string(netdissect_options *, const u_char *); 326 const struct pcap_pkthdr *, const u_char *); 327 typedef u_int (*if_printer)(const struct pcap_pkthdr *, const u_char *); [all …]
|
D | print-dvmrp.c | 65 static int print_probe(const u_char *, const u_char *, u_int); 66 static int print_report(const u_char *, const u_char *, u_int); 67 static int print_neighbors(const u_char *, const u_char *, u_int); 68 static int print_neighbors2(const u_char *, const u_char *, u_int); 69 static int print_prune(const u_char *); 70 static int print_graft(const u_char *); 71 static int print_graft_ack(const u_char *); 76 dvmrp_print(register const u_char *bp, register u_int len) in dvmrp_print() 78 register const u_char *ep; in dvmrp_print() 79 register u_char type; in dvmrp_print() [all …]
|
D | print-isakmp.c | 70 #define DECLARE_PRINTER(func) static const u_char *ike##func##_print( \ 71 netdissect_options *ndo, u_char tpay, \ 74 const u_char *end_pointer, \ 107 static const u_char *ikev2_e_print(netdissect_options *ndo, 109 u_char tpay, 112 const u_char *end_pointer, 118 static const u_char *ike_sub0_print(netdissect_options *ndo,u_char, const struct isakmp_gen *, 119 const u_char *, u_int32_t, u_int32_t, u_int32_t, int); 120 static const u_char *ikev1_sub_print(netdissect_options *ndo,u_char, const struct isakmp_gen *, 121 const u_char *, u_int32_t, u_int32_t, u_int32_t, int); [all …]
|
D | print-udp.c | 204 static const u_char * 205 rtcp_print(const u_char *hdr, const u_char *ep) in rtcp_print() 215 if ((u_char *)(rh + 1) > ep) { in rtcp_print() 230 if ((u_char *)(sr + 1) > ep) { in rtcp_print() 269 if ((u_char *)(rr + 1) > ep) { in rtcp_print() 359 udp_print(register const u_char *bp, u_int length, in udp_print() 360 register const u_char *bp2, int fragmented) in udp_print() 364 register const u_char *cp; in udp_print() 365 register const u_char *ep = bp + length; in udp_print() 381 cp = (u_char *)(up + 1); in udp_print() [all …]
|
D | print-rpki-rtr.c | 46 u_char version; /* Version number */ 47 u_char pdu_type; /* PDU type */ 49 u_char session_id[2]; /* Session id */ 50 u_char error_code[2]; /* Error code */ 52 u_char length[4]; 61 u_char flags; 62 u_char prefix_length; 63 u_char max_length; 64 u_char zero; 65 u_char prefix[4]; [all …]
|
D | print-arp.c | 62 u_char ar_hln; /* length of hardware address */ 63 u_char ar_pln; /* length of protocol address */ 78 u_char ar_sha[]; /* sender hardware address */ 79 u_char ar_spa[]; /* sender protocol address */ 80 u_char ar_tha[]; /* target hardware address */ 81 u_char ar_tpa[]; /* target protocol address */ 83 #define ar_sha(ap) (((const u_char *)((ap)+1))+0) 84 #define ar_spa(ap) (((const u_char *)((ap)+1))+ (ap)->ar_hln) 85 #define ar_tha(ap) (((const u_char *)((ap)+1))+ (ap)->ar_hln+(ap)->ar_pln) 86 #define ar_tpa(ap) (((const u_char *)((ap)+1))+2*(ap)->ar_hln+(ap)->ar_pln) [all …]
|
D | print-l2tp.c | 237 print_string(const u_char *dat, u_int length) in print_string() 246 print_octets(const u_char *dat, u_int length) in print_octets() 270 l2tp_msgtype_print(const u_char *dat) in l2tp_msgtype_print() 279 l2tp_result_code_print(const u_char *dat, u_int length) in l2tp_result_code_print() 289 print_string((u_char *)ptr, length - 4); in l2tp_result_code_print() 301 l2tp_framing_cap_print(const u_char *dat) in l2tp_framing_cap_print() 314 l2tp_bearer_cap_print(const u_char *dat) in l2tp_bearer_cap_print() 327 l2tp_q931_cc_print(const u_char *dat, u_int length) in l2tp_q931_cc_print() 338 l2tp_bearer_type_print(const u_char *dat) in l2tp_bearer_type_print() 351 l2tp_framing_type_print(const u_char *dat) in l2tp_framing_type_print() [all …]
|
D | print-mptcp.c | 52 static int dummy_print(const u_char *opt _U_, u_int opt_len _U_, u_char flags _U_) in dummy_print() 57 static int mp_capable_print(const u_char *opt, u_int opt_len, u_char flags) in mp_capable_print() 79 static int mp_join_print(const u_char *opt, u_int opt_len, u_char flags) in mp_join_print() 145 static int mp_dss_print(const u_char *opt, u_int opt_len, u_char flags) in mp_dss_print() 188 static int add_addr_print(const u_char *opt, u_int opt_len, u_char flags _U_) in add_addr_print() 218 static int remove_addr_print(const u_char *opt, u_int opt_len, u_char flags _U_) in remove_addr_print() 233 static int mp_prio_print(const u_char *opt, u_int opt_len, u_char flags _U_) in mp_prio_print() 250 static int mp_fail_print(const u_char *opt, u_int opt_len, u_char flags _U_) in mp_fail_print() 259 static int mp_fast_close_print(const u_char *opt, u_int opt_len, u_char flags _U_) in mp_fast_close_print() 270 int (*print)(const u_char *, u_int, u_char); [all …]
|
D | print-krb.c | 41 static const u_char *c_print(register const u_char *, register const u_char *); 42 static const u_char *krb4_print_hdr(const u_char *); 43 static void krb4_print(const u_char *); 102 static const u_char * 103 c_print(register const u_char *s, register const u_char *ep) in c_print() 105 register u_char c; in c_print() 131 static const u_char * 132 krb4_print_hdr(const u_char *cp) in krb4_print_hdr() 153 krb4_print(const u_char *cp) in krb4_print() 156 u_char type; in krb4_print() [all …]
|
D | print-openflow-1.0.c | 614 static const u_char * 615 of10_data_print(const u_char *cp, const u_char *ep, const u_int len) { in of10_data_print() 631 static const u_char * 632 of10_vendor_data_print(const u_char *cp, const u_char *ep, const u_int len) { in of10_vendor_data_print() 651 static const u_char * 652 of10_packet_data_print(const u_char *cp, const u_char *ep, const u_int len) { in of10_packet_data_print() 672 static const u_char * 673 of10_phy_ports_print(const u_char *cp, const u_char *ep, u_int len) { in of10_phy_ports_print() 674 const u_char *cp0 = cp; in of10_phy_ports_print() 745 static const u_char * [all …]
|
D | print-atalk.c | 69 static void atp_bitmap_print(u_char); 70 static void nbp_print(const struct atNBP *, u_int, u_short, u_char, u_char); 71 static const char *print_cstring(const char *, const u_char *); 73 const u_char *, 74 u_short, u_char, u_char); 76 const u_char *); 77 static const char *ataddr_string(u_short, u_char); 78 static void ddp_print(const u_char *, u_int, int, u_short, u_char, u_char); 85 ltalk_if_print(const struct pcap_pkthdr *h, const u_char *p) in ltalk_if_print() 94 llap_print(register const u_char *bp, u_int length) in llap_print() [all …]
|
D | print-smb.c | 30 const u_char *startbuf = NULL; 37 void (*fn)(const u_char *, const u_char *, const u_char *, const u_char *); 45 void (*fn)(const u_char *, const u_char *, int, int); 93 trans2_findfirst(const u_char *param, const u_char *data, int pcnt, int dcnt) in trans2_findfirst() 110 trans2_qfsinfo(const u_char *param, const u_char *data, int pcnt, int dcnt) in trans2_qfsinfo() 173 print_trans2(const u_char *words, const u_char *dat, const u_char *buf, const u_char *maxbuf) in print_trans2() 177 const u_char *data, *param; in print_trans2() 178 const u_char *w = words + 1; in print_trans2() 243 print_browse(const u_char *param, int paramlen, const u_char *data, int datalen) in print_browse() 245 const u_char *maxbuf = data + datalen; in print_browse() [all …]
|
D | print-dhcp6.c | 336 dhcp6opt_print(const u_char *cp, const u_char *ep) in dhcp6opt_print() 339 const u_char *tp; in dhcp6opt_print() 370 tp = (u_char *)(dh6o + 1); in dhcp6opt_print() 422 tp = (u_char *)(dh6o + 1); in dhcp6opt_print() 439 tp = (u_char *)(dh6o + 1); in dhcp6opt_print() 451 tp = (u_char *)(dh6o + 1); in dhcp6opt_print() 459 tp = (u_char *)(dh6o + 1); in dhcp6opt_print() 464 tp = (u_char *)(dh6o + 1); in dhcp6opt_print() 473 tp = (u_char *)(dh6o + 1); in dhcp6opt_print() 568 tp = (u_char *)(dh6o + 1); in dhcp6opt_print() [all …]
|
/external/libpcap/ |
D | pcap.c | 202 pcap_oneshot(u_char *user, const struct pcap_pkthdr *h, const u_char *pkt) in pcap_oneshot() 210 const u_char * 214 const u_char *pkt; in pcap_next() 219 if (pcap_dispatch(p, 1, p->oneshot_callback, (u_char *)&s) <= 0) in pcap_next() 226 const u_char **pkt_data) in pcap_next_ex() 242 (u_char *)&s); in pcap_next_ex() 271 return (p->read_op(p, 1, p->oneshot_callback, (u_char *)&s)); in pcap_next_ex() 824 pcap_dispatch(pcap_t *p, int cnt, pcap_handler callback, u_char *user) in pcap_dispatch() 833 pcap_read(pcap_t *p, int cnt, pcap_handler callback, u_char *user) in pcap_read() 840 pcap_loop(pcap_t *p, int cnt, pcap_handler callback, u_char *user) in pcap_loop() [all …]
|
/external/ppp/pppd/ |
D | chap_ms.c | 104 static void ascii2unicode __P((char[], int, u_char[])); 105 static void NTPasswordHash __P((u_char *, int, u_char[MD4_SIGNATURE_SIZE])); 106 static void ChallengeResponse __P((u_char *, u_char *, u_char[24])); 107 static void ChapMS_NT __P((u_char *, char *, int, u_char[24])); 108 static void ChapMS2_NT __P((u_char *, u_char[16], char *, char *, int, 109 u_char[24])); 111 __P((char*, int, u_char[24], u_char[16], u_char *, 112 char *, u_char[41])); 114 static void ChapMS_LANMan __P((u_char *, char *, int, u_char *)); 118 static void Set_Start_Key __P((u_char *, char *, int)); [all …]
|
D | chap_ms.h | 72 extern u_char mppe_send_key[MPPE_MAX_KEY_LEN]; 73 extern u_char mppe_recv_key[MPPE_MAX_KEY_LEN]; 90 void ChapMS __P((u_char *, char *, int, u_char *)); 91 void ChapMS2 __P((u_char *, u_char *, char *, char *, int, 92 u_char *, u_char[MS_AUTH_RESPONSE_LENGTH+1], int)); 94 void mppe_set_keys __P((u_char *, u_char[MD4_SIGNATURE_SIZE])); 95 void mppe_set_keys2(u_char PasswordHashHash[MD4_SIGNATURE_SIZE], 96 u_char NTResponse[24], int IsServer); 99 void ChallengeHash __P((u_char[16], u_char *, char *, u_char[8])); 101 void GenerateAuthenticatorResponse(u_char PasswordHashHash[MD4_SIGNATURE_SIZE], [all …]
|
D | pppcrypt.c | 56 static u_char 58 u_char *input; in Get7Bits() 73 u_char *key; /* IN 56 bit DES key missing parity bits */ in MakeKey() 74 u_char *des_key; /* OUT 64 bit DES key with parity bits added */ 98 u_char *in; in Expand() 99 u_char *out; 116 u_char *in; in Collapse() 117 u_char *out; 133 u_char *key; in DesSetkey() 135 u_char des_key[8]; [all …]
|
D | fsm.h | 71 u_char id; /* Current id */ 72 u_char reqid; /* Current request id */ 73 u_char seen_ack; /* Have received valid Ack/Nak/Rej to Req */ 93 __P((fsm *, u_char *, int *)); 95 __P((fsm *, u_char *, int)); 97 __P((fsm *, u_char *, int, int)); 99 __P((fsm *, u_char *, int)); 101 __P((fsm *, u_char *, int *, int)); 115 __P((fsm *, int, int, u_char *, int)); 160 void fsm_input __P((fsm *, u_char *, int)); [all …]
|
/external/openssh/ |
D | kex.h | 108 u_char *key; 109 u_char *iv; 125 u_char *session_id; 149 u_char **, size_t *, const u_char *, size_t, u_int); 156 u_char c25519_client_key[CURVE25519_SIZE]; /* 25519 */ 157 u_char c25519_client_pubkey[CURVE25519_SIZE]; /* 25519 */ 174 int kex_derive_keys(struct ssh *, u_char *, u_int, const struct sshbuf *); 175 int kex_derive_keys_bn(struct ssh *, u_char *, u_int, const BIGNUM *); 188 const u_char *, size_t, const u_char *, size_t, const u_char *, size_t, 189 const BIGNUM *, const BIGNUM *, const BIGNUM *, u_char *, size_t *); [all …]
|
D | sshbuf.h | 41 u_char *d; /* Data */ 42 const u_char *cd; /* Const data */ 125 const u_char *sshbuf_ptr(const struct sshbuf *buf); 131 u_char *sshbuf_mutable_ptr(const struct sshbuf *buf); 146 int sshbuf_reserve(struct sshbuf *buf, size_t len, u_char **dpp); 174 int sshbuf_get_u8(struct sshbuf *buf, u_char *valp); 178 int sshbuf_put_u8(struct sshbuf *buf, u_char val); 185 int sshbuf_get_string(struct sshbuf *buf, u_char **valp, size_t *lenp); 197 int sshbuf_get_string_direct(struct sshbuf *buf, const u_char **valp, 204 int sshbuf_peek_string_direct(const struct sshbuf *buf, const u_char **valp, [all …]
|
D | umac.h | 55 struct umac_ctx *umac_new(const u_char key[]); 65 int umac_update(struct umac_ctx *ctx, const u_char *input, long len); 68 int umac_final(struct umac_ctx *ctx, u_char tag[], const u_char nonce[8]); 77 int umac(struct umac_ctx *ctx, u_char *input, 78 long len, u_char tag[], 79 u_char nonce[8]); 91 uhash_ctx_t uhash_alloc(u_char key[16]); 106 u_char *input, 110 u_char ouput[]); 113 u_char *input, [all …]
|
D | sshkey.h | 108 u_char *ed25519_sk; 109 u_char *ed25519_pk; 127 int, u_char **retp, size_t *lenp); 162 int sshkey_from_blob(const u_char *, size_t, struct sshkey **); 165 int sshkey_to_blob(const struct sshkey *, u_char **, size_t *); 168 int sshkey_plain_to_blob(const struct sshkey *, u_char **, size_t *); 171 int sshkey_sign(const struct sshkey *, u_char **, size_t *, 172 const u_char *, size_t, u_int); 173 int sshkey_verify(const struct sshkey *, const u_char *, size_t, 174 const u_char *, size_t, u_int); [all …]
|
D | kexc25519.c | 47 extern int crypto_scalarmult_curve25519(u_char a[CURVE25519_SIZE], 48 const u_char b[CURVE25519_SIZE], const u_char c[CURVE25519_SIZE]) 54 kexc25519_keygen(u_char key[CURVE25519_SIZE], u_char pub[CURVE25519_SIZE]) in kexc25519_keygen() 56 static const u_char basepoint[CURVE25519_SIZE] = {9}; in kexc25519_keygen() 63 kexc25519_shared_key(const u_char key[CURVE25519_SIZE], in kexc25519_shared_key() 64 const u_char pub[CURVE25519_SIZE], struct sshbuf *out) in kexc25519_shared_key() 66 u_char shared_key[CURVE25519_SIZE]; in kexc25519_shared_key() 86 const u_char *serverhostkeyblob, size_t sbloblen, in kex_c25519_hash() 87 const u_char client_dh_pub[CURVE25519_SIZE], in kex_c25519_hash() 88 const u_char server_dh_pub[CURVE25519_SIZE], in kex_c25519_hash() [all …]
|
D | sshbuf-getput-basic.c | 32 const u_char *p = sshbuf_ptr(buf); in sshbuf_get() 45 const u_char *p = sshbuf_ptr(buf); in sshbuf_get_u64() 58 const u_char *p = sshbuf_ptr(buf); in sshbuf_get_u32() 71 const u_char *p = sshbuf_ptr(buf); in sshbuf_get_u16() 82 sshbuf_get_u8(struct sshbuf *buf, u_char *valp) in sshbuf_get_u8() 84 const u_char *p = sshbuf_ptr(buf); in sshbuf_get_u8() 95 sshbuf_get_string(struct sshbuf *buf, u_char **valp, size_t *lenp) in sshbuf_get_string() 97 const u_char *val; in sshbuf_get_string() 122 sshbuf_get_string_direct(struct sshbuf *buf, const u_char **valp, size_t *lenp) in sshbuf_get_string_direct() 125 const u_char *p; in sshbuf_get_string_direct() [all …]
|