/lk-master/external/lib/lwip/core/ |
A D | mem.c | 97 LWIP_ASSERT("mem_malloc(): no pool is that big!", 0); in mem_malloc() 134 LWIP_ASSERT("rmem != NULL", (rmem != NULL)); in mem_free() 140 LWIP_ASSERT("hmem != NULL", (hmem != NULL)); in mem_free() 142 LWIP_ASSERT("hmem->poolnr < MEMP_MAX", (hmem->poolnr < MEMP_MAX)); in mem_free() 241 LWIP_ASSERT("plug_holes: mem >= ram", (u8_t *)mem >= ram); in plug_holes() 243 LWIP_ASSERT("plug_holes: mem->used == 0", mem->used == 0); in plug_holes() 278 LWIP_ASSERT("Sanity check alignment", in mem_init() 300 LWIP_ASSERT("failed to create mem_mutex", 0); in mem_init() 339 LWIP_ASSERT("mem_free: mem->used", mem->used); in mem_free() 408 LWIP_ASSERT("mem_trim can only shrink memory", newsize <= size); in mem_trim() [all …]
|
A D | pbuf.c | 232 LWIP_ASSERT("pbuf_alloc: bad pbuf layer", 0); in pbuf_alloc() 340 LWIP_ASSERT("pbuf_alloc: erroneous type", 0); in pbuf_alloc() 517 LWIP_ASSERT("p != NULL", p != NULL); in pbuf_header() 571 LWIP_ASSERT("bad pbuf type", 0); in pbuf_header() 625 LWIP_ASSERT("p != NULL", p != NULL); in pbuf_free() 635 LWIP_ASSERT("pbuf_free: sane type", in pbuf_free() 759 LWIP_ASSERT("p->next == NULL", p->next == NULL); in pbuf_cat() 1023 LWIP_ASSERT("pbuf_copy failed", err == ERR_OK); in pbuf_coalesce() 1048 LWIP_ASSERT("p != NULL", p != NULL); in pbuf_fill_chksum() 1050 LWIP_ASSERT("chksum != NULL", chksum != NULL); in pbuf_fill_chksum() [all …]
|
A D | tcp.c | 178 LWIP_ASSERT("pcb->flags & TF_RXCLOSED", pcb->flags & TF_RXCLOSED); in tcp_close_shutdown() 366 LWIP_ASSERT("don't call tcp_abort/tcp_abandon for listen-pcbs", in tcp_abandon() 595 LWIP_ASSERT("new_rcv_ann_wnd <= 0xffff", new_rcv_ann_wnd <= 0xffff); in tcp_update_rcv_ann_wnd() 616 LWIP_ASSERT("don't call tcp_recved for listen-pcbs", in tcp_recved() 618 LWIP_ASSERT("tcp_recved: len would wrap rcv_wnd\n", in tcp_recved() 1423 LWIP_ASSERT("invalid socket state for err callback", pcb->state != LISTEN); in tcp_err() 1454 LWIP_ASSERT("invalid socket state for poll", pcb->state != LISTEN); in tcp_poll() 1553 LWIP_ASSERT("unsent segments leaking", pcb->unsent == NULL); in tcp_pcb_remove() 1554 LWIP_ASSERT("unacked segments leaking", pcb->unacked == NULL); in tcp_pcb_remove() 1556 LWIP_ASSERT("ooseq segments leaking", pcb->ooseq == NULL); in tcp_pcb_remove() [all …]
|
A D | tcp_out.c | 100 LWIP_ASSERT("check that first pbuf can hold struct tcp_hdr", in tcp_output_alloc_header() 180 LWIP_ASSERT("invalid optflags passed: TF_SEG_DATA_CHECKSUMMED", in tcp_create_segment() 259 LWIP_ASSERT("need unchained pbuf", p->next == NULL); in tcp_pbuf_prealloc() 550 LWIP_ASSERT("oversize == 0", oversize == 0); in tcp_write() 603 LWIP_ASSERT("prev_seg != NULL", prev_seg != NULL); in tcp_write() 638 LWIP_ASSERT("last_unsent->oversize_left >= oversize_used", in tcp_write() 683 LWIP_ASSERT("tcp_write: valid queue length", in tcp_write() 814 LWIP_ASSERT("tcp_enqueue_flags: invalid queue length", in tcp_enqueue_flags() 907 LWIP_ASSERT("don't call tcp_output for listen-pcbs", in tcp_output() 964 LWIP_ASSERT("RST not expected here!", in tcp_output() [all …]
|
A D | tcp_in.c | 418 LWIP_ASSERT("tcp_input: tcp_pcbs_sane()", tcp_pcbs_sane()); in tcp_input() 599 LWIP_ASSERT("tcp_input: pcb->state != CLOSED", pcb->state != CLOSED); in tcp_process() 652 LWIP_ASSERT("pcb->snd_queuelen > 0", (pcb->snd_queuelen > 0)); in tcp_process() 691 LWIP_ASSERT("pcb->accept != NULL", pcb->accept != NULL); in tcp_process() 864 LWIP_ASSERT("tcp_receive: wrong state", pcb->state >= ESTABLISHED); in tcp_receive() 1079 LWIP_ASSERT("tcp_receive: valid queue length", in tcp_receive() 1174 LWIP_ASSERT("inseg.p != NULL", inseg.p); in tcp_receive() 1175 LWIP_ASSERT("insane offset!", (off < 0x7fff)); in tcp_receive() 1190 LWIP_ASSERT("pbuf_header failed", 0); in tcp_receive() 1195 LWIP_ASSERT("pbuf_header failed", 0); in tcp_receive() [all …]
|
A D | dns.c | 250 LWIP_ASSERT("For implicit initialization to work, DNS_STATE_UNUSED needs to be 0", in dns_init() 323 LWIP_ASSERT("invalid host name (NULL)", init_entry->name != NULL); in dns_init_local() 325 …LWIP_ASSERT("namelen <= DNS_LOCAL_HOSTLIST_MAX_NAMELEN", namelen <= DNS_LOCAL_HOSTLIST_MAX_NAMELEN… in dns_init_local() 327 LWIP_ASSERT("mem-error in dns_init_local", entry != NULL); in dns_init_local() 418 LWIP_ASSERT("invalid host name (NULL)", hostname != NULL); in dns_local_addhost() 420 …LWIP_ASSERT("namelen <= DNS_LOCAL_HOSTLIST_MAX_NAMELEN", namelen <= DNS_LOCAL_HOSTLIST_MAX_NAMELEN… in dns_local_addhost() 572 LWIP_ASSERT("dns server out of array", numdns < DNS_MAX_SERVERS); in dns_send() 573 LWIP_ASSERT("dns server has no IP address set", !ip_addr_isany(&dns_servers[numdns])); in dns_send() 579 LWIP_ASSERT("pbuf must be in one piece", p->next == NULL); in dns_send() 641 LWIP_ASSERT("array index out of bounds", i < DNS_TABLE_SIZE); in dns_check_entry() [all …]
|
A D | memp.c | 236 LWIP_ASSERT(errstr, 0); in memp_overflow_check_element_overflow() 269 LWIP_ASSERT(errstr, 0); in memp_overflow_check_element_underflow() 415 LWIP_ASSERT("memp_malloc: memp properly aligned", in memp_malloc() 443 LWIP_ASSERT("memp_free: mem properly aligned", in memp_free() 464 LWIP_ASSERT("memp sanity", memp_sanity()); in memp_free()
|
A D | dhcp.c | 589 LWIP_ASSERT("netif != NULL", netif != NULL); in dhcp_set_struct() 590 LWIP_ASSERT("dhcp != NULL", dhcp != NULL); in dhcp_set_struct() 591 LWIP_ASSERT("netif already has a struct dhcp set", netif->dhcp == NULL); in dhcp_set_struct() 608 LWIP_ASSERT("netif != NULL", netif != NULL); in dhcp_cleanup() 670 LWIP_ASSERT("pbuf p_out wasn't freed", dhcp->p_out == NULL); in dhcp_start() 671 LWIP_ASSERT("reply wasn't freed", dhcp->msg_in == NULL ); in dhcp_start() 1242 LWIP_ASSERT("reply wasn't freed", dhcp->msg_in == NULL); in dhcp_stop() 1315 LWIP_ASSERT("DHCP: hostname is too long!", namelen <= available); in dhcp_option_hostname() 1481 LWIP_ASSERT("next pbuf was null", q); in dhcp_parse_reply() 1553 LWIP_ASSERT("reply wasn't freed", dhcp->msg_in == NULL); in dhcp_recv() [all …]
|
A D | netif.c | 143 LWIP_ASSERT("No init function given", init != NULL); in netif_add() 670 LWIP_ASSERT("if first != NULL, last must also be != NULL", netif->loop_last != NULL); in netif_loop_output() 721 LWIP_ASSERT("netif->loop_cnt_current underflow", in netif_poll() 726 LWIP_ASSERT("bogus pbuf: len != tot_len but next == NULL!", in_end->next != NULL); in netif_poll() 736 LWIP_ASSERT("should not be null since first != last!", netif->loop_first != NULL); in netif_poll()
|
/lk-master/external/lib/lwip/netif/ |
A D | slipif.c | 122 LWIP_ASSERT("netif != NULL", (netif != NULL)); in slipif_output() 123 LWIP_ASSERT("netif->state != NULL", (netif->state != NULL)); in slipif_output() 124 LWIP_ASSERT("p != NULL", (p != NULL)); in slipif_output() 175 LWIP_ASSERT("netif != NULL", (netif != NULL)); in slipif_rxbyte() 176 LWIP_ASSERT("netif->state != NULL", (netif->state != NULL)); in slipif_rxbyte() 385 LWIP_ASSERT("netif != NULL", (netif != NULL)); in slipif_poll() 386 LWIP_ASSERT("netif->state != NULL", (netif->state != NULL)); in slipif_poll() 407 LWIP_ASSERT("netif != NULL", (netif != NULL)); in slipif_process_rxqueue() 408 LWIP_ASSERT("netif->state != NULL", (netif->state != NULL)); in slipif_process_rxqueue() 481 LWIP_ASSERT("netif != NULL", (netif != NULL)); in slipif_received_byte() [all …]
|
A D | etharp.c | 158 LWIP_ASSERT("q != NULL", q != NULL); in free_etharp_q() 159 LWIP_ASSERT("q->p != NULL", q->p != NULL); in free_etharp_q() 163 LWIP_ASSERT("r->p != NULL", (r->p != NULL)); in free_etharp_q() 391 LWIP_ASSERT("i < ARP_TABLE_SIZE", i < ARP_TABLE_SIZE); in etharp_find_entry() 392 LWIP_ASSERT("arp_table[i].state == ETHARP_STATE_EMPTY", in etharp_find_entry() 608 LWIP_ASSERT("eth_ret != NULL && ip_ret != NULL", 885 LWIP_ASSERT("netif != NULL", netif != NULL); 886 LWIP_ASSERT("q != NULL", q != NULL); 887 LWIP_ASSERT("ipaddr != NULL", ipaddr != NULL); 1069 LWIP_ASSERT("q != NULL", q != NULL); [all …]
|
/lk-master/external/lib/lwip/api/ |
A 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); 223 LWIP_ASSERT("recv_tcp must have an argument", arg != NULL); 282 LWIP_ASSERT("conn != NULL", (conn != NULL)); 318 LWIP_ASSERT("conn != NULL", (conn != NULL)); 354 LWIP_ASSERT("conn != NULL", (conn != NULL)); 607 LWIP_ASSERT("netconn_alloc: undefined netconn_type", 0); 752 LWIP_ASSERT("invalid conn", (conn != NULL)); 842 LWIP_ASSERT("blocking connect in progress", 1219 LWIP_ASSERT("conn != NULL", conn != NULL); [all …]
|
A D | sockets.c | 1080 LWIP_ASSERT("nready >= 0", nready >= 0); 1305 LWIP_ASSERT("unknown event", 0); 1665 LWIP_ASSERT("arg != NULL", arg != NULL); 1752 LWIP_ASSERT("unhandled optname", 0); 1792 LWIP_ASSERT("unhandled optname", 0); 1830 LWIP_ASSERT("unhandled optname", 0); 1850 LWIP_ASSERT("unhandled optname", 0); 1856 LWIP_ASSERT("unhandled level", 0); 2082 LWIP_ASSERT("arg != NULL", arg != NULL); 2143 LWIP_ASSERT("unhandled optname", 0); [all …]
|
A 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() 409 LWIP_ASSERT("buf != NULL", buf != NULL); in netconn_recv_data() 485 LWIP_ASSERT("p != NULL", p != NULL); in netconn_recv()
|
A D | tcpip.c | 146 LWIP_ASSERT("tcpip_thread: invalid message", 0); in tcpip_thread() 462 LWIP_ASSERT("failed to create tcpip_thread mbox", 0); in tcpip_init() 466 LWIP_ASSERT("failed to create lock_tcpip_core", 0); in tcpip_init()
|
/lk-master/external/lib/lwip/core/ipv4/ |
A 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() 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() 444 LWIP_ASSERT("sanity check", ipr->p != NULL); in ip_reass_chain_frag_into_datagram_and_validate() 445 LWIP_ASSERT("sanity check", in ip_reass_chain_frag_into_datagram_and_validate() 633 LWIP_ASSERT("p != NULL", p != NULL); in ip_frag_free_pbuf_custom_ref() 643 LWIP_ASSERT("pcr != NULL", pcr != NULL); in ipfrag_free_pbuf_custom() 644 LWIP_ASSERT("pcr == p", (void*)pcr == (void*)p); in ipfrag_free_pbuf_custom() 742 LWIP_ASSERT("this needs a pbuf in one piece!", in ip_frag() [all …]
|
A 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() 218 LWIP_ASSERT("Can't move over header in packet", 0); in icmp_input() 306 LWIP_ASSERT("check that first pbuf can hold icmp message", in icmp_send_response()
|
A D | autoip.c | 135 LWIP_ASSERT("netif != NULL", netif != NULL); in autoip_set_struct() 136 LWIP_ASSERT("autoip != NULL", autoip != NULL); in autoip_set_struct() 137 LWIP_ASSERT("netif already has a struct autoip set", netif->autoip == NULL); in autoip_set_struct() 213 LWIP_ASSERT("AUTOIP address not in range", (addr >= AUTOIP_RANGE_START) && in autoip_create_addr()
|
/lk-master/external/lib/lwip/include/lwip/ |
A D | debug.h | 66 #define LWIP_ASSERT(message, assertion) do { if(!(assertion)) \ macro 69 #define LWIP_ASSERT(message, assertion) macro
|
A D | tcp_impl.h | 341 … LWIP_ASSERT("TCP_REG: already registered\n", tcp_tmp_pcb != (npcb)); \ 343 …LWIP_ASSERT("TCP_REG: pcb->state != CLOSED", ((pcbs) == &tcp_bound_pcbs) || ((npcb)->state != CLOS… 345 LWIP_ASSERT("TCP_REG: npcb->next != npcb", (npcb)->next != (npcb)); \ 347 LWIP_ASSERT("TCP_RMV: tcp_pcbs sane", tcp_pcbs_sane()); \ 351 LWIP_ASSERT("TCP_RMV: pcbs != NULL", *(pcbs) != NULL); \ 362 LWIP_ASSERT("TCP_RMV: tcp_pcbs sane", tcp_pcbs_sane()); \
|
/lk-master/external/lib/lwip/core/snmp/ |
A 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 …]
|
A 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()
|
A D | msg_in.c | 213 LWIP_ASSERT("invalid length", msg_ps->ext_object_def.v_len <= 0xff); in snmp_msg_get_event() 217 …LWIP_ASSERT("SNMP_MAX_OCTET_STRING_LEN is configured too low", vb->value_len <= SNMP_MAX_VALUE_SIZ… in snmp_msg_get_event() 326 LWIP_ASSERT("invalid length", object_def.v_len <= 0xff); in snmp_msg_get_event() 330 LWIP_ASSERT("SNMP_MAX_OCTET_STRING_LEN is configured too low", in snmp_msg_get_event() 426 LWIP_ASSERT("invalid length", msg_ps->ext_object_def.v_len <= 0xff); in snmp_msg_getnext_event() 501 LWIP_ASSERT("invalid length", object_def.v_len <= 0xff); in snmp_msg_getnext_event() 1219 LWIP_ASSERT("invalid length", len <= 0xff); in snmp_pdu_dec_varbindlist() 1331 LWIP_ASSERT("SNMP_MAX_TREE_DEPTH is configured too low", i <= SNMP_MAX_TREE_DEPTH); in snmp_varbind_alloc() 1355 …LWIP_ASSERT("SNMP_MAX_OCTET_STRING_LEN is configured too low", vb->value_len <= SNMP_MAX_VALUE_SIZ… in snmp_varbind_alloc()
|
/lk-master/external/lib/lwip/netif/ppp/ |
A 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()
|
/lk-master/external/lib/lwip/core/ipv6/ |
A D | icmp6.c | 120 LWIP_ASSERT("check that first pbuf can hold icmp message", in icmp_dest_unreach() 158 LWIP_ASSERT("check that first pbuf can hold icmp message", in icmp_time_exceeded()
|