Home
last modified time | relevance | path

Searched refs:u_char (Results 1 – 25 of 458) sorted by relevance

12345678910>>...19

/external/tcpdump/
Dnetdissect.h138 #define IF_PRINTER_ARGS (netdissect_options *, const struct pcap_pkthdr *, const u_char *)
176 const u_char *ndo_packetp;
177 const u_char *ndo_snapend;
184 register const u_char *bp, register u_int length);
328 extern void fn_print_char(netdissect_options *, u_char);
329 extern int fn_print(netdissect_options *, const u_char *, const u_char *);
330 extern u_int fn_printztn(netdissect_options *ndo, const u_char *, u_int, const u_char *);
331 extern int fn_printn(netdissect_options *, const u_char *, u_int, const u_char *);
332 extern int fn_printzp(netdissect_options *, const u_char *, u_int, const u_char *);
339 extern void txtproto_print(netdissect_options *, const u_char *, u_int,
[all …]
Dprint-dvmrp.c58 static int print_probe(netdissect_options *, const u_char *, const u_char *, u_int);
59 static int print_report(netdissect_options *, const u_char *, const u_char *, u_int);
60 static int print_neighbors(netdissect_options *, const u_char *, const u_char *, u_int);
61 static int print_neighbors2(netdissect_options *, const u_char *, const u_char *, u_int);
62 static int print_prune(netdissect_options *, const u_char *);
63 static int print_graft(netdissect_options *, const u_char *);
64 static int print_graft_ack(netdissect_options *, const u_char *);
70 register const u_char *bp, register u_int len) in dvmrp_print()
72 register const u_char *ep; in dvmrp_print()
73 register u_char type; in dvmrp_print()
[all …]
Dprint-isakmp.c58 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);
[all …]
Dprint-udp.c219 static const u_char *
220 rtcp_print(netdissect_options *ndo, const u_char *hdr, const u_char *ep) in rtcp_print()
230 if ((const u_char *)(rh + 1) > ep) in rtcp_print()
244 if ((const u_char *)(sr + 1) > ep) in rtcp_print()
282 if ((const u_char *)(rr + 1) > ep) in rtcp_print()
370 udp_print(netdissect_options *ndo, register const u_char *bp, u_int length, in udp_print()
371 register const u_char *bp2, int fragmented) in udp_print()
375 register const u_char *cp; in udp_print()
376 register const u_char *ep = bp + length; in udp_print()
416 cp = (const u_char *)(up + 1); in udp_print()
[all …]
Dprint-resp.c63 void resp_print(netdissect_options *, const u_char *, u_int);
64 static int resp_parse(netdissect_options *, register const u_char *, int);
65 static int resp_print_string_error_integer(netdissect_options *, register const u_char *, int);
66 static int resp_print_simple_string(netdissect_options *, register const u_char *, int);
67 static int resp_print_integer(netdissect_options *, register const u_char *, int);
68 static int resp_print_error(netdissect_options *, register const u_char *, int);
69 static int resp_print_bulk_string(netdissect_options *, register const u_char *, int);
70 static int resp_print_bulk_array(netdissect_options *, register const u_char *, int);
71 static int resp_print_inline(netdissect_options *, register const u_char *, int);
72 static int resp_get_length(netdissect_options *, register const u_char *, int, const u_char **);
[all …]
Dprint-rpki-rtr.c43 u_char version; /* Version number */
44 u_char pdu_type; /* PDU type */
46 u_char session_id[2]; /* Session id */
47 u_char error_code[2]; /* Error code */
49 u_char length[4];
58 u_char flags;
59 u_char prefix_length;
60 u_char max_length;
61 u_char zero;
62 u_char prefix[4];
[all …]
Dprint-arp.c60 u_char ar_hln; /* length of hardware address */
61 u_char ar_pln; /* length of protocol address */
76 u_char ar_sha[]; /* sender hardware address */
77 u_char ar_spa[]; /* sender protocol address */
78 u_char ar_tha[]; /* target hardware address */
79 u_char ar_tpa[]; /* target protocol address */
81 #define ar_sha(ap) (((const u_char *)((ap)+1))+ 0)
82 #define ar_spa(ap) (((const u_char *)((ap)+1))+ (ap)->ar_hln)
83 #define ar_tha(ap) (((const u_char *)((ap)+1))+ (ap)->ar_hln+(ap)->ar_pln)
84 #define ar_tpa(ap) (((const u_char *)((ap)+1))+2*(ap)->ar_hln+(ap)->ar_pln)
[all …]
Dprint-krb.c37 static const u_char *c_print(netdissect_options *, register const u_char *, register const u_char *…
38 static const u_char *krb4_print_hdr(netdissect_options *, const u_char *);
39 static void krb4_print(netdissect_options *, const u_char *);
96 static const u_char *
98 register const u_char *s, register const u_char *ep) in c_print()
100 register u_char c; in c_print()
125 static const u_char *
127 const u_char *cp) in krb4_print_hdr()
149 const u_char *cp) in krb4_print()
152 u_char type; in krb4_print()
[all …]
Dprint-openflow-1.0.c737 static const u_char *
739 const u_char *cp, const u_char *ep, const u_int len) in of10_data_print()
755 static const u_char *
757 const u_char *cp, const u_char *ep, const u_int len) in of10_bsn_message_print()
759 const u_char *cp0 = cp; in of10_bsn_message_print()
960 static const u_char *
962 const u_char *cp, const u_char *ep, const u_int len) in of10_bsn_actions_print()
964 const u_char *cp0 = cp; in of10_bsn_actions_print()
1034 static const u_char *
1036 const u_char *cp, const u_char *ep, const u_int len) in of10_vendor_action_print()
[all …]
Dprint-mptcp.c170 const u_char *opt _U_, u_int opt_len _U_, u_char flags _U_) in dummy_print()
177 const u_char *opt, u_int opt_len, u_char flags) in mp_capable_print()
201 const u_char *opt, u_int opt_len, u_char flags) in mp_join_print()
241 const u_char *opt, u_int opt_len, u_char flags) in mp_dss_print()
330 const u_char *opt, u_int opt_len, u_char flags _U_) in add_addr_print()
360 const u_char *opt, u_int opt_len, u_char flags _U_) in remove_addr_print()
377 const u_char *opt, u_int opt_len, u_char flags _U_) in mp_prio_print()
396 const u_char *opt, u_int opt_len, u_char flags _U_) in mp_fail_print()
407 const u_char *opt, u_int opt_len, u_char flags _U_) in mp_fast_close_print()
418 int (*print)(netdissect_options *, const u_char *, u_int, u_char);
[all …]
Dprint-l2tp.c267 print_string(netdissect_options *ndo, const u_char *dat, u_int length) in print_string()
276 print_octets(netdissect_options *ndo, const u_char *dat, u_int length) in print_octets()
300 l2tp_msgtype_print(netdissect_options *ndo, const u_char *dat, u_int length) in l2tp_msgtype_print()
313 l2tp_result_code_print(netdissect_options *ndo, const u_char *dat, u_int length) in l2tp_result_code_print()
341 print_string(ndo, (const u_char *)ptr, length); in l2tp_result_code_print()
356 l2tp_framing_cap_print(netdissect_options *ndo, const u_char *dat, u_int length) in l2tp_framing_cap_print()
373 l2tp_bearer_cap_print(netdissect_options *ndo, const u_char *dat, u_int length) in l2tp_bearer_cap_print()
390 l2tp_q931_cc_print(netdissect_options *ndo, const u_char *dat, u_int length) in l2tp_q931_cc_print()
407 l2tp_bearer_type_print(netdissect_options *ndo, const u_char *dat, u_int length) in l2tp_bearer_type_print()
424 l2tp_framing_type_print(netdissect_options *ndo, const u_char *dat, u_int length) in l2tp_framing_type_print()
[all …]
Daddrtoname.h42 extern const char *linkaddr_string(netdissect_options *, const u_char *, const unsigned int, const …
43 extern const char *etheraddr_string(netdissect_options *, const u_char *);
44 extern const char *le64addr_string(netdissect_options *, const u_char *);
48 extern const char *isonsap_string(netdissect_options *, const u_char *, register u_int);
50 extern const char *protoid_string(netdissect_options *, const u_char *);
52 extern const char *getname(netdissect_options *, const u_char *);
53 extern const char *getname6(netdissect_options *, const u_char *);
61 #define ipaddr_string(ndo, p) getname(ndo, (const u_char *)(p))
62 #define ip6addr_string(ndo, p) getname6(ndo, (const u_char *)(p))
Dprint-ahcp.c101 ahcp_time_print(netdissect_options *ndo, const u_char *cp, const u_char *ep) in ahcp_time_print()
129 ahcp_seconds_print(netdissect_options *ndo, const u_char *cp, const u_char *ep) in ahcp_seconds_print()
147 ahcp_ipv6_addresses_print(netdissect_options *ndo, const u_char *cp, const u_char *ep) in ahcp_ipv6_addresses_print()
171 ahcp_ipv4_addresses_print(netdissect_options *ndo, const u_char *cp, const u_char *ep) in ahcp_ipv4_addresses_print()
195 ahcp_ipv6_prefixes_print(netdissect_options *ndo, const u_char *cp, const u_char *ep) in ahcp_ipv6_prefixes_print()
219 ahcp_ipv4_prefixes_print(netdissect_options *ndo, const u_char *cp, const u_char *ep) in ahcp_ipv4_prefixes_print()
244 (* const data_decoders[AHCP1_OPT_MAX + 1])(netdissect_options *, const u_char *, const u_char *) = {
262 ahcp1_options_print(netdissect_options *ndo, const u_char *cp, const u_char *ep) in ahcp1_options_print()
303 ahcp1_body_print(netdissect_options *ndo, const u_char *cp, const u_char *ep) in ahcp1_body_print()
348 ahcp_print(netdissect_options *ndo, const u_char *cp, const u_int len) in ahcp_print()
[all …]
Dprint-ip6.c50 const u_char *cp; in ip6_finddst()
59 cp = (const u_char *)ip6; in ip6_finddst()
112 if ((const u_char *)(addr + 1) > ndo->ndo_snapend) in ip6_finddst()
214 ip6_print(netdissect_options *ndo, const u_char *bp, u_int length) in ip6_print()
219 const u_char *ipend; in ip6_print()
220 register const u_char *cp; in ip6_print()
279 cp = (const u_char *)ip6; in ip6_print()
288 if (cp == (const u_char *)(ip6 + 1) && in ip6_print()
309 advance = frag6_print(ndo, cp, (const u_char *)ip6); in ip6_print()
326 advance = mobility_print(ndo, cp, (const u_char *)ip6); in ip6_print()
[all …]
/external/ppp/pppd/
Dchap_ms.c104 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 …]
Dchap_ms.h72 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 …]
Dpppcrypt.c56 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 …]
Dfsm.h71 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/libpcap/
Dpcap.c347 u_char *user _U_) in pcap_read_not_initialized()
579 pcap_oneshot(u_char *user, const struct pcap_pkthdr *h, const u_char *pkt) in pcap_oneshot()
587 const u_char *
591 const u_char *pkt; in pcap_next()
596 if (pcap_dispatch(p, 1, p->oneshot_callback, (u_char *)&s) <= 0) in pcap_next()
603 const u_char **pkt_data) in pcap_next_ex()
619 (u_char *)&s); in pcap_next_ex()
648 return (p->read_op(p, 1, p->oneshot_callback, (u_char *)&s)); in pcap_next_ex()
2882 pcap_dispatch(pcap_t *p, int cnt, pcap_handler callback, u_char *user)
2888 pcap_loop(pcap_t *p, int cnt, pcap_handler callback, u_char *user)
[all …]
/external/openssh/
Dsshkey.h134 u_char *ed25519_sk;
135 u_char *ed25519_pk;
140 u_char *xmss_sk;
141 u_char *xmss_pk;
150 u_char *shielded_private;
152 u_char *shield_prekey;
173 int, u_char **retp, size_t *lenp);
205 typedef int sshkey_certify_signer(struct sshkey *, u_char **, size_t *,
206 const u_char *, size_t, const char *, const char *, u_int, void *);
224 int sshkey_from_blob(const u_char *, size_t, struct sshkey **);
[all …]
Dsshbuf.h41 u_char *d; /* Data */
42 const u_char *cd; /* Const data */
116 const u_char *sshbuf_ptr(const struct sshbuf *buf);
122 u_char *sshbuf_mutable_ptr(const struct sshbuf *buf);
145 int sshbuf_reserve(struct sshbuf *buf, size_t len, u_char **dpp);
173 int sshbuf_get_u8(struct sshbuf *buf, u_char *valp);
177 int sshbuf_put_u8(struct sshbuf *buf, u_char val);
187 u_char *valp);
196 int sshbuf_poke_u8(struct sshbuf *buf, size_t offset, u_char val);
204 int sshbuf_get_string(struct sshbuf *buf, u_char **valp, size_t *lenp);
[all …]
Dumac.h55 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 output[]);
113 u_char *input,
[all …]
Dsshbuf-getput-basic.c37 const u_char *p = sshbuf_ptr(buf); in sshbuf_get()
50 const u_char *p = sshbuf_ptr(buf); in sshbuf_get_u64()
63 const u_char *p = sshbuf_ptr(buf); in sshbuf_get_u32()
76 const u_char *p = sshbuf_ptr(buf); in sshbuf_get_u16()
87 sshbuf_get_u8(struct sshbuf *buf, u_char *valp) in sshbuf_get_u8()
89 const u_char *p = sshbuf_ptr(buf); in sshbuf_get_u8()
115 const u_char **p) in check_roffset()
129 const u_char *p = NULL; in sshbuf_peek_u64()
144 const u_char *p = NULL; in sshbuf_peek_u32()
159 const u_char *p = NULL; in sshbuf_peek_u16()
[all …]
Dkexc25519.c43 extern int crypto_scalarmult_curve25519(u_char a[CURVE25519_SIZE],
44 const u_char b[CURVE25519_SIZE], const u_char c[CURVE25519_SIZE])
50 kexc25519_keygen(u_char key[CURVE25519_SIZE], u_char pub[CURVE25519_SIZE]) in kexc25519_keygen()
52 static const u_char basepoint[CURVE25519_SIZE] = {9}; in kexc25519_keygen()
59 kexc25519_shared_key_ext(const u_char key[CURVE25519_SIZE], in kexc25519_shared_key_ext()
60 const u_char pub[CURVE25519_SIZE], struct sshbuf *out, int raw) in kexc25519_shared_key_ext()
62 u_char shared_key[CURVE25519_SIZE]; in kexc25519_shared_key_ext()
63 u_char zero[CURVE25519_SIZE]; in kexc25519_shared_key_ext()
85 kexc25519_shared_key(const u_char key[CURVE25519_SIZE], in kexc25519_shared_key()
86 const u_char pub[CURVE25519_SIZE], struct sshbuf *out) in kexc25519_shared_key()
[all …]
Dkex.h118 u_char *key;
119 u_char *iv;
135 u_char *session_id;
162 u_char **, size_t *, const u_char *, size_t, const char *);
169 u_char c25519_client_key[CURVE25519_SIZE]; /* 25519 + KEM */
170 u_char c25519_client_pubkey[CURVE25519_SIZE]; /* 25519 */
171 u_char sntrup4591761_client_key[crypto_kem_sntrup4591761_SECRETKEYBYTES]; /* KEM */
197 int kex_derive_keys(struct ssh *, u_char *, u_int, const struct sshbuf *);
234 const BIGNUM *, const u_char *, size_t,
235 u_char *, size_t *);
[all …]

12345678910>>...19