| /components/net/lwip/lwip-2.1.2/src/netif/ppp/ |
| A D | magic.c | 175 n = LWIP_MIN(buf_len, MD5_HASH_SIZE); in magic_random_bytes() 279 n = LWIP_MIN(buf_len, sizeof(new_rand)); in magic_random_bytes()
|
| A D | upap.c | 162 pcb->upap.us_userlen = (u8_t)LWIP_MIN(strlen(user), 0xff); in upap_authwithpeer() 164 pcb->upap.us_passwdlen = (u8_t)LWIP_MIN(strlen(password), 0xff); in upap_authwithpeer()
|
| /components/net/lwip/lwip-2.0.3/src/netif/ppp/ |
| A D | magic.c | 175 n = LWIP_MIN(buf_len, MD5_HASH_SIZE); in magic_random_bytes() 279 n = LWIP_MIN(buf_len, sizeof(new_rand)); in magic_random_bytes()
|
| A D | upap.c | 162 pcb->upap.us_userlen = LWIP_MIN(strlen(user), 0xff); in upap_authwithpeer() 164 pcb->upap.us_passwdlen = LWIP_MIN(strlen(password), 0xff); in upap_authwithpeer()
|
| /components/net/lwip/lwip-2.0.3/src/apps/snmp/ |
| A D | snmp_pbuf_stream.c | 108 len = LWIP_MIN(pbuf_stream->length, target_pbuf_stream->length); in snmp_pbuf_stream_writeto() 121 chunk_len = LWIP_MIN(len, pbuf->len); in snmp_pbuf_stream_writeto()
|
| /components/net/lwip/lwip-2.1.2/src/apps/snmp/ |
| A D | snmp_pbuf_stream.c | 108 len = LWIP_MIN(pbuf_stream->length, target_pbuf_stream->length); in snmp_pbuf_stream_writeto() 121 chunk_len = LWIP_MIN(len, pbuf->len); in snmp_pbuf_stream_writeto()
|
| /components/net/lwip/lwip-2.0.3/src/apps/httpd/ |
| A D | httpd.c | 809 len = LWIP_MIN(sizeof(ssi->tag_name), LWIP_MIN(strlen(ssi->tag_name), 1089 count = LWIP_MIN(hs->buf_len, bytes_left); 1169 len = (u16_t)LWIP_MIN(hs->left, 0xffff); 1206 len = (u16_t)LWIP_MIN(ssi->parsed - hs->file, 0xffff); 1373 len = (u16_t)LWIP_MIN(ssi->tag_end - hs->file, 0xffff); 1415 len = (u16_t)LWIP_MIN(ssi->tag_end - hs->file, 0xffff); 1419 len = (u16_t)LWIP_MIN(ssi->tag_started - hs->file, 0xffff); 1492 len = (u16_t)LWIP_MIN(ssi->parsed - hs->file, 0xffff); 1942 data_len = LWIP_MIN(hs->req->tot_len, LWIP_HTTPD_MAX_REQ_LENGTH); 2102 size_t copy_len = LWIP_MIN(sizeof(http_uri_buf) - 1, uri_len - 1); [all …]
|
| /components/net/lwip/lwip-2.1.2/src/apps/http/ |
| A D | httpd.c | 823 len = LWIP_MIN(sizeof(ssi->tag_name), LWIP_MIN(strlen(ssi->tag_name), 1120 count = LWIP_MIN(hs->buf_len, bytes_left); 1200 len = (u16_t)LWIP_MIN(hs->left, 0xffff); 1238 len = (u16_t)LWIP_MIN(ssi->parsed - hs->file, 0xffff); 1410 len = (u16_t)LWIP_MIN(ssi->tag_end - hs->file, 0xffff); 1450 len = (u16_t)LWIP_MIN(ssi->tag_end - hs->file, 0xffff); 1454 len = (u16_t)LWIP_MIN(ssi->tag_started - hs->file, 0xffff); 1538 len = (u16_t)LWIP_MIN(ssi->parsed - hs->file, 0xffff); 1995 data_len = LWIP_MIN(hs->req->tot_len, LWIP_HTTPD_MAX_REQ_LENGTH); 2196 size_t copy_len = LWIP_MIN(sizeof(http_uri_buf) - 1, uri_len - 1); [all …]
|
| /components/net/lwip/lwip-2.0.3/src/core/ |
| A D | tcp_out.c | 264 alloc = LWIP_MIN(max_length, LWIP_MEM_ALIGN_SIZE(TCP_OVERSIZE_CALC_LENGTH(length))); in tcp_pbuf_prealloc() 391 u16_t mss_local = LWIP_MIN(pcb->mss, TCPWND_MIN16(pcb->snd_wnd_max/2)); in tcp_write() 475 oversize_used = LWIP_MIN(space, LWIP_MIN(oversize, len)); in tcp_write() 496 u16_t seglen = LWIP_MIN(space, len - pos); in tcp_write() 563 u16_t seglen = LWIP_MIN(left, max_len); in tcp_write() 841 …LWIP_ASSERT("seg->tcphdr not aligned", ((mem_ptr_t)seg->tcphdr % LWIP_MIN(MEM_ALIGNMENT, 4)) == 0); in tcp_enqueue_flags() 1015 wnd = LWIP_MIN(pcb->snd_wnd, pcb->cwnd); in tcp_output() 1503 pcb->ssthresh = LWIP_MIN(pcb->cwnd, pcb->snd_wnd) / 2; in tcp_rexmit_fast()
|
| A D | tcp.c | 763 if (TCP_SEQ_GEQ(new_right_edge, pcb->rcv_ann_right_edge + LWIP_MIN((TCP_WND / 2), pcb->mss))) { in tcp_update_rcv_ann_wnd() 1059 u8_t backoff_idx = LWIP_MIN(pcb->nrtx, sizeof(tcp_backoff)-1); in tcp_slowtmr() 1067 eff_wnd = LWIP_MIN(pcb->cwnd, pcb->snd_wnd); in tcp_slowtmr() 1470 mprio = LWIP_MIN(TCP_PRIO_MAX, prio); in tcp_kill_prio() 1969 sendmss = LWIP_MIN(sendmss, mss_s); in tcp_eff_send_mss_impl()
|
| A D | pbuf.c | 301 p->len = LWIP_MIN(length, PBUF_POOL_BUFSIZE_ALIGNED - LWIP_MEM_ALIGN_SIZE(offset)); in pbuf_alloc() 335 q->len = LWIP_MIN((u16_t)rem_len, PBUF_POOL_BUFSIZE_ALIGNED); in pbuf_alloc() 1203 u16_t first_copy_len = LWIP_MIN(q->len - target_offset, len); in pbuf_take_at()
|
| /components/net/lwip/lwip-1.4.1/src/netif/ppp/ |
| A D | randm.c | 130 n = LWIP_MIN(bufLen, RANDPOOLSZ); in avGenRand()
|
| /components/net/lwip/lwip-2.1.2/src/core/ |
| A D | tcp_out.c | 259 alloc = LWIP_MIN(max_length, LWIP_MEM_ALIGN_SIZE(TCP_OVERSIZE_CALC_LENGTH(length))); in tcp_pbuf_prealloc() 333 if (pcb->snd_queuelen >= LWIP_MIN(TCP_SND_QUEUELEN, (TCP_SNDQUEUELEN_OVERFLOW + 1))) { in tcp_write_checks() 417 mss_local = LWIP_MIN(pcb->mss, TCPWND_MIN16(pcb->snd_wnd_max / 2)); in tcp_write() 506 oversize_used = LWIP_MIN(space, LWIP_MIN(oversize, len)); in tcp_write() 532 u16_t seglen = LWIP_MIN(space, len - pos); in tcp_write() 601 u16_t seglen = LWIP_MIN(left, max_len); in tcp_write() 659 if (queuelen > LWIP_MIN(TCP_SND_QUEUELEN, TCP_SNDQUEUELEN_OVERFLOW)) { in tcp_write() 1090 …LWIP_ASSERT("seg->tcphdr not aligned", ((mem_ptr_t)seg->tcphdr % LWIP_MIN(MEM_ALIGNMENT, 4)) == 0); in tcp_enqueue_flags() 1262 wnd = LWIP_MIN(pcb->snd_wnd, pcb->cwnd); in tcp_output() 1797 pcb->ssthresh = LWIP_MIN(pcb->cwnd, pcb->snd_wnd) / 2; in tcp_rexmit_fast()
|
| A D | tcp.c | 937 if (TCP_SEQ_GEQ(new_right_edge, pcb->rcv_ann_right_edge + LWIP_MIN((TCP_WND / 2), pcb->mss))) { in tcp_update_rcv_ann_wnd() 1287 u8_t backoff_idx = LWIP_MIN(pcb->nrtx, sizeof(tcp_backoff) - 1); in tcp_slowtmr() 1289 pcb->rto = (s16_t)LWIP_MIN(calc_rto, 0x7FFF); in tcp_slowtmr() 1296 eff_wnd = LWIP_MIN(pcb->cwnd, pcb->snd_wnd); in tcp_slowtmr() 1712 mprio = LWIP_MIN(TCP_PRIO_MAX, prio); in tcp_kill_prio() 2291 sendmss = LWIP_MIN(sendmss, mss_s); in tcp_eff_send_mss_netif()
|
| /components/net/lwip/lwip-2.0.3/src/include/lwip/apps/ |
| A D | httpd_opts.h | 205 #define LWIP_HTTPD_MAX_REQ_LENGTH LWIP_MIN(1023, (LWIP_HTTPD_REQ_QUEUELEN * PBUF_POOL_BUF…
|
| /components/net/lwip/lwip-1.4.1/src/include/lwip/ |
| A D | def.h | 44 #define LWIP_MIN(x , y) (((x) < (y)) ? (x) : (y)) macro
|
| /components/net/lwip/lwip-2.0.3/src/include/lwip/ |
| A D | def.h | 55 #define LWIP_MIN(x , y) (((x) < (y)) ? (x) : (y)) macro
|
| A D | opt.h | 1221 #define TCP_SNDLOWAT LWIP_MIN(LWIP_MAX(((TCP_SND_BUF)/2), (2 * TCP_MSS) + 1), (T… 1298 #define TCP_WND_UPDATE_THRESHOLD LWIP_MIN((TCP_WND / 4), (TCP_MSS * 4))
|
| /components/net/lwip/lwip-2.1.2/src/apps/altcp_tls/ |
| A D | altcp_tls_mbedtls.c | 173 u16_t recvd_part = (u16_t)LWIP_MIN(recvd_cnt, 0xFFFF); in altcp_mbedtls_lower_recved() 469 copy_len = (u16_t)LWIP_MIN(len, p->len); in altcp_mbedtls_bio_recv() 1005 size_t ssl_added = (u16_t)LWIP_MIN(ssl_expan, 0xFFFF); in altcp_mbedtls_sndbuf() 1013 max_len = LWIP_MIN(max_frag_len, max_len); in altcp_mbedtls_sndbuf() 1016 ret = LWIP_MIN(sndbuf - ssl_added, max_len); in altcp_mbedtls_sndbuf() 1101 u16_t write_len = (u16_t)LWIP_MIN(size_left, 0xFFFF); in altcp_mbedtls_bio_send()
|
| /components/net/lwip/lwip-2.1.2/src/include/lwip/ |
| A D | def.h | 66 #define LWIP_MIN(x , y) (((x) < (y)) ? (x) : (y)) macro
|
| /components/net/lwip/lwip-2.1.2/src/include/lwip/apps/ |
| A D | httpd_opts.h | 273 #define LWIP_HTTPD_MAX_REQ_LENGTH LWIP_MIN(1023, (LWIP_HTTPD_REQ_QUEUELEN * PBUF_POOL_BUF…
|
| /components/net/lwip/lwip-2.1.2/test/fuzz/ |
| A D | fuzz.c | 126 frame_len = LWIP_MIN(frame_len, max_packet_size); in input_pkts()
|
| /components/net/lwip/lwip-2.0.3/src/apps/mqtt/ |
| A D | mqtt.c | 191 #define mqtt_ringbuf_linear_read_length(rb) LWIP_MIN(mqtt_ringbuf_len(rb), (MQTT_OUTPUT_RINGBUF_SIZ… 230 send_len = LWIP_MIN(tcp_sndbuf(tpcb), mqtt_ringbuf_linear_read_length(rb)); in mqtt_output_send() 818 cpy_len = (u16_t)LWIP_MIN((u16_t)(p->tot_len - in_offset), msg_rem_len); in mqtt_parse_incoming() 1146 mqtt_output_append_u8(&client->output, LWIP_MIN(qos, 2)); in mqtt_sub_unsub()
|
| /components/net/lwip/lwip-2.1.2/src/apps/mqtt/ |
| A D | mqtt.c | 226 #define mqtt_ringbuf_linear_read_length(rb) LWIP_MIN(mqtt_ringbuf_len(rb), (MQTT_OUTPUT_RINGBUF_SIZ… 259 send_len = LWIP_MIN(altcp_sndbuf(tpcb), mqtt_ringbuf_linear_read_length(rb)); in mqtt_output_send() 890 cpy_len = (u16_t)LWIP_MIN((u16_t)(p->tot_len - in_offset), msg_rem_len); in mqtt_parse_incoming() 1220 mqtt_output_append_u8(&client->output, LWIP_MIN(qos, 2)); in mqtt_sub_unsub()
|
| /components/net/lwip/lwip-2.1.2/src/core/ipv4/ |
| A D | dhcp.c | 1493 len = LWIP_MIN(namelen, available); in dhcp_option_hostname() 1604 decode_len = LWIP_MIN(len, 4 * DNS_MAX_SERVERS); in dhcp_parse_reply() 1618 decode_len = LWIP_MIN(len, 4 * LWIP_DHCP_MAX_NTP_SERVERS); in dhcp_parse_reply() 1667 copy_len = LWIP_MIN(decode_len, 4); in dhcp_parse_reply() 1800 for (i = 0; i < netif->hwaddr_len && i < LWIP_MIN(DHCP_CHADDR_LEN, NETIF_MAX_HWADDR_LEN); i++) { in dhcp_recv() 1948 for (i = 0; i < LWIP_MIN(DHCP_CHADDR_LEN, NETIF_MAX_HWADDR_LEN); i++) { in dhcp_create_msg()
|