/external/syslinux/core/lwip/src/core/ |
D | pbuf.c | 210 LWIP_ASSERT("pbuf_alloc: bad pbuf layer", 0); in pbuf_alloc() 228 LWIP_ASSERT("pbuf_alloc: pbuf p->payload properly aligned", in pbuf_alloc() 234 LWIP_ASSERT("check p->payload + p->len does not overflow pbuf", in pbuf_alloc() 237 LWIP_ASSERT("PBUF_POOL_BUFSIZE must be bigger than MEM_ALIGNMENT", in pbuf_alloc() 264 LWIP_ASSERT("rem_len < max_u16_t", rem_len < 0xffff); in pbuf_alloc() 269 LWIP_ASSERT("pbuf_alloc: pbuf q->payload properly aligned", in pbuf_alloc() 271 LWIP_ASSERT("check p->payload + p->len does not overflow pbuf", in pbuf_alloc() 296 LWIP_ASSERT("pbuf_alloc: pbuf->payload properly aligned", in pbuf_alloc() 318 LWIP_ASSERT("pbuf_alloc: erroneous type", 0); in pbuf_alloc() 368 LWIP_ASSERT("pbuf_alloced_custom: bad pbuf layer", 0); in pbuf_alloced_custom() [all …]
|
D | mem.c | 96 LWIP_ASSERT("mem_malloc(): no pool is that big!", 0); in mem_malloc() 133 LWIP_ASSERT("rmem != NULL", (rmem != NULL)); in mem_free() 134 LWIP_ASSERT("rmem == MEM_ALIGN(rmem)", (rmem == LWIP_MEM_ALIGN(rmem))); in mem_free() 139 LWIP_ASSERT("hmem != NULL", (hmem != NULL)); in mem_free() 140 LWIP_ASSERT("hmem == MEM_ALIGN(hmem)", (hmem == LWIP_MEM_ALIGN(hmem))); in mem_free() 141 LWIP_ASSERT("hmem->poolnr < MEMP_MAX", (hmem->poolnr < MEMP_MAX)); in mem_free() 238 LWIP_ASSERT("plug_holes: mem >= ram", (u8_t *)mem >= ram); in plug_holes() 239 LWIP_ASSERT("plug_holes: mem < ram_end", (u8_t *)mem < (u8_t *)ram_end); in plug_holes() 240 LWIP_ASSERT("plug_holes: mem->used == 0", mem->used == 0); in plug_holes() 243 LWIP_ASSERT("plug_holes: mem->next <= MEM_SIZE_ALIGNED", mem->next <= MEM_SIZE_ALIGNED); in plug_holes() [all …]
|
D | dhcp.c | 302 LWIP_ASSERT("DHCP: hostname is too long!", namelen < 255); in dhcp_select() 585 LWIP_ASSERT("netif != NULL", netif != NULL); in dhcp_set_struct() 586 LWIP_ASSERT("dhcp != NULL", dhcp != NULL); in dhcp_set_struct() 587 LWIP_ASSERT("netif already has a struct dhcp set", netif->dhcp == NULL); in dhcp_set_struct() 604 LWIP_ASSERT("netif != NULL", netif != NULL); in dhcp_cleanup() 666 LWIP_ASSERT("pbuf p_out wasn't freed", dhcp->p_out == NULL); in dhcp_start() 667 LWIP_ASSERT("reply wasn't freed", dhcp->msg_in == NULL ); in dhcp_start() 1032 LWIP_ASSERT("DHCP: hostname is too long!", namelen < 255); in dhcp_renew() 1095 LWIP_ASSERT("DHCP: hostname is too long!", namelen < 255); in dhcp_rebind() 1252 LWIP_ASSERT("reply wasn't freed", dhcp->msg_in == NULL); in dhcp_stop() [all …]
|
D | tcp_out.c | 98 LWIP_ASSERT("check that first pbuf can hold struct tcp_hdr", in tcp_output_alloc_header() 177 LWIP_ASSERT("invalid optflags passed: TF_SEG_DATA_CHECKSUMMED", in tcp_create_segment() 256 LWIP_ASSERT("need unchained pbuf", p->next == NULL); in tcp_pbuf_prealloc() 325 LWIP_ASSERT("tcp_write: pbufs on queue => at least one queue non-empty", in tcp_write_checks() 328 LWIP_ASSERT("tcp_write: no pbufs on queue => both queues empty", in tcp_write_checks() 439 LWIP_ASSERT("unsent_oversize mismatch (pcb vs. last_unsent)", in tcp_write() 444 LWIP_ASSERT("inconsistent oversize vs. space", oversize_used <= space); in tcp_write() 452 LWIP_ASSERT("inconsistend oversize vs. len", (oversize == 0) || (pos == len)); in tcp_write() 506 LWIP_ASSERT("unsent_oversize mismatch (pcb->unsent is NULL)", in tcp_write() 534 LWIP_ASSERT("tcp_write: check that first pbuf can hold the complete seglen", in tcp_write() [all …]
|
D | tcp.c | 146 LWIP_ASSERT("pcb->flags & TF_RXCLOSED", pcb->flags & TF_RXCLOSED); in tcp_close_shutdown() 329 LWIP_ASSERT("don't call tcp_abort/tcp_abandon for listen-pcbs", in tcp_abandon() 559 LWIP_ASSERT("new_rcv_ann_wnd <= 0xffff", new_rcv_ann_wnd <= 0xffff); in tcp_update_rcv_ann_wnd() 579 LWIP_ASSERT("tcp_recved: len would wrap rcv_wnd\n", in tcp_recved() 770 LWIP_ASSERT("tcp_slowtmr: active pcb->state != CLOSED\n", pcb->state != CLOSED); in tcp_slowtmr() 771 LWIP_ASSERT("tcp_slowtmr: active pcb->state != LISTEN\n", pcb->state != LISTEN); in tcp_slowtmr() 772 LWIP_ASSERT("tcp_slowtmr: active pcb->state != TIME-WAIT\n", pcb->state != TIME_WAIT); in tcp_slowtmr() 912 LWIP_ASSERT("tcp_slowtmr: middle tcp != tcp_active_pcbs", pcb != tcp_active_pcbs); in tcp_slowtmr() 916 LWIP_ASSERT("tcp_slowtmr: first pcb == tcp_active_pcbs", tcp_active_pcbs == pcb); in tcp_slowtmr() 953 LWIP_ASSERT("tcp_slowtmr: TIME-WAIT pcb->state == TIME-WAIT", pcb->state == TIME_WAIT); in tcp_slowtmr() [all …]
|
D | tcp_in.c | 183 LWIP_ASSERT("tcp_input: active pcb->state != CLOSED", pcb->state != CLOSED); in tcp_input() 184 LWIP_ASSERT("tcp_input: active pcb->state != TIME-WAIT", pcb->state != TIME_WAIT); in tcp_input() 185 LWIP_ASSERT("tcp_input: active pcb->state != LISTEN", pcb->state != LISTEN); in tcp_input() 194 LWIP_ASSERT("tcp_input: pcb->next != pcb (before cache)", pcb->next != pcb); in tcp_input() 200 LWIP_ASSERT("tcp_input: pcb->next != pcb (after cache)", pcb->next != pcb); in tcp_input() 210 LWIP_ASSERT("tcp_input: TIME-WAIT pcb->state == TIME-WAIT", pcb->state == TIME_WAIT); in tcp_input() 349 LWIP_ASSERT("pcb->refused_data == NULL", pcb->refused_data == NULL); in tcp_input() 425 LWIP_ASSERT("tcp_input: tcp_pcbs_sane()", tcp_pcbs_sane()); in tcp_input() 596 LWIP_ASSERT("tcp_input: pcb->state != CLOSED", pcb->state != CLOSED); in tcp_process() 648 LWIP_ASSERT("pcb->snd_queuelen > 0", (pcb->snd_queuelen > 0)); in tcp_process() [all …]
|
D | dns.c | 250 LWIP_ASSERT("For implicit initialization to work, DNS_STATE_UNUSED needs to be 0", in dns_init() 328 LWIP_ASSERT("invalid host name (NULL)", init_entry->name != NULL); in dns_init_local() 330 …LWIP_ASSERT("namelen <= DNS_LOCAL_HOSTLIST_MAX_NAMELEN", namelen <= DNS_LOCAL_HOSTLIST_MAX_NAMELEN… in dns_init_local() 332 LWIP_ASSERT("mem-error in dns_init_local", entry != NULL); in dns_init_local() 423 LWIP_ASSERT("invalid host name (NULL)", hostname != NULL); in dns_local_addhost() 425 …LWIP_ASSERT("namelen <= DNS_LOCAL_HOSTLIST_MAX_NAMELEN", namelen <= DNS_LOCAL_HOSTLIST_MAX_NAMELEN… in dns_local_addhost() 577 LWIP_ASSERT("dns server out of array", numdns < DNS_MAX_SERVERS); in dns_send() 578 LWIP_ASSERT("dns server has no IP address set", !ip_addr_isany(&dns_servers[numdns])); in dns_send() 584 LWIP_ASSERT("pbuf must be in one piece", p->next == NULL); in dns_send() 646 LWIP_ASSERT("array index out of bounds", i < DNS_TABLE_SIZE); in dns_check_entry() [all …]
|
D | memp.c | 235 LWIP_ASSERT(errstr, 0); in memp_overflow_check_element_overflow() 268 LWIP_ASSERT(errstr, 0); in memp_overflow_check_element_underflow() 414 LWIP_ASSERT("memp_malloc: memp properly aligned", in memp_malloc() 442 LWIP_ASSERT("memp_free: mem properly aligned", in memp_free() 463 LWIP_ASSERT("memp sanity", memp_sanity()); in memp_free()
|
D | netif.c | 142 LWIP_ASSERT("No init function given", init != NULL); in netif_add() 648 LWIP_ASSERT("if first != NULL, last must also be != NULL", netif->loop_last != NULL); in netif_loop_output() 699 LWIP_ASSERT("netif->loop_cnt_current underflow", in netif_poll() 704 LWIP_ASSERT("bogus pbuf: len != tot_len but next == NULL!", in_end->next != NULL); in netif_poll() 714 LWIP_ASSERT("should not be null since first != last!", netif->loop_first != NULL); in netif_poll()
|
/external/syslinux/core/lwip/src/api/ |
D | api_msg.c | 155 LWIP_ASSERT("recv_udp must have a pcb argument", pcb != NULL); 156 LWIP_ASSERT("recv_udp must have an argument", arg != NULL); 158 LWIP_ASSERT("recv_udp: recv for wrong pcb!", conn->pcb.udp == pcb); 222 LWIP_ASSERT("recv_tcp must have a pcb argument", pcb != NULL); 223 LWIP_ASSERT("recv_tcp must have an argument", arg != NULL); 225 LWIP_ASSERT("recv_tcp: recv for wrong pcb!", conn->pcb.tcp == pcb); 282 LWIP_ASSERT("conn != NULL", (conn != NULL)); 318 LWIP_ASSERT("conn != NULL", (conn != NULL)); 354 LWIP_ASSERT("conn != NULL", (conn != NULL)); 395 LWIP_ASSERT("conn->current_msg != NULL", conn->current_msg != NULL); [all …]
|
D | sockets.c | 342 LWIP_ASSERT("newconn != NULL", newconn != NULL); in lwip_accept() 359 LWIP_ASSERT("addr valid but addrlen NULL", addrlen != NULL); in lwip_accept() 378 LWIP_ASSERT("invalid socket index", (newsock >= 0) && (newsock < NUM_SOCKETS)); in lwip_accept() 379 LWIP_ASSERT("newconn->callback == event_callback", newconn->callback == event_callback); in lwip_accept() 456 LWIP_ASSERT("sock->lastdata == NULL", sock->lastdata == NULL); in lwip_close() 617 LWIP_ASSERT("buf != NULL", buf != NULL); in lwip_recvfrom() 645 LWIP_ASSERT("invalid copylen, len would underflow", len >= copylen); in lwip_recvfrom() 816 LWIP_ASSERT("lwip_sendto: size must fit in u16_t", size <= 0xffff); 1067 LWIP_ASSERT("nready >= 0", nready >= 0); 1144 LWIP_ASSERT("sock != NULL", sock != NULL); [all …]
|
D | api_lib.c | 79 LWIP_ASSERT("freeing conn without freeing pcb", conn->pcb.tcp == NULL); in netconn_new_with_proto_and_callback() 80 LWIP_ASSERT("conn has no op_completed", sys_sem_valid(&conn->op_completed)); in netconn_new_with_proto_and_callback() 81 LWIP_ASSERT("conn has no recvmbox", sys_mbox_valid(&conn->recvmbox)); in netconn_new_with_proto_and_callback() 83 LWIP_ASSERT("conn->acceptmbox shouldn't exist", !sys_mbox_valid(&conn->acceptmbox)); in netconn_new_with_proto_and_callback() 406 LWIP_ASSERT("buf != NULL", buf != NULL); in netconn_recv_data() 479 LWIP_ASSERT("p != NULL", p != NULL); in netconn_recv()
|
D | tcpip.c | 141 LWIP_ASSERT("tcpip_thread: invalid message", 0); in tcpip_thread() 411 LWIP_ASSERT("failed to create tcpip_thread mbox", 0); in tcpip_init() 415 LWIP_ASSERT("failed to create lock_tcpip_core", 0); in tcpip_init()
|
/external/syslinux/core/lwip/src/core/ipv4/ |
D | ip_frag.c | 165 LWIP_ASSERT("prev != ipr", prev != ipr); in ip_reass_free_complete_datagram() 167 LWIP_ASSERT("prev->next == ipr", prev->next == ipr); in ip_reass_free_complete_datagram() 182 LWIP_ASSERT("pbufs_freed + clen <= 0xffff", pbufs_freed + clen <= 0xffff); in ip_reass_free_complete_datagram() 198 LWIP_ASSERT("pbufs_freed + clen <= 0xffff", pbufs_freed + clen <= 0xffff); in ip_reass_free_complete_datagram() 204 LWIP_ASSERT("ip_reass_pbufcount >= clen", ip_reass_pbufcount >= pbufs_freed); in ip_reass_free_complete_datagram() 313 LWIP_ASSERT("sanity check linked list", prev != NULL); in ip_reass_dequeue_datagram() 347 LWIP_ASSERT("sizeof(struct ip_reass_helper) <= IP_HLEN", in ip_reass_chain_frag_into_datagram_and_validate() 403 LWIP_ASSERT("check fragments don't overlap", iprh_prev->end <= iprh->start); in ip_reass_chain_frag_into_datagram_and_validate() 411 LWIP_ASSERT("no previous fragment, this must be the first fragment!", in ip_reass_chain_frag_into_datagram_and_validate() 444 LWIP_ASSERT("sanity check", ipr->p != NULL); in ip_reass_chain_frag_into_datagram_and_validate() [all …]
|
D | icmp.c | 152 LWIP_ASSERT("icmp_input: moving p->payload to ip header failed\n", 0); in icmp_input() 161 LWIP_ASSERT("check that first pbuf can hold struct the ICMP header", in icmp_input() 165 LWIP_ASSERT("icmp_input: copying to new pbuf failed\n", 0); in icmp_input() 171 LWIP_ASSERT("icmp_input: restoring original p->payload failed\n", 0); in icmp_input() 181 LWIP_ASSERT("icmp_input: restoring original p->payload failed\n", 0); in icmp_input() 214 LWIP_ASSERT("Can't move over header in packet", 0); in icmp_input() 302 LWIP_ASSERT("check that first pbuf can hold icmp message", in icmp_send_response()
|
D | autoip.c | 143 LWIP_ASSERT("netif != NULL", netif != NULL); in autoip_set_struct() 144 LWIP_ASSERT("autoip != NULL", autoip != NULL); in autoip_set_struct() 145 LWIP_ASSERT("netif already has a struct autoip set", netif->autoip == NULL); in autoip_set_struct() 221 LWIP_ASSERT("AUTOIP address not in range", (addr >= AUTOIP_RANGE_START) && in autoip_create_addr()
|
/external/syslinux/core/lwip/src/netif/ |
D | slipif.c | 98 LWIP_ASSERT("netif != NULL", (netif != NULL)); in slipif_output() 99 LWIP_ASSERT("netif->state != NULL", (netif->state != NULL)); in slipif_output() 100 LWIP_ASSERT("p != NULL", (p != NULL)); in slipif_output() 169 LWIP_ASSERT("netif != NULL", (netif != NULL)); in slipif_input() 170 LWIP_ASSERT("netif->state != NULL", (netif->state != NULL)); in slipif_input() 355 LWIP_ASSERT("netif != NULL", (netif != NULL)); in slipif_poll() 356 LWIP_ASSERT("netif->state != NULL", (netif->state != NULL)); in slipif_poll()
|
D | etharp.c | 150 LWIP_ASSERT("q != NULL", q != NULL); in free_etharp_q() 151 LWIP_ASSERT("q->p != NULL", q->p != NULL); in free_etharp_q() 155 LWIP_ASSERT("r->p != NULL", (r->p != NULL)); in free_etharp_q() 291 LWIP_ASSERT("state == ETHARP_STATE_PENDING || state == ETHARP_STATE_STABLE", in find_entry() 361 LWIP_ASSERT("arp_table[i].q == NULL", arp_table[i].q == NULL); in find_entry() 379 LWIP_ASSERT("i < ARP_TABLE_SIZE", i < ARP_TABLE_SIZE); in find_entry() 383 LWIP_ASSERT("i < ARP_TABLE_SIZE", i < ARP_TABLE_SIZE); in find_entry() 384 LWIP_ASSERT("arp_table[i].state == ETHARP_STATE_EMPTY", in find_entry() 414 LWIP_ASSERT("netif->hwaddr_len must be the same as ETHARP_HWADDR_LEN for etharp!", in etharp_send_ip() 446 LWIP_ASSERT("netif->hwaddr_len == ETHARP_HWADDR_LEN", netif->hwaddr_len == ETHARP_HWADDR_LEN); [all …]
|
D | undiif.c | 586 LWIP_ASSERT("check that first pbuf can hold arp_hdr_len bytesr", in undiarp_request() 627 LWIP_ASSERT("q != NULL", q != NULL); in free_undiarp_q() 628 LWIP_ASSERT("q->p != NULL", q->p != NULL); in free_undiarp_q() 632 LWIP_ASSERT("r->p != NULL", (r->p != NULL)); in free_undiarp_q() 853 LWIP_ASSERT("arp_table[i].q == NULL", arp_table[i].q == NULL); in find_entry() 875 LWIP_ASSERT("i < ARP_TABLE_SIZE", i < ARP_TABLE_SIZE); in find_entry() 969 LWIP_ASSERT("arp_table[i].state == PENDING or STABLE", in undiarp_query() 1002 LWIP_ASSERT("no packet queues allowed!", (p->len != p->tot_len) || (p->next == 0)); in undiarp_query() 1512 LWIP_ASSERT("Can't move link level header in packet", 0); in undiif_input() 1553 LWIP_ASSERT("netif != NULL", (netif != NULL)); in undiif_init()
|
/external/syslinux/core/lwip/src/core/snmp/ |
D | mib2.c | 1096 LWIP_ASSERT("ni != NULL", ni != NULL); in snmp_insert_arpidx_tree() 1219 LWIP_ASSERT("next_count == 0",next->count == 0); in snmp_delete_arpidx_tree() 1325 LWIP_ASSERT("ni != NULL", ni != NULL); in snmp_insert_ipaddridx_tree() 1379 LWIP_ASSERT("ni != NULL", ni != NULL); in snmp_delete_ipaddridx_tree() 1421 LWIP_ASSERT("next_count == 0",next->count == 0); in snmp_delete_ipaddridx_tree() 1583 LWIP_ASSERT("next_count == 0",next->count == 0); in snmp_delete_iprteidx_tree() 1799 LWIP_ASSERT("pcb != NULL", pcb != NULL); in snmp_insert_udpidx_tree() 1852 LWIP_ASSERT("pcb != NULL", pcb != NULL); in snmp_delete_udpidx_tree() 1911 LWIP_ASSERT("next_count == 0",next->count == 0); in snmp_delete_udpidx_tree() 2129 LWIP_ASSERT("invalid id", (ident[0] >= 0) && (ident[0] <= 0xff)); in system_get_object_def() [all …]
|
D | msg_in.c | 185 LWIP_ASSERT("vb != NULL",vb != NULL); in snmp_msg_get_event() 199 LWIP_ASSERT("invalid length", msg_ps->ext_object_def.v_len <= 0xff); in snmp_msg_get_event() 203 …LWIP_ASSERT("SNMP_MAX_OCTET_STRING_LEN is configured too low", vb->value_len <= SNMP_MAX_VALUE_SIZ… in snmp_msg_get_event() 205 LWIP_ASSERT("vb->value != NULL",vb->value != NULL); in snmp_msg_get_event() 300 LWIP_ASSERT("vb != NULL",vb != NULL); in snmp_msg_get_event() 314 LWIP_ASSERT("invalid length", object_def.v_len <= 0xff); in snmp_msg_get_event() 318 LWIP_ASSERT("SNMP_MAX_OCTET_STRING_LEN is configured too low", in snmp_msg_get_event() 321 LWIP_ASSERT("vb->value != NULL",vb->value != NULL); in snmp_msg_get_event() 413 LWIP_ASSERT("invalid length", msg_ps->ext_object_def.v_len <= 0xff); in snmp_msg_getnext_event() 488 LWIP_ASSERT("invalid length", object_def.v_len <= 0xff); in snmp_msg_getnext_event() [all …]
|
D | mib_structs.c | 66 LWIP_ASSERT("node_stack_cnt < NODE_STACK_SIZE",node_stack_cnt < NODE_STACK_SIZE); in push_node() 221 LWIP_ASSERT("rn != NULL",rn != NULL); in snmp_mib_node_insert() 324 LWIP_ASSERT("insert != 0",insert != 0); in snmp_mib_node_insert() 343 LWIP_ASSERT("rn != NULL",rn != NULL); in snmp_mib_node_find() 399 LWIP_ASSERT("rn != NULL",rn != NULL); in snmp_mib_node_delete() 400 LWIP_ASSERT("n != NULL",n != NULL); in snmp_mib_node_delete() 745 LWIP_ASSERT("i < 0xff", i < 0xff); in snmp_expand_tree() 988 LWIP_ASSERT("i < 0xff", i < 0xff); in snmp_expand_tree()
|
/external/syslinux/core/lwip/src/include/lwip/ |
D | debug.h | 65 #define LWIP_ASSERT(message, assertion) do { if(!(assertion)) \ macro 68 #define LWIP_ASSERT(message, assertion) macro
|
D | tcp_impl.h | 344 … LWIP_ASSERT("TCP_REG: already registered\n", tcp_tmp_pcb != (npcb)); \ 346 …LWIP_ASSERT("TCP_REG: pcb->state != CLOSED", ((pcbs) == &tcp_bound_pcbs) || ((npcb)->state != CLOS… 348 LWIP_ASSERT("TCP_REG: npcb->next != npcb", (npcb)->next != (npcb)); \ 350 LWIP_ASSERT("TCP_RMV: tcp_pcbs sane", tcp_pcbs_sane()); \ 354 LWIP_ASSERT("TCP_RMV: pcbs != NULL", *(pcbs) != NULL); \ 365 LWIP_ASSERT("TCP_RMV: tcp_pcbs sane", tcp_pcbs_sane()); \
|
/external/syslinux/core/lwip/src/netif/ppp/ |
D | vj.c | 380 LWIP_ASSERT("pbuf_header failed\n", 0); in vj_compress_tcp() 389 LWIP_ASSERT("pbuf_header failed\n", 0); in vj_compress_tcp() 591 LWIP_ASSERT("pbuf_header failed\n", 0); in vj_uncompress_tcp() 607 LWIP_ASSERT("pbuf_header failed\n", 0); in vj_uncompress_tcp() 628 …LWIP_ASSERT("vj_uncompress_tcp: cs->cs_hlen <= PBUF_POOL_BUFSIZE", cs->cs_hlen <= PBUF_POOL_BUFSIZ… in vj_uncompress_tcp() 637 LWIP_ASSERT("n0->len >= cs->cs_hlen", n0->len >= cs->cs_hlen); in vj_uncompress_tcp()
|