Home
last modified time | relevance | path

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

1234

/lib/liblwip/src/include/lwip/
Dsnmp_msg.h87 u8_t ident_len;
92 u8_t value_type;
94 u8_t value_len;
99 u8_t seqlenlen;
101 u8_t olenlen;
103 u8_t vlenlen;
117 u8_t count;
119 u8_t seqlenlen;
128 u8_t erridxlenlen;
130 u8_t errstatlenlen;
[all …]
Dsnmp_structs.h75 u8_t instance;
77 u8_t access;
79 u8_t asn_type;
83 u8_t id_inst_len;
90 u8_t ident_len;
109 void (*get_object_def)(u8_t ident_len, s32_t *ident, struct obj_def *od);
114 u8_t (*set_test)(struct obj_def *od, u16_t len, void *value);
118 u8_t node_type;
131 void (*get_object_def)(u8_t ident_len, s32_t *ident, struct obj_def *od);
133 u8_t (*set_test)(struct obj_def *od, u16_t len, void *value);
[all …]
Dtcp.h162 u8_t prio; \
177 u8_t flags;
178 #define TF_ACK_DELAY ((u8_t)0x01U) /* Delayed ACK. */
179 #define TF_ACK_NOW ((u8_t)0x02U) /* Immediate ACK. */
180 #define TF_INFR ((u8_t)0x04U) /* In fast recovery. */
181 #define TF_TIMESTAMP ((u8_t)0x08U) /* Timestamp option enabled */
182 #define TF_RXCLOSED ((u8_t)0x10U) /* rx closed by tcp_shutdown */
183 #define TF_FIN ((u8_t)0x20U) /* Connection was closed locally (FIN segment enqueued). */
184 #define TF_NODELAY ((u8_t)0x40U) /* Disable Nagle algorithm */
185 #define TF_NAGLEMEMERR ((u8_t)0x80U) /* nagle enabled, memerr, try to output to prevent delayed A…
[all …]
Ddhcp.h38 u8_t state;
40 u8_t tries;
42 u8_t autoip_coop_state;
44 u8_t subnet_mask_given;
76 PACK_STRUCT_FIELD(u8_t op);
77 PACK_STRUCT_FIELD(u8_t htype);
78 PACK_STRUCT_FIELD(u8_t hlen);
79 PACK_STRUCT_FIELD(u8_t hops);
87 PACK_STRUCT_FIELD(u8_t chaddr[DHCP_CHADDR_LEN]);
88 PACK_STRUCT_FIELD(u8_t sname[DHCP_SNAME_LEN]);
[all …]
Dsio.h60 sio_fd_t sio_open(u8_t devnum);
72 void sio_send(u8_t c, sio_fd_t fd);
83 u8_t sio_recv(sio_fd_t fd);
98 u32_t sio_read(sio_fd_t fd, u8_t *data, u32_t len);
111 u32_t sio_tryread(sio_fd_t fd, u8_t *data, u32_t len);
125 u32_t sio_write(sio_fd_t fd, u8_t *data, u32_t len);
Dsnmp.h96 u8_t len;
101 void snmp_set_sysdesr(u8_t* str, u8_t* len);
107 void snmp_set_syscontact(u8_t *ocstr, u8_t *ocstrlen);
108 void snmp_set_sysname(u8_t *ocstr, u8_t *ocstrlen);
109 void snmp_set_syslocation(u8_t *ocstr, u8_t *ocstrlen);
147 void snmp_insert_iprteidx_tree(u8_t dflt, struct netif *ni);
148 void snmp_delete_iprteidx_tree(u8_t dflt, struct netif *ni);
209 void snmp_add_snmpintotalreqvars(u8_t value);
210 void snmp_add_snmpintotalsetvars(u8_t value);
226 void snmp_set_snmpenableauthentraps(u8_t *value);
[all …]
Dsnmp_asn1.h77 err_t snmp_asn1_dec_type(struct pbuf *p, u16_t ofs, u8_t *type);
78 err_t snmp_asn1_dec_length(struct pbuf *p, u16_t ofs, u8_t *octets_used, u16_t *length);
82 err_t snmp_asn1_dec_raw(struct pbuf *p, u16_t ofs, u16_t len, u16_t raw_len, u8_t *raw);
84 void snmp_asn1_enc_length_cnt(u16_t length, u8_t *octets_needed);
87 void snmp_asn1_enc_oid_cnt(u8_t ident_len, s32_t *ident, u16_t *octets_needed);
88 err_t snmp_asn1_enc_type(struct pbuf *p, u16_t ofs, u8_t type);
92 err_t snmp_asn1_enc_oid(struct pbuf *p, u16_t ofs, u8_t ident_len, s32_t *ident);
93 err_t snmp_asn1_enc_raw(struct pbuf *p, u16_t ofs, u16_t raw_len, u8_t *raw);
Dnetif.h131 ip_addr_t *group, u8_t action);
188 u8_t hwaddr_len;
190 u8_t hwaddr[NETIF_MAX_HWADDR_LEN];
192 u8_t flags;
196 u8_t num;
199 u8_t link_type;
220 u8_t *addr_hint;
282 #define netif_is_up(netif) (((netif)->flags & NETIF_FLAG_UP) ? (u8_t)1 : (u8_t)0)
294 #define netif_is_link_up(netif) (((netif)->flags & NETIF_FLAG_LINK_UP) ? (u8_t)1 : (u8_t)0)
Dpbuf.h99 u8_t /*pbuf_type*/ type;
102 u8_t flags;
131 extern volatile u8_t pbuf_free_ooseq_pending;
153 u8_t pbuf_header(struct pbuf *p, s16_t header_size);
155 u8_t pbuf_free(struct pbuf *p);
156 u8_t pbuf_clen(struct pbuf *p);
169 u8_t pbuf_get_at(struct pbuf* p, u16_t offset);
/lib/liblwip/src/core/snmp/
Dasn1_enc.c50 snmp_asn1_enc_length_cnt(u16_t length, u8_t *octets_needed) in snmp_asn1_enc_length_cnt()
142 snmp_asn1_enc_oid_cnt(u8_t ident_len, s32_t *ident, u16_t *octets_needed) in snmp_asn1_enc_oid_cnt()
145 u8_t cnt; in snmp_asn1_enc_oid_cnt()
181 snmp_asn1_enc_type(struct pbuf *p, u16_t ofs, u8_t type) in snmp_asn1_enc_type()
184 u8_t *msg_ptr; in snmp_asn1_enc_type()
193 msg_ptr = (u8_t*)p->payload; in snmp_asn1_enc_type()
216 u8_t *msg_ptr; in snmp_asn1_enc_length()
225 msg_ptr = (u8_t*)p->payload; in snmp_asn1_enc_length()
230 *msg_ptr = (u8_t)length; in snmp_asn1_enc_length()
242 msg_ptr = (u8_t*)p->payload; in snmp_asn1_enc_length()
[all …]
Dasn1_dec.c52 snmp_asn1_dec_type(struct pbuf *p, u16_t ofs, u8_t *type) in snmp_asn1_dec_type()
55 u8_t *msg_ptr; in snmp_asn1_dec_type()
64 msg_ptr = (u8_t*)p->payload; in snmp_asn1_dec_type()
85 snmp_asn1_dec_length(struct pbuf *p, u16_t ofs, u8_t *octets_used, u16_t *length) in snmp_asn1_dec_length()
88 u8_t *msg_ptr; in snmp_asn1_dec_length()
97 msg_ptr = (u8_t*)p->payload; in snmp_asn1_dec_length()
110 u8_t zeros; in snmp_asn1_dec_length()
111 u8_t i; in snmp_asn1_dec_length()
128 msg_ptr = (u8_t*)p->payload; in snmp_asn1_dec_length()
163 msg_ptr = (u8_t*)p->payload; in snmp_asn1_dec_length()
[all …]
Dmib2.c79 static void system_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od);
81 static u8_t system_set_test(struct obj_def *od, u16_t len, void *value);
83 static void interfaces_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od);
85 static void ifentry_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od);
88 static u8_t ifentry_set_test (struct obj_def *od, u16_t len, void *value);
91 static void atentry_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od);
93 static void ip_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od);
95 static u8_t ip_set_test(struct obj_def *od, u16_t len, void *value);
96 static void ip_addrentry_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od);
98 static void ip_rteentry_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od);
[all …]
/lib/liblwip/src/include/ipv4/lwip/
Dip.h67 #define IP_PCB_ADDRHINT ;u8_t addr_hint
81 u8_t so_options; \
83 u8_t tos; \
85 u8_t ttl \
118 PACK_STRUCT_FIELD(u8_t _v_hl);
120 PACK_STRUCT_FIELD(u8_t _tos);
132 PACK_STRUCT_FIELD(u8_t _ttl);
134 PACK_STRUCT_FIELD(u8_t _proto);
161 #define IPH_TTL_SET(hdr, ttl) (hdr)->_ttl = (u8_t)(ttl)
162 #define IPH_PROTO_SET(hdr, proto) (hdr)->_proto = (u8_t)(proto)
[all …]
Dautoip.h84 u8_t state; /* current AutoIP state machine state */
85 u8_t sent_num; /* sent number of probes or announces, dependent on state */
87 u8_t lastconflict; /* ticks until a conflict can be solved by defending */
88 u8_t tried_llipaddr; /* total number of probed/used Link Local IP-Addresses */
/lib/liblwip/src/include/ipv6/lwip/
Dip.h62 #define IP_PCB_ADDRHINT ;u8_t addr_hint
76 u8_t tos; \
78 u8_t ttl; \
86 u8_t tclass1:4, v:4;
87 u8_t flow1:4, tclass2:4;
89 u8_t v:4, tclass1:4;
90 u8_t tclass2:8, flow1:4;
94 u8_t nexthdr; /* next header */
95 u8_t hoplim; /* hop limit (TTL) */
111 u8_t ttl, u8_t proto);
[all …]
Dicmp.h72 u8_t type;
73 u8_t icode;
80 u8_t type;
81 u8_t icode;
87 u8_t type;
88 u8_t icode;
/lib/liblwip/src/core/
Dmem.c117 ret = (u8_t*)element + LWIP_MEM_ALIGN_SIZE(sizeof(struct memp_malloc_helper)); in mem_malloc()
138 …hmem = (struct memp_malloc_helper*)(void*)((u8_t*)rmem - LWIP_MEM_ALIGN_SIZE(sizeof(struct memp_ma… in mem_free()
162 u8_t used;
182 u8_t ram_heap[MEM_SIZE_ALIGNED + (2*SIZEOF_STRUCT_MEM) + MEM_ALIGNMENT];
187 static u8_t *ram;
200 static volatile u8_t mem_free_count;
241 LWIP_ASSERT("plug_holes: mem >= ram", (u8_t *)mem >= ram); in plug_holes()
242 LWIP_ASSERT("plug_holes: mem < ram_end", (u8_t *)mem < (u8_t *)ram_end); in plug_holes()
249 if (mem != nmem && nmem->used == 0 && (u8_t *)nmem != (u8_t *)ram_end) { in plug_holes()
255 ((struct mem *)(void *)&ram[nmem->next])->prev = (mem_size_t)((u8_t *)mem - ram); in plug_holes()
[all …]
Dmemp.c157 #define LWIP_MEMPOOL(name,num,size,desc) u8_t memp_memory_ ## name ## _base \
162 static u8_t *const memp_bases[] = {
170 static u8_t memp_memory[MEM_ALIGNMENT - 1
220 u8_t *m; in memp_overflow_check_element_overflow()
222 m = (u8_t*)p + MEMP_SIZE + memp_sizes[memp_type]; in memp_overflow_check_element_overflow()
253 u8_t *m; in memp_overflow_check_element_underflow()
255 m = (u8_t*)p + MEMP_SIZE - MEMP_SANITY_REGION_BEFORE_ALIGNED; in memp_overflow_check_element_underflow()
291 p = (struct memp*)((u8_t*)p + MEMP_SIZE + memp_sizes[i] + MEMP_SANITY_REGION_AFTER_ALIGNED); in memp_overflow_check_all()
299 p = (struct memp*)((u8_t*)p + MEMP_SIZE + memp_sizes[i] + MEMP_SANITY_REGION_AFTER_ALIGNED); in memp_overflow_check_all()
312 u8_t *m; in memp_overflow_init()
[all …]
Dpbuf.c103 volatile u8_t pbuf_free_ooseq_pending;
160 u8_t queued; in pbuf_pool_is_empty()
249 p->payload = LWIP_MEM_ALIGN((void *)((u8_t *)p + (SIZEOF_STRUCT_PBUF + offset))); in pbuf_alloc()
257 ((u8_t*)p->payload + p->len <= in pbuf_alloc()
258 (u8_t*)p + SIZEOF_STRUCT_PBUF + PBUF_POOL_BUFSIZE_ALIGNED)); in pbuf_alloc()
290 q->payload = (void *)((u8_t *)q + SIZEOF_STRUCT_PBUF); in pbuf_alloc()
294 ((u8_t*)p->payload + p->len <= in pbuf_alloc()
295 (u8_t*)p + SIZEOF_STRUCT_PBUF + PBUF_POOL_BUFSIZE_ALIGNED)); in pbuf_alloc()
313 p->payload = LWIP_MEM_ALIGN((void *)((u8_t *)p + SIZEOF_STRUCT_PBUF + offset)); in pbuf_alloc()
402 p->pbuf.payload = (u8_t *)payload_mem + LWIP_MEM_ALIGN_SIZE(offset); in pbuf_alloced_custom()
[all …]
Ddns.c132 PACK_STRUCT_FIELD(u8_t flags1);
133 PACK_STRUCT_FIELD(u8_t flags2);
169 u8_t state;
170 u8_t numdns;
171 u8_t tmr;
172 u8_t retries;
173 u8_t seqno;
174 u8_t err;
220 static u8_t dns_seqno;
224 static u8_t dns_payload_buffer[LWIP_MEM_ALIGN_BUFFER(DNS_MSG_SIZE)];
[all …]
/lib/liblwip/src/core/ipv4/
Dinet_chksum.c85 u8_t *octetptr; in lwip_standard_chksum()
89 octetptr = (u8_t*)dataptr; in lwip_standard_chksum()
137 u8_t *pb = (u8_t *)dataptr; in lwip_standard_chksum()
144 ((u8_t *)&t)[1] = *pb++; in lwip_standard_chksum()
157 ((u8_t *)&t)[0] = *(u8_t *)ps; in lwip_standard_chksum()
193 u8_t *pb = (u8_t *)dataptr; in lwip_standard_chksum()
201 ((u8_t *)&t)[1] = *pb++; in lwip_standard_chksum()
241 ((u8_t *)&t)[0] = *(u8_t *)ps; in lwip_standard_chksum()
274 u8_t proto, u16_t proto_len) in inet_chksum_pseudo()
279 u8_t swapped; in inet_chksum_pseudo()
[all …]
Dip_addr.c54 u8_t
89 u8_t
114 #define in_range(c, lo, up) ((u8_t)c >= lo && (u8_t)c <= up)
155 u8_t base; in ipaddr_aton()
281 u8_t *ap; in ipaddr_ntoa_r()
282 u8_t rem; in ipaddr_ntoa_r()
283 u8_t n; in ipaddr_ntoa_r()
284 u8_t i; in ipaddr_ntoa_r()
290 ap = (u8_t *)&s_addr; in ipaddr_ntoa_r()
294 rem = *ap % (u8_t)10; in ipaddr_ntoa_r()
[all …]
Dicmp.c65 static void icmp_send_response(struct pbuf *p, u8_t type, u8_t code);
79 u8_t type; in icmp_input()
81 u8_t code; in icmp_input()
98 type = *((u8_t *)p->payload); in icmp_input()
100 code = *(((u8_t *)p->payload)+1); in icmp_input()
291 icmp_send_response(struct pbuf *p, u8_t type, u8_t code) in icmp_send_response()
323 SMEMCPY((u8_t *)q->payload + sizeof(struct icmp_echo_hdr), (u8_t *)p->payload, in icmp_send_response()
/lib/liblwip/src/core/ipv6/
Dicmp6.c49 u8_t type; in icmp_input()
58 type = ((u8_t *)p->payload)[0]; in icmp_input()
72 iphdr = (struct ip_hdr *)((u8_t *)p->payload - IP_HLEN); in icmp_input()
126 idur->type = (u8_t)ICMP6_DUR; in icmp_dest_unreach()
127 idur->icode = (u8_t)t; in icmp_dest_unreach()
129 SMEMCPY((u8_t *)q->payload + 8, p->payload, IP_HLEN + 8); in icmp_dest_unreach()
164 tehdr->type = (u8_t)ICMP6_TE; in icmp_time_exceeded()
165 tehdr->icode = (u8_t)t; in icmp_time_exceeded()
168 SMEMCPY((u8_t *)q->payload + 8, (u8_t *)p->payload, IP_HLEN + 8); in icmp_time_exceeded()
/lib/liblwip/src/netif/
Dslipif.c97 u8_t state;
120 u8_t c; in slipif_output()
137 c = ((u8_t *)q->payload)[i]; in slipif_output()
170 slipif_rxbyte(struct netif *netif, u8_t c) in slipif_rxbyte()
242 ((u8_t *)priv->p->payload)[priv->i] = c; in slipif_rxbyte()
267 slipif_rxbyte_input(struct netif *netif, u8_t c) in slipif_rxbyte_input()
289 u8_t c; in slipif_loop_thread()
321 u8_t sio_num; in slipif_init()
339 sio_num = *(u8_t*)netif->state; in slipif_init()
382 u8_t c; in slipif_poll()
[all …]

1234