Home
last modified time | relevance | path

Searched refs:u8_t (Results 1 – 25 of 260) sorted by relevance

1234567891011

/third_party/lwip/src/include/lwip/prot/
Dnd6.h54 PACK_STRUCT_FLD_8(u8_t type);
55 PACK_STRUCT_FLD_8(u8_t code);
72 PACK_STRUCT_FLD_8(u8_t type);
73 PACK_STRUCT_FLD_8(u8_t code);
75 PACK_STRUCT_FLD_8(u8_t flags);
76 PACK_STRUCT_FLD_8(u8_t reserved[3]);
94 PACK_STRUCT_FLD_8(u8_t type);
95 PACK_STRUCT_FLD_8(u8_t code);
119 PACK_STRUCT_FLD_8(u8_t type);
120 PACK_STRUCT_FLD_8(u8_t code);
[all …]
Dip6.h88 PACK_STRUCT_FLD_8(u8_t _nexth);
90 PACK_STRUCT_FLD_8(u8_t _hoplim);
104 #define IP6H_NEXTH_P(hdr) ((u8_t *)(hdr) + 6)
109 #define IP6H_HOPLIM_SET(hdr, hl) (hdr)->_hoplim = (u8_t)(hl)
126 PACK_STRUCT_FLD_8(u8_t _opt_type);
128 PACK_STRUCT_FLD_8(u8_t _opt_dlen);
149 PACK_STRUCT_FLD_8(u8_t _nexth);
151 PACK_STRUCT_FLD_8(u8_t _hlen);
168 PACK_STRUCT_FLD_8(u8_t _nexth);
170 PACK_STRUCT_FLD_8(u8_t _hlen);
[all …]
/third_party/lwip/src/include/lwip/apps/
Dsnmp_core.h130 u8_t len;
136 u8_t len;
172 u8_t node_type;
205 u8_t asn1_type;
247 …snmp_err_t (*get_instance)(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* in…
248 …snmp_err_t (*get_next_instance)(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instanc…
255 u8_t base_oid_len;
259 #define SNMP_MIB_CREATE(oid_list, root_node) { (oid_list), (u8_t)LWIP_ARRAYSIZE(oid_list), root_nod…
269 u8_t snmp_oid_in_range(const u32_t *oid_in, u8_t oid_len, const struct snmp_oid_range *oid_ranges,
281 u8_t start_oid_len;
[all …]
Dsnmpv3.h75 void snmpv3_get_engine_id(const char **id, u8_t *len);
76 err_t snmpv3_set_engine_id(const char* id, u8_t len);
84 …nst char* username, snmpv3_auth_algo_t *auth_algo, u8_t *auth_key, snmpv3_priv_algo_t *priv_algo,
85 u8_t snmpv3_get_amount_of_users(void);
87 err_t snmpv3_get_username(char *username, u8_t index);
95 const u8_t *password, /* IN */
97 const u8_t *engineID, /* IN - pointer to snmpEngineID */
98 u8_t engineLength, /* IN - length of snmpEngineID */
99 u8_t *key); /* OUT - pointer to caller 16-octet buffer */
102 const u8_t *password, /* IN */
[all …]
Dsnmp.h65 u8_t type;
77 void snmp_set_mibs(const struct snmp_mib **mibs, u8_t num_mibs);
82 void snmp_trap_dst_enable(u8_t dst_idx, u8_t enable);
83 void snmp_trap_dst_ip_set(u8_t dst_idx, const ip_addr_t *dst);
106 void snmp_set_auth_traps_enabled(u8_t enable);
107 u8_t snmp_get_auth_traps_enabled(void);
109 u8_t snmp_v1_enabled(void);
110 u8_t snmp_v2c_enabled(void);
111 u8_t snmp_v3_enabled(void);
112 void snmp_v1_enable(u8_t enable);
[all …]
Dsntp.h51 void sntp_setoperatingmode(u8_t operating_mode);
52 u8_t sntp_getoperatingmode(void);
56 u8_t sntp_enabled(void);
58 void sntp_setserver(u8_t idx, const ip_addr_t *addr);
59 const ip_addr_t* sntp_getserver(u8_t idx);
62 u8_t sntp_getreachability(u8_t idx);
66 void sntp_setservername(u8_t idx, const char *server);
67 const char *sntp_getservername(u8_t idx);
/third_party/lwip/src/apps/snmp/
Dsnmp_msg.h88 u8_t version;
90 u8_t community[SNMP_MAX_COMMUNITY_STR_LEN + 1];
94 u8_t request_type;
107 u8_t request_out_type;
112 u8_t msg_flags;
114 u8_t msg_authoritative_engine_id[SNMP_V3_MAX_ENGINE_ID_LENGTH];
115 u8_t msg_authoritative_engine_id_len;
118 u8_t msg_user_name[SNMP_V3_MAX_USER_LENGTH];
119 u8_t msg_user_name_len;
120 u8_t msg_authentication_parameters[SNMP_V3_MAX_AUTH_PARAM_LENGTH];
[all …]
Dsnmp_core.c212 static u8_t snmp_num_mibs = LWIP_ARRAYSIZE(default_mibs);
216 static u8_t snmp_num_mibs = LWIP_ARRAYSIZE(default_mibs);
219 static u8_t snmp_num_mibs = 0;
236 snmp_set_mibs(const struct snmp_mib **mibs, u8_t num_mibs) in snmp_set_mibs()
285 u8_t
321 u8_t
386 u8_t
389 u8_t idx; in snmp_ip_port_to_oid()
404 u8_t
439 u8_t
[all …]
Dsnmpv3_mbedtls.c53 const u8_t *key, snmpv3_auth_algo_t algo, u8_t *hmac_out) in snmpv3_auth()
56 u8_t key_len; in snmpv3_auth()
82 u8_t byte; in snmpv3_auth()
109 const u8_t *key, const u8_t *priv_param, const u32_t engine_boots, in snmpv3_crypt()
123 u8_t iv_local[8]; in snmpv3_crypt()
124 u8_t out_bytes[8]; in snmpv3_crypt()
153 u8_t in_bytes[8]; in snmpv3_crypt()
180 u8_t iv_local[16]; in snmpv3_crypt()
208 u8_t in_byte; in snmpv3_crypt()
209 u8_t out_byte; in snmpv3_crypt()
[all …]
Dsnmp_asn1.c59 u8_t data; in snmp_ans1_enc_tlv()
60 u8_t length_bytes_required; in snmp_ans1_enc_tlv()
106 data = (u8_t)(tlv->value_len >> 8); in snmp_ans1_enc_tlv()
118 data = (u8_t)(tlv->value_len & 0xFF); in snmp_ans1_enc_tlv()
133 snmp_asn1_enc_raw(struct snmp_pbuf_stream *pbuf_stream, const u8_t *raw, u16_t raw_len) in snmp_asn1_enc_raw()
164 PBUF_OP_EXEC(snmp_pbuf_stream_write(pbuf_stream, (u8_t)(value >> (octets_needed << 3)))); in snmp_asn1_enc_u32t()
168 PBUF_OP_EXEC(snmp_pbuf_stream_write(pbuf_stream, (u8_t)value)); in snmp_asn1_enc_u32t()
188 PBUF_OP_EXEC(snmp_pbuf_stream_write(pbuf_stream, (u8_t)(value >> (octets_needed << 3)))); in snmp_asn1_enc_s32t()
192 PBUF_OP_EXEC(snmp_pbuf_stream_write(pbuf_stream, (u8_t)value)); in snmp_asn1_enc_s32t()
211 PBUF_OP_EXEC(snmp_pbuf_stream_write(pbuf_stream, (u8_t)compressed_byte)); in snmp_asn1_enc_oid()
[all …]
Dsnmp_mib2_system.c60 static const u8_t sysdescr_default[] = SNMP_LWIP_MIB2_SYSDESC;
61 static const u8_t *sysdescr = sysdescr_default;
65 static const u8_t syscontact_default[] = SNMP_LWIP_MIB2_SYSCONTACT;
66 static const u8_t *syscontact = syscontact_default;
68 static u8_t *syscontact_wr = NULL; /* if writable, points to the same buffer as s…
73 static const u8_t sysname_default[] = SNMP_LWIP_MIB2_SYSNAME;
74 static const u8_t *sysname = sysname_default;
76 static u8_t *sysname_wr = NULL; /* if writable, points to the same buffer as s…
81 static const u8_t syslocation_default[] = SNMP_LWIP_MIB2_SYSLOCATION;
82 static const u8_t *syslocation = syslocation_default;
[all …]
Dsnmp_snmpv2_usm.c35 u8_t i; in snmp_engineid_to_oid()
44 u8_t i; in snmp_oid_to_name()
53 u8_t i; in snmp_name_to_oid()
84 static snmp_err_t usmusertable_get_instance(const u32_t *column, const u32_t *row_oid, u8_t row_oid… in usmusertable_get_instance()
87 u8_t eid_len; in usmusertable_get_instance()
91 u8_t name_len; in usmusertable_get_instance()
92 u8_t engineid_len; in usmusertable_get_instance()
94 u8_t name_start; in usmusertable_get_instance()
95 u8_t engineid_start; in usmusertable_get_instance()
101 engineid_len = (u8_t)row_oid[0]; in usmusertable_get_instance()
[all …]
/third_party/lwip/src/include/netif/ppp/
Dppp.h261 u8_t pap_timeout_time; /* Timeout (seconds) for auth-req retrans. */
262 u8_t pap_max_transmits; /* Number of auth-reqs sent */
264 u8_t pap_req_timeout; /* Time to wait for auth-req from peer */
269 u8_t chap_timeout_time; /* Timeout (seconds) for retransmitting req */
270 u8_t chap_max_transmits; /* max # times to send challenge */
272 u8_t chap_rechallenge_time; /* Time to wait for auth-req from peer */
277 u8_t eap_req_time; /* Time to wait (for retransmit/fail) */
278 u8_t eap_allow_req; /* Max Requests allowed */
280 u8_t eap_timeout_time; /* Time to wait (for retransmit/fail) */
281 u8_t eap_max_transmits; /* Max Requests allowed */
[all …]
Dpppol2tp.h170 u8_t phase; /* L2TP phase */
176 const u8_t *secret; /* Secret string */
177 u8_t secret_len; /* Secret string length */
178 u8_t secret_rv[16]; /* Random vector */
179 u8_t challenge_hash[16]; /* Challenge response */
180u8_t send_challenge; /* Boolean whether the next sent packet should contains a challenge r…
192 u8_t sccrq_retried; /* number of SCCRQ retries already done */
193 u8_t icrq_retried; /* number of ICRQ retries already done */
194 u8_t iccn_retried; /* number of ICCN retries already done */
201 const u8_t *secret, u8_t secret_len,
Dfsm.h82 u8_t seen_ack; /* Have received valid Ack/Nak/Rej to Req */
85 u8_t state; /* State */
86 u8_t flags; /* Contains option bits */
87 u8_t id; /* Current id */
88 u8_t reqid; /* Current request id */
89 u8_t retransmits; /* Number of retransmissions left */
90 u8_t nakloops; /* Number of nak loops since last ack */
91 u8_t rnakloops; /* Number of naks received */
92 u8_t maxnakloops; /* Maximum number of nak loops tolerated
94 u8_t term_reason_len; /* Length of term_reason */
/third_party/lwip/src/include/lwip/
Dip4.h81 u8_t ttl, u8_t tos, u8_t proto);
83 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif);
85 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif);
88 u8_t ttl, u8_t tos, u8_t proto, struct netif_hint *netif_hint);
92 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif, void *ip_options,
95 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif, void *ip_options,
Dip6.h68 u8_t hl, u8_t tc, u8_t nexth);
70 u8_t hl, u8_t tc, u8_t nexth, struct netif *netif);
72 u8_t hl, u8_t tc, u8_t nexth, struct netif *netif);
75 u8_t hl, u8_t tc, u8_t nexth, struct netif_hint *netif_hint);
78 err_t ip6_options_add_hbh_ra(struct pbuf * p, u8_t nexth, u8_t value);
Daltcp_tls.h72 const u8_t *privkey, size_t privkey_len,
73 const u8_t *privkey_pass, size_t privkey_pass_len,
74 const u8_t *cert, size_t cert_len);
81 struct altcp_tls_config *altcp_tls_create_config_server_privkey_cert(const u8_t *privkey, size_t pr…
82 const u8_t *privkey_pass, size_t privkey_pass_len,
83 const u8_t *cert, size_t cert_len);
88 struct altcp_tls_config *altcp_tls_create_config_client(const u8_t *cert, size_t cert_len);
93 …_tls_config *altcp_tls_create_config_client_2wayauth(const u8_t *ca, size_t ca_len, const u8_t *pr…
94 const u8_t *privkey_pass, size_t privkey_pass_len,
95 const u8_t *cert, size_t cert_len);
[all …]
Dtcp.h173 typedef void (*tcp_extarg_callback_pcb_destroyed_fn)(u8_t id, void *data);
182 typedef err_t (*tcp_extarg_callback_passive_open_fn)(u8_t id, struct tcp_pcb_listen *lpcb, struct t…
217 u8_t prio; \
235 u8_t backlog;
236 u8_t accepts_pending;
278 u8_t polltmr, pollinterval;
279 u8_t last_timer;
305 u8_t nrtx; /* number of retransmissions */
308 u8_t dupacks;
376 u8_t persist_cnt;
[all …]
Dnetif.h231 u8_t netif_alloc_client_data_id(void);
247 typedef u8_t netif_addr_idx_t;
280 u8_t ip6_addr_state[LWIP_IPV6_NUM_ADDRESSES];
344 u8_t hwaddr[NETIF_MAX_HWADDR_LEN];
346 u8_t hwaddr_len;
348 u8_t flags;
353 u8_t num;
356 u8_t ip6_autoconfig_enabled;
360 u8_t rs_count;
364 u8_t link_type;
[all …]
Draw.h71 typedef u8_t (*raw_recv_fn)(void *arg, struct raw_pcb *pcb, struct pbuf *p,
81 u8_t protocol;
82 u8_t flags;
86 u8_t mcast_ifindex;
88 u8_t mcast_ttl;
98 u8_t chksum_reqd;
108 struct raw_pcb * raw_new (u8_t proto);
109 struct raw_pcb * raw_new_ip_type(u8_t type, u8_t proto);
125 #define raw_set_flags(pcb, set_flags) do { (pcb)->flags = (u8_t)((pcb)->flags | (set_…
126 #define raw_clear_flags(pcb, clr_flags) do { (pcb)->flags = (u8_t)((pcb)->flags & (u8_t)…
/third_party/lwip/test/unit/dhcp/
Dtest_dhcp.c11 static const u8_t broadcast[6] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF };
13 static const u8_t magic_cookie[] = { 0x63, 0x82, 0x53, 0x63 };
15 static u8_t dhcp_offer[] = {
59 static u8_t dhcp_ack[] = {
103 static const u8_t arpreply[] = {
143 static void send_pkt(struct netif *netif, const u8_t *data, size_t len) in send_pkt()
200 static void check_pkt(struct pbuf *p, u32_t pos, const u8_t *mem, u32_t len) in check_pkt()
202 u8_t *data; in check_pkt()
212 data = (u8_t*)p->payload; in check_pkt()
216 static void check_pkt_fuzzy(struct pbuf *p, u32_t startpos, const u8_t *mem, u32_t len) in check_pkt_fuzzy()
[all …]
/third_party/lwip/src/core/
Dmem.c101 u8_t *m; in mem_overflow_check_raw()
104 m = (u8_t *)p + size; in mem_overflow_check_raw()
115 m = (u8_t *)p - MEM_SANITY_REGION_BEFORE_ALIGNED; in mem_overflow_check_raw()
138 u8_t *m; in mem_overflow_init_raw()
140 m = (u8_t *)p - MEM_SANITY_REGION_BEFORE_ALIGNED; in mem_overflow_init_raw()
144 m = (u8_t *)p + size; in mem_overflow_init_raw()
216 ret = (u8_t *)ret + MEM_LIBC_STATSHELPER_SIZE; in mem_malloc()
233 rmem = (u8_t *)rmem - MEM_LIBC_STATSHELPER_SIZE; in mem_free()
286 ret = (u8_t *)element + LWIP_MEM_ALIGN_SIZE(sizeof(struct memp_malloc_helper)); in mem_malloc()
295 memset((u8_t *)ret + size, 0xcd, memp_pools[poolnr]->size - size); in mem_malloc()
[all …]
Dinet_chksum.c84 const u8_t *octetptr; in lwip_standard_chksum()
88 octetptr = (const u8_t *)dataptr; in lwip_standard_chksum()
135 const u8_t *pb = (const u8_t *)dataptr; in lwip_standard_chksum()
143 ((u8_t *)&t)[1] = *pb++; in lwip_standard_chksum()
156 ((u8_t *)&t)[0] = *(const u8_t *)ps; in lwip_standard_chksum()
191 const u8_t *pb = (const u8_t *)dataptr; in lwip_standard_chksum()
200 ((u8_t *)&t)[1] = *pb++; in lwip_standard_chksum()
240 ((u8_t *)&t)[0] = *(const u8_t *)ps; in lwip_standard_chksum()
260 inet_cksum_pseudo_base(struct pbuf *p, u8_t proto, u16_t proto_len, u32_t acc) in inet_cksum_pseudo_base()
310 inet_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len, in inet_chksum_pseudo()
[all …]
/third_party/lwip/test/unit/core/
Dtest_pbuf.c34 static u8_t testbuf_1[TESTBUFSIZE_1];
35 static u8_t testbuf_1a[TESTBUFSIZE_1];
36 static u8_t testbuf_2[TESTBUFSIZE_2];
37 static u8_t testbuf_2a[TESTBUFSIZE_2];
38 static u8_t testbuf_3[TESTBUFSIZE_3];
39 static u8_t testbuf_3a[TESTBUFSIZE_3];
129 testbuf_1[i] = (u8_t)rand(); in START_TEST()
132 testbuf_2[i] = (u8_t)rand(); in START_TEST()
135 testbuf_3[i] = (u8_t)rand(); in START_TEST()
181 u8_t *out; in START_TEST()
[all …]

1234567891011