/third_party/lwip/src/include/lwip/prot/ |
H A D | nd6.h | 54 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 cod [all...] |
H A D | ip6.h | 88 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 _hle [all...] |
/third_party/lwip/src/include/lwip/apps/ |
H A D | snmp_core.h | 130 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* instance); 248 snmp_err_t (*get_next_instance)(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance); 255 u8_t base_oid_len; 259 #define SNMP_MIB_CREATE(oid_list, root_node) { (oid_list), (u8_t)LWIP_ARRAYSIZE(oid_list), root_node } 269 u8_t snmp_oid_in_range(const u32_t *oid_in, u8_t oid_le [all...] |
H A D | snmp.h | 65 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_enable [all...] |
H A D | snmpv3.h | 75 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 err_t snmpv3_get_user(const char* username, snmpv3_auth_algo_t *auth_algo, u8_t *auth_key, snmpv3_priv_algo_t *priv_algo, u8_t *priv_key); 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 *ke [all...] |
H A D | sntp.h | 51 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/ |
H A D | snmp_msg.h | 88 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_parameter [all...] |
H A D | snmp_core.c | 197 #error "SNMP_MAX_OBJ_ID_LEN must fit into an u8_t" 212 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 [all...] |
H A D | snmpv3_mbedtls.c | 53 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_loca in snmpv3_crypt() [all...] |
H A D | snmp_asn1.c | 59 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_byt in snmp_asn1_enc_oid() [all...] |
H A D | snmp_mib2_system.c | 60 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 syscontact (required for correct constness) */ 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 sysname (required for correct constness) */ 81 static const u8_t syslocation_default[] = SNMP_LWIP_MIB2_SYSLOCATION; 82 static const u8_t *syslocatio [all...] |
H A D | snmp_snmpv2_usm.c | 35 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_len, struct snmp_node_instance *cell_instance) 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_oi in usmusertable_get_instance() [all...] |
H A D | snmp_core_priv.h | 69 const struct snmp_node *snmp_mib_tree_resolve_exact(const struct snmp_mib *mib, const u32_t *oid, u8_t oid_len, u8_t *oid_instance_len); 70 const struct snmp_node *snmp_mib_tree_resolve_next(const struct snmp_mib *mib, const u32_t *oid, u8_t oid_len, struct snmp_obj_id *oidret); 72 typedef u8_t (*snmp_validate_node_instance_method)(struct snmp_node_instance *, void *); 74 u8_t snmp_get_node_instance_from_oid(const u32_t *oid, u8_t oid_len, struct snmp_node_instance *node_instance); 75 u8_t snmp_get_next_node_instance_from_oid(const u32_t *oid, u8_t oid_len, snmp_validate_node_instance_method validate_node_instance_method, void *validate_node_instance_arg, struct snmp_obj_id *node_oid, struct snmp_node_instance *node_instance);
|
/third_party/lwip/src/include/netif/ppp/ |
H A D | ppp.h | 261 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_transmit [all...] |
H A D | pppol2tp.h | 170 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 */ 180 u8_t send_challenge; /* Boolean whether the next sent packet should contains a challenge response */ 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 *secre [all...] |
H A D | fsm.h | 82 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_le [all...] |
/third_party/lwip/src/include/lwip/ |
H A D | ip4.h | 81 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 tt [all...] |
H A D | altcp_tls.h | 72 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 privkey_len, 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 struct altcp_tls_config *altcp_tls_create_config_client_2wayauth(const u8_t *ca, size_t ca_len, const u8_t *privkey, size_t privkey_len, 94 const u8_t *privkey_pas [all...] |
H A D | ip6.h | 68 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 h [all...] |
H A D | tcp.h | 173 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 tcp_pcb *cpcb); 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_cn [all...] |
H A D | netif.h | 231 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_typ [all...] |
H A D | raw.h | 71 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)((pc [all...] |
/third_party/lwip/src/core/ |
H A D | mem.c | 101 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 *)re in mem_malloc() [all...] |
H A D | pbuf.c | 113 volatile u8_t pbuf_free_ooseq_pending; 162 u8_t queued; in pbuf_pool_is_empty() 179 pbuf_init_alloced_pbuf(struct pbuf *p, void *payload, u16_t tot_len, u16_t len, pbuf_type type, u8_t flags) in pbuf_init_alloced_pbuf() 185 p->type_internal = (u8_t)type; in pbuf_init_alloced_pbuf() 254 pbuf_init_alloced_pbuf(q, LWIP_MEM_ALIGN((void *)((u8_t *)q + SIZEOF_STRUCT_PBUF + offset)), in pbuf_alloc() 288 pbuf_init_alloced_pbuf(p, LWIP_MEM_ALIGN((void *)((u8_t *)p + SIZEOF_STRUCT_PBUF + offset)), in pbuf_alloc() 376 payload = (u8_t *)payload_mem + LWIP_MEM_ALIGN_SIZE(offset); in pbuf_alloced_custom() 444 q = (struct pbuf *)mem_trim(q, (mem_size_t)(((u8_t *)q->payload - (u8_t *)q) + rem_len)); in pbuf_realloc() 472 static u8_t [all...] |
/third_party/lwip/test/unit/core/ |
H A D | test_pbuf.c | 34 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 *ou in START_TEST() [all...] |