Home
last modified time | relevance | path

Searched refs:LWIP_ASSERT (Results 1 – 25 of 87) sorted by relevance

1234

/third_party/lwip/test/unit/arch/
Dsys_arch.c77 LWIP_ASSERT("sem != NULL", sem != NULL); in sys_sem_new()
85 LWIP_ASSERT("sem != NULL", sem != NULL); in sys_sem_free()
92 LWIP_ASSERT("sem != NULL", sem != NULL); in sys_sem_set_invalid()
101 LWIP_ASSERT("sem != NULL", sem != NULL); in sys_arch_sem_wait()
102 LWIP_ASSERT("*sem > 0", *sem > 0); in sys_arch_sem_wait()
108 LWIP_ASSERT("cannot wait without waiting callback", the_waiting_fn != NULL); in sys_arch_sem_wait()
111 LWIP_ASSERT("*sem > 0", *sem > 0); in sys_arch_sem_wait()
112 LWIP_ASSERT("expecting a semaphore count but it's 0", !expectSomething || (*sem > 1)); in sys_arch_sem_wait()
123 LWIP_ASSERT("expecting a semaphore count but it's 0", !expectSomething || (*sem > 1)); in sys_arch_sem_wait()
125 LWIP_ASSERT("*sem > 0", *sem > 0); in sys_arch_sem_wait()
[all …]
/third_party/lwip/test/sockets/
Dsockets_stresstest.c104 LWIP_ASSERT("buffer too short", buf_len_bytes >= 4); in fill_test_data()
105 LWIP_ASSERT("buffer too big", buf_len_bytes <= 0xFFFF); in fill_test_data()
128 LWIP_ASSERT("buffer too short", buf_len_bytes >= 4); in check_test_data()
130 LWIP_ASSERT("len too short", len_rx >= 4); in check_test_data()
142 LWIP_ASSERT("invalid checksum", chk == chk_rx); in check_test_data()
172 LWIP_ASSERT("err == 0", err == 0); in recv_and_check_data_return_offset()
174 LWIP_ASSERT("ret > 0", ret > 0); in recv_and_check_data_return_offset()
198 LWIP_ASSERT("select error", ret >= 0); in sockets_stresstest_wait_readable_select()
266 LWIP_ASSERT("setsockopt error", ret == 0); in sockets_stresstest_wait_readable_recvtimeo()
273 LWIP_ASSERT("setsockopt error", ret == 0); in sockets_stresstest_wait_readable_recvtimeo()
[all …]
/third_party/lwip/src/core/
Dmem.c71 #define LWIP_MEM_ILLEGAL_FREE(msg) LWIP_ASSERT(msg, 0)
109 LWIP_ASSERT(errstr, 0); in mem_overflow_check_raw()
120 LWIP_ASSERT(errstr, 0); in mem_overflow_check_raw()
213 LWIP_ASSERT("malloc() must return aligned memory", LWIP_MEM_ALIGN(ret) == ret); in mem_malloc()
230 LWIP_ASSERT("rmem != NULL", (rmem != NULL)); in mem_free()
231 LWIP_ASSERT("rmem == MEM_ALIGN(rmem)", (rmem == LWIP_MEM_ALIGN(rmem))); in mem_free()
278 LWIP_ASSERT("mem_malloc(): no pool is that big!", 0); in mem_malloc()
312 LWIP_ASSERT("rmem != NULL", (rmem != NULL)); in mem_free()
313 LWIP_ASSERT("rmem == MEM_ALIGN(rmem)", (rmem == LWIP_MEM_ALIGN(rmem))); in mem_free()
319 LWIP_ASSERT("hmem != NULL", (hmem != NULL)); in mem_free()
[all …]
Dtcp_out.c175 LWIP_ASSERT("tcp_create_segment: invalid pcb", pcb != NULL); in tcp_create_segment()
176 LWIP_ASSERT("tcp_create_segment: invalid pbuf", p != NULL); in tcp_create_segment()
188 LWIP_ASSERT("p->tot_len >= optlen", p->tot_len >= optlen); in tcp_create_segment()
197 LWIP_ASSERT("invalid optflags passed: TF_SEG_DATA_CHECKSUMMED", in tcp_create_segment()
244 LWIP_ASSERT("tcp_pbuf_prealloc: invalid oversize", oversize != NULL); in tcp_pbuf_prealloc()
245 LWIP_ASSERT("tcp_pbuf_prealloc: invalid pcb", pcb != NULL); in tcp_pbuf_prealloc()
279 LWIP_ASSERT("need unchained pbuf", p->next == NULL); in tcp_pbuf_prealloc()
319 LWIP_ASSERT("tcp_write_checks: invalid pcb", pcb != NULL); in tcp_write_checks()
353 LWIP_ASSERT("tcp_write: pbufs on queue => at least one queue non-empty", in tcp_write_checks()
356 LWIP_ASSERT("tcp_write: no pbufs on queue => both queues empty", in tcp_write_checks()
[all …]
Dtcp.c226 LWIP_ASSERT("tcp_free: LISTEN", pcb->state != LISTEN); in tcp_free()
237 LWIP_ASSERT("tcp_free_listen: !LISTEN", pcb->state != LISTEN); in tcp_free_listen()
413 LWIP_ASSERT("tcp_remove_listener: invalid listener", lpcb != NULL); in tcp_remove_listener()
431 LWIP_ASSERT("pcb != NULL", pcb != NULL); in tcp_listen_closed()
432 LWIP_ASSERT("pcb->state == LISTEN", pcb->state == LISTEN); in tcp_listen_closed()
454 LWIP_ASSERT("pcb != NULL", pcb != NULL); in tcp_backlog_delayed()
459 LWIP_ASSERT("accepts_pending != 0", pcb->listener->accepts_pending != 0); in tcp_backlog_delayed()
477 LWIP_ASSERT("pcb != NULL", pcb != NULL); in tcp_backlog_accepted()
481 LWIP_ASSERT("accepts_pending != 0", pcb->listener->accepts_pending != 0); in tcp_backlog_accepted()
508 LWIP_ASSERT("tcp_close_shutdown: invalid pcb", pcb != NULL); in tcp_close_shutdown()
[all …]
Dpbuf.c256 LWIP_ASSERT("pbuf_alloc: pbuf q->payload properly aligned", in pbuf_alloc()
258 LWIP_ASSERT("PBUF_POOL_BUFSIZE must be bigger than MEM_ALIGNMENT", in pbuf_alloc()
290 LWIP_ASSERT("pbuf_alloc: pbuf->payload properly aligned", in pbuf_alloc()
295 LWIP_ASSERT("pbuf_alloc: erroneous type", 0); in pbuf_alloc()
330 LWIP_ASSERT("invalid pbuf_type", (type == PBUF_REF) || (type == PBUF_ROM)); in pbuf_alloc_reference()
408 LWIP_ASSERT("pbuf_realloc: p != NULL", p != NULL); in pbuf_realloc()
431 LWIP_ASSERT("pbuf_realloc: q != NULL", q != NULL); in pbuf_realloc()
445 LWIP_ASSERT("mem_trim returned q == NULL", q != NULL); in pbuf_realloc()
479 LWIP_ASSERT("p != NULL", p != NULL); in pbuf_add_header_impl()
587 LWIP_ASSERT("p != NULL", p != NULL); in pbuf_remove_header()
[all …]
Dnetif.c166 LWIP_ASSERT("netif_loopif_init: invalid netif", netif != NULL); in netif_loopif_init()
260 LWIP_ASSERT("netif_input: invalid pbuf", p != NULL); in netif_input()
261 LWIP_ASSERT("netif_input: invalid netif", inp != NULL); in netif_input()
349 LWIP_ASSERT("single netif already set", 0);
465 LWIP_ASSERT("netif already added", netif2 != netif);
467 LWIP_ASSERT("too many netifs, max. supported number is 255", num_netifs <= 255);
542 LWIP_ASSERT("invalid pointer", ipaddr != NULL);
543 LWIP_ASSERT("invalid pointer", old_addr != NULL);
611 LWIP_ASSERT("invalid pointer", old_nm != NULL);
675 LWIP_ASSERT("invalid pointer", old_gw != NULL);
[all …]
Dtcp_in.c134 LWIP_ASSERT("tcp_input: invalid pbuf", p != NULL);
197 LWIP_ASSERT("p->next != NULL", p->next != NULL);
226 LWIP_ASSERT("p->len == 0", p->len == 0);
227 LWIP_ASSERT("p->tot_len == p->next->tot_len", p->tot_len == p->next->tot_len);
254 LWIP_ASSERT("tcp_input: active pcb->state != CLOSED", pcb->state != CLOSED);
255 LWIP_ASSERT("tcp_input: active pcb->state != TIME-WAIT", pcb->state != TIME_WAIT);
256 LWIP_ASSERT("tcp_input: active pcb->state != LISTEN", pcb->state != LISTEN);
277 LWIP_ASSERT("tcp_input: pcb->next != pcb (before cache)", pcb->next != pcb);
285 LWIP_ASSERT("tcp_input: pcb->next != pcb (after cache)", pcb->next != pcb);
295 LWIP_ASSERT("tcp_input: TIME-WAIT pcb->state == TIME-WAIT", pcb->state == TIME_WAIT);
[all …]
/third_party/lwip/src/core/ipv6/
Dip6_frag.c118 LWIP_ASSERT("sizeof(struct ip6_reass_helper) <= IP6_FRAG_HLEN, set IPV6_FRAG_COPYHEADER to 1", in ip6_reass_tmr()
189 LWIP_ASSERT("ip6_reass_free: moving p->payload to ip6 header failed\n", 0); in ip6_reass_free_complete_datagram()
203 LWIP_ASSERT("pbufs_freed + clen <= 0xffff", pbufs_freed + clen <= 0xffff); in ip6_reass_free_complete_datagram()
219 LWIP_ASSERT("pbufs_freed + clen <= 0xffff", pbufs_freed + clen <= 0xffff); in ip6_reass_free_complete_datagram()
242 LWIP_ASSERT("ip_reass_pbufcount >= clen", ip6_reass_pbufcount >= pbufs_freed); in ip6_reass_free_complete_datagram()
306 LWIP_ASSERT("IPv6 fragment header does not fit in first pbuf", in ip6_reass()
320 LWIP_ASSERT("not a valid pbuf (ip6_input check missing?)", hdrdiff <= 0xFFFF); in ip6_reass()
321 LWIP_ASSERT("not a valid pbuf (ip6_input check missing?)", hdrdiff >= IP6_HLEN); in ip6_reass()
435 LWIP_ASSERT("no room for struct ip6_reass_helper", hdrerr == 0); in ip6_reass()
438 LWIP_ASSERT("sizeof(struct ip6_reass_helper) <= IP6_FRAG_HLEN, set IPV6_FRAG_COPYHEADER to 1", in ip6_reass()
[all …]
/third_party/lwip/src/netif/
Dslipif.c123 LWIP_ASSERT("netif != NULL", (netif != NULL)); in slipif_output()
124 LWIP_ASSERT("netif->state != NULL", (netif->state != NULL)); in slipif_output()
125 LWIP_ASSERT("p != NULL", (p != NULL)); in slipif_output()
212 LWIP_ASSERT("netif != NULL", (netif != NULL)); in slipif_rxbyte()
213 LWIP_ASSERT("netif->state != NULL", (netif->state != NULL)); in slipif_rxbyte()
365 LWIP_ASSERT("slipif needs an input callback", netif->input != NULL); in slipif_init()
431 LWIP_ASSERT("netif != NULL", (netif != NULL)); in slipif_poll()
432 LWIP_ASSERT("netif->state != NULL", (netif->state != NULL)); in slipif_poll()
454 LWIP_ASSERT("netif != NULL", (netif != NULL)); in slipif_process_rxqueue()
455 LWIP_ASSERT("netif->state != NULL", (netif->state != NULL)); in slipif_process_rxqueue()
[all …]
Dbridgeif.c140 LWIP_ASSERT("invalid netif", bridgeif != NULL); in bridgeif_fdb_add()
142 LWIP_ASSERT("invalid state", br != NULL); in bridgeif_fdb_add()
173 LWIP_ASSERT("invalid netif", bridgeif != NULL); in bridgeif_fdb_remove()
175 LWIP_ASSERT("invalid state", br != NULL); in bridgeif_fdb_remove()
266 LWIP_ASSERT("invalid port index", dstport_idx == BRIDGEIF_MAX_PORTS); in bridgeif_send_to_port()
337 LWIP_ASSERT("port data not set", port != NULL); in bridgeif_input()
420 LWIP_ASSERT("netif != NULL", (netif != NULL)); in bridgeif_init()
421 LWIP_ASSERT("bridgeif needs an input callback", (netif->input != NULL)); in bridgeif_init()
433 LWIP_ASSERT("init_data != NULL", (init_data != NULL)); in bridgeif_init()
434 LWIP_ASSERT("init_data->max_ports <= BRIDGEIF_MAX_PORTS", in bridgeif_init()
[all …]
Dzepif.c115 LWIP_ASSERT("arg != NULL", arg != NULL); in zepif_udp_recv()
116 LWIP_ASSERT("pcb != NULL", pcb != NULL); in zepif_udp_recv()
175 LWIP_ASSERT("invalid netif", netif != NULL); in zepif_linkoutput()
176 LWIP_ASSERT("invalid pbuf", p != NULL); in zepif_linkoutput()
181 LWIP_ASSERT("TODO: support chained pbufs", p->next == NULL); in zepif_linkoutput()
184 LWIP_ASSERT("state->pcb != NULL", state->pcb != NULL); in zepif_linkoutput()
228 LWIP_ASSERT("zepif needs an input callback", netif->input != NULL); in zepif_init()
264 LWIP_ASSERT("udp_bind(lowpan6_broadcast_pcb) failed", err == ERR_OK); in zepif_init()
269 LWIP_ASSERT("lowpan6_if_init set a state", netif->state == NULL); in zepif_init()
Dlowpan6_common.c143 LWIP_ASSERT("netif != NULL", netif != NULL); in lowpan6_compress_headers()
144 LWIP_ASSERT("inbuf != NULL", inbuf != NULL); in lowpan6_compress_headers()
145 LWIP_ASSERT("outbuf != NULL", outbuf != NULL); in lowpan6_compress_headers()
146 LWIP_ASSERT("lowpan6_header_len_out != NULL", lowpan6_header_len_out != NULL); in lowpan6_compress_headers()
147 LWIP_ASSERT("hidden_header_len_out != NULL", hidden_header_len_out != NULL); in lowpan6_compress_headers()
404 LWIP_ASSERT("lowpan6_buffer != NULL", lowpan6_buffer != NULL); in lowpan6_decompress_hdr()
405 LWIP_ASSERT("decomp_buffer != NULL", decomp_buffer != NULL); in lowpan6_decompress_hdr()
406 LWIP_ASSERT("src != NULL", src != NULL); in lowpan6_decompress_hdr()
407 LWIP_ASSERT("dest != NULL", dest != NULL); in lowpan6_decompress_hdr()
408 LWIP_ASSERT("hdr_size_comp != NULL", hdr_size_comp != NULL); in lowpan6_decompress_hdr()
[all …]
/third_party/lwip/src/api/
Dapi_msg.c125 LWIP_ASSERT("unhandled error", err == ERR_OK); in lwip_netconn_err_to_msg()
133 LWIP_ASSERT("err != NULL", err != NULL); in lwip_netconn_is_err_msg()
229 LWIP_ASSERT("recv_udp must have a pcb argument", pcb != NULL);
230 LWIP_ASSERT("recv_udp must have an argument", arg != NULL);
238 LWIP_ASSERT("recv_udp: recv for wrong pcb!", conn->pcb.udp == pcb);
300 LWIP_ASSERT("recv_tcp must have a pcb argument", pcb != NULL);
301 LWIP_ASSERT("recv_tcp must have an argument", arg != NULL);
302 LWIP_ASSERT("err != ERR_OK unhandled", err == ERR_OK);
309 LWIP_ASSERT("recv_tcp: recv for wrong pcb!", conn->pcb.tcp == pcb);
362 LWIP_ASSERT("conn != NULL", (conn != NULL));
[all …]
Dtcpip.c150 LWIP_ASSERT("tcpip_thread: invalid message", 0); in tcpip_thread()
222 LWIP_ASSERT("tcpip_thread: invalid message", 0); in tcpip_thread_handle_msg()
322 LWIP_ASSERT("Invalid mbox", sys_mbox_valid_val(tcpip_mbox)); in tcpip_inpkt()
383 LWIP_ASSERT("Invalid mbox", sys_mbox_valid_val(tcpip_mbox)); in tcpip_callback()
419 LWIP_ASSERT("Invalid mbox", sys_mbox_valid_val(tcpip_mbox)); in tcpip_try_callback()
451 LWIP_ASSERT("Invalid mbox", sys_mbox_valid_val(tcpip_mbox)); in tcpip_timeout()
478 LWIP_ASSERT("Invalid mbox", sys_mbox_valid_val(tcpip_mbox)); in tcpip_untimeout()
521 LWIP_ASSERT("semaphore not initialized", sys_sem_valid(sem)); in tcpip_send_msg_wait_sem()
522 LWIP_ASSERT("Invalid mbox", sys_mbox_valid_val(tcpip_mbox)); in tcpip_send_msg_wait_sem()
567 LWIP_ASSERT("Invalid mbox", sys_mbox_valid_val(tcpip_mbox)); in tcpip_api_call()
[all …]
/third_party/lwip/src/core/ipv4/
Dip4_frag.c171 LWIP_ASSERT("prev != ipr", prev != ipr); in ip_reass_free_complete_datagram()
173 LWIP_ASSERT("prev->next == ipr", prev->next == ipr); in ip_reass_free_complete_datagram()
188 LWIP_ASSERT("pbufs_freed + clen <= 0xffff", pbufs_freed + clen <= 0xffff); in ip_reass_free_complete_datagram()
204 LWIP_ASSERT("pbufs_freed + clen <= 0xffff", pbufs_freed + clen <= 0xffff); in ip_reass_free_complete_datagram()
210 LWIP_ASSERT("ip_reass_pbufcount >= pbufs_freed", ip_reass_pbufcount >= pbufs_freed); in ip_reass_free_complete_datagram()
345 LWIP_ASSERT("sanity check linked list", prev != NULL); in ip_reass_dequeue_datagram()
387 LWIP_ASSERT("sizeof(struct ip_reass_helper) <= IP_HLEN", in ip_reass_chain_frag_into_datagram_and_validate()
458 LWIP_ASSERT("check fragments don't overlap", iprh_prev->end <= iprh->start); in ip_reass_chain_frag_into_datagram_and_validate()
466 LWIP_ASSERT("no previous fragment, this must be the first fragment!", in ip_reass_chain_frag_into_datagram_and_validate()
499 LWIP_ASSERT("sanity check", ipr->p != NULL); in ip_reass_chain_frag_into_datagram_and_validate()
[all …]
Detharp.c150 LWIP_ASSERT("q != NULL", q != NULL); in free_etharp_q()
154 LWIP_ASSERT("r->p != NULL", (r->p != NULL)); in free_etharp_q()
320 LWIP_ASSERT("state == ETHARP_STATE_PENDING || state >= ETHARP_STATE_STABLE", in etharp_find_entry()
394 LWIP_ASSERT("arp_table[i].q == NULL", arp_table[i].q == NULL); in etharp_find_entry()
412 LWIP_ASSERT("i < ARP_TABLE_SIZE", i < ARP_TABLE_SIZE); in etharp_find_entry()
416 LWIP_ASSERT("i < ARP_TABLE_SIZE", i < ARP_TABLE_SIZE); in etharp_find_entry()
417 LWIP_ASSERT("arp_table[i].state == ETHARP_STATE_EMPTY", in etharp_find_entry()
454 LWIP_ASSERT("netif->hwaddr_len == ETH_HWADDR_LEN", netif->hwaddr_len == ETH_HWADDR_LEN);
620 LWIP_ASSERT("eth_ret != NULL && ip_ret != NULL",
646 LWIP_ASSERT("ipaddr != NULL", ipaddr != NULL);
[all …]
/third_party/lwip/src/apps/lwiperf/
Dlwiperf.c208 LWIP_ASSERT("duplicate entry", iter != item); in lwiperf_list_remove()
269 LWIP_ASSERT("error", err == ERR_OK); in lwiperf_tcp_close()
285 LWIP_ASSERT("conn invalid", (conn != NULL) && conn->base.tcp && (conn->base.server == 0)); in lwiperf_tcp_client_send_more()
358 LWIP_ASSERT("invalid conn", conn->conn_pcb == tpcb); in lwiperf_tcp_client_sent()
372 LWIP_ASSERT("invalid conn", conn->conn_pcb == tpcb); in lwiperf_tcp_client_connected()
395 LWIP_ASSERT("remote_ip != NULL", remote_ip != NULL); in lwiperf_tx_start_impl()
396 LWIP_ASSERT("remote_ip != NULL", settings != NULL); in lwiperf_tx_start_impl()
397 LWIP_ASSERT("new_conn != NULL", new_conn != NULL); in lwiperf_tx_start_impl()
448 LWIP_ASSERT("new_conn != NULL", new_conn != NULL); in lwiperf_tx_start_passive()
464 LWIP_ASSERT("pcb mismatch", conn->conn_pcb == tpcb); in lwiperf_tcp_recv()
[all …]
/third_party/lwip/src/apps/mqtt/
Dmqtt.c203LWIP_ASSERT("mqtt_ringbuf_advance_get_idx: len < MQTT_OUTPUT_RINGBUF_SIZE", len < MQTT_OUTPUT_RING… in mqtt_ringbuf_advance_get_idx()
240 LWIP_ASSERT("mqtt_output_send: tpcb != NULL", tpcb != NULL); in mqtt_output_send()
291 LWIP_ASSERT("mqtt_create_request: r_objs != NULL", r_objs != NULL); in mqtt_create_request()
319 LWIP_ASSERT("mqtt_append_request: tail != NULL", tail != NULL); in mqtt_append_request()
327LWIP_ASSERT("mqtt_append_request: time_before <= MQTT_REQ_TIMEOUT", time_before <= MQTT_REQ_TIMEOU… in mqtt_append_request()
359 LWIP_ASSERT("mqtt_take_request: tail != NULL", tail != NULL); in mqtt_take_request()
394 LWIP_ASSERT("mqtt_request_time_elapsed: tail != NULL", tail != NULL); in mqtt_request_time_elapsed()
423 LWIP_ASSERT("mqtt_clear_requests: tail != NULL", tail != NULL); in mqtt_clear_requests()
439 LWIP_ASSERT("mqtt_init_requests: r_objs != NULL", r_objs != NULL); in mqtt_init_requests()
519 LWIP_ASSERT("mqtt_output_check_space: rb != NULL", rb != NULL); in mqtt_output_check_space()
[all …]
/third_party/lwip/src/apps/altcp_tls/
Daltcp_tls_mbedtls.c168 LWIP_ASSERT("pcb mismatch", conn->inner_conn == inner_conn); in altcp_mbedtls_lower_connected()
201 LWIP_ASSERT("no err expected", err == ERR_OK); in altcp_mbedtls_lower_recv()
213 LWIP_ASSERT("pcb mismatch", conn->inner_conn == inner_conn); in altcp_mbedtls_lower_recv()
255 LWIP_ASSERT("rx pbuf overflow", (int)p->tot_len + (int)p->len <= 0xFFFF); in altcp_mbedtls_lower_recv()
277 LWIP_ASSERT("in this state, the rx chain should be empty", state->rx == NULL); in altcp_mbedtls_lower_recv_process()
293 LWIP_ASSERT("state", state->bio_bytes_read == 0); in altcp_mbedtls_lower_recv_process()
294 LWIP_ASSERT("state", state->bio_bytes_appl == 0); in altcp_mbedtls_lower_recv_process()
318 LWIP_ASSERT("conn != NULL", conn != NULL); in altcp_mbedtls_pass_rx_data()
319 LWIP_ASSERT("state != NULL", state != NULL); in altcp_mbedtls_pass_rx_data()
334 LWIP_ASSERT("state == conn->state", state == conn->state); in altcp_mbedtls_pass_rx_data()
[all …]
/third_party/lwip/src/apps/smtp/
Dsmtp.c490 LWIP_ASSERT("no smtp_session supplied", s != NULL); in smtp_send_mail_alloced()
656 LWIP_ASSERT("string is too long", len <= 0xffff); in smtp_send_mail_static()
660 LWIP_ASSERT("string is too long", len <= 0xffff); in smtp_send_mail_static()
664 LWIP_ASSERT("string is too long", len <= 0xffff); in smtp_send_mail_static()
668 LWIP_ASSERT("string is too long", len <= 0xffff); in smtp_send_mail_static()
701 LWIP_ASSERT("smtp_send_mail_int: no argument given", arg != NULL); in smtp_send_mail_int()
926 LWIP_ASSERT("target_len is too short", target_len >= len); in smtp_base64_encode()
1035 LWIP_ASSERT("ipaddr_ntoa returned NULL", ipa != NULL); in smtp_prepare_helo()
1037LWIP_ASSERT("string too long", ipa_len <= (SMTP_TX_BUF_LEN-SMTP_CMD_EHLO_1_LEN-SMTP_CMD_EHLO_2_LEN… in smtp_prepare_helo()
1040 LWIP_ASSERT("tx_buf overflow detected", *tx_buf_len <= SMTP_TX_BUF_LEN); in smtp_prepare_helo()
[all …]
/third_party/lwip/src/apps/http/
Dhttpd.c398 LWIP_ASSERT("broken list", hs != hs->next); in http_kill_oldest_connection()
402 LWIP_ASSERT("hs_free_next->next != NULL", hs_free_next->next != NULL); in http_kill_oldest_connection()
403 LWIP_ASSERT("hs_free_next->next->pcb != NULL", hs_free_next->next->pcb != NULL); in http_kill_oldest_connection()
537 LWIP_ASSERT("length != NULL", length != NULL); in http_write()
772 LWIP_ASSERT("hs != NULL", hs != NULL);
774 LWIP_ASSERT("ssi != NULL", ssi != NULL);
831 LWIP_ASSERT("len <= 0xffff", len <= 0xffff);
952 LWIP_ASSERT("already been here?", hs->hdrs[HDR_STRINGS_IDX_CONTENT_LEN_KEEPALIVE] == NULL);
1181 LWIP_ASSERT("SSI and DYNAMIC_HEADERS turned off but eof not reached", 0);
1227 LWIP_ASSERT("ssi != NULL", ssi != NULL);
[all …]
/third_party/lwip/src/apps/http/makefsdata/
Dmakefsdata.c197 LWIP_ASSERT("sizeof(hdr_buf) must fit into an u16_t", sizeof(hdr_buf) <= 0xffff); in main()
445 LWIP_ASSERT("sublen < sizeof(curSubdir)", sublen < sizeof(curSubdir)); in process_sub()
554 LWIP_ASSERT("buf != NULL", buf != NULL); in get_file_data()
556 LWIP_ASSERT("r == fsize", r == fsize); in get_file_data()
586 LWIP_ASSERT("out_bytes <= COPY_BUFSIZE", out_bytes <= OUT_BUF_SIZE); in get_file_data()
589 LWIP_ASSERT("ret_buf != NULL", ret_buf != NULL); in get_file_data()
602 LWIP_ASSERT("tinfl_decompress failed", dec_status == TINFL_STATUS_DONE); in get_file_data()
603 LWIP_ASSERT("tinfl_decompress size mismatch", fsize == dec_out_bytes); in get_file_data()
604 LWIP_ASSERT("decompressed memcmp failed", !memcmp(s_checkbuf, buf, fsize)); in get_file_data()
636 LWIP_ASSERT("file_buffer_c overflow", off < sizeof(file_buffer_c) - 5); in process_file_data()
[all …]
/third_party/lwip/src/apps/snmp/
Dsnmp_core.c239 LWIP_ASSERT("mibs pointer must be != NULL", (mibs != NULL)); in snmp_set_mibs()
240 LWIP_ASSERT("num_mibs pointer must be != 0", (num_mibs != 0)); in snmp_set_mibs()
550 LWIP_ASSERT("oid_len <= SNMP_MAX_OBJ_ID_LEN", oid_len <= SNMP_MAX_OBJ_ID_LEN); in snmp_oid_assign()
568LWIP_ASSERT("target->len + oid_len <= SNMP_MAX_OBJ_ID_LEN", (target->len + oid_len) <= SNMP_MAX_OB… in snmp_oid_prefix()
606LWIP_ASSERT("offset + oid_len <= SNMP_MAX_OBJ_ID_LEN", (target->len + oid_len) <= SNMP_MAX_OBJ_ID_… in snmp_oid_append()
626LWIP_ASSERT("'oid1' param must not be NULL or 'oid1_len' param be 0!", (oid1 != NULL) || (oid1_len… in snmp_oid_compare()
627LWIP_ASSERT("'oid2' param must not be NULL or 'oid2_len' param be 0!", (oid2 != NULL) || (oid2_len… in snmp_oid_compare()
690 LWIP_ASSERT("'oid' param must not be NULL!", (oid != NULL)); in snmp_get_mib_from_oid()
697 LWIP_ASSERT("MIB array not initialized correctly", (snmp_mibs[i] != NULL)); in snmp_get_mib_from_oid()
698LWIP_ASSERT("MIB array not initialized correctly - base OID is NULL", (snmp_mibs[i]->base_oid != N… in snmp_get_mib_from_oid()
[all …]
/third_party/lwip/test/fuzz/
Dfuzz.c100 LWIP_ASSERT("pkt too big", len <= 0xFFFF); in input_pkt()
102 LWIP_ASSERT("alloc failed", p); in input_pkt()
177 LWIP_ASSERT("invalid filename", filename != NULL); in main()
179 LWIP_ASSERT("open failed", f != NULL); in main()

1234