Home
last modified time | relevance | path

Searched refs:LWIP_MIN (Results 1 – 25 of 37) sorted by relevance

12

/third_party/lwip/src/netif/ppp/
Dmagic.c175 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()
Dupap.c162 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()
Ddemand.c101 netif_set_mtu(pcb, LWIP_MIN(lcp_allowoptions[0].mru, PPP_MRU)); in demand_conf()
Dmultilink.c198 mtu = LWIP_MIN(ho->mrru, ao->mru); in mp_join_bundle()
Dpppoe.c487 u16_t error_len = LWIP_MIN(len, sizeof(error_tmp)-1); in pppoe_disc_input()
849 retry_wait = LWIP_MIN(PPPOE_DISC_TIMEOUT * sc->sc_padi_retried, PPPOE_SLOW_RETRY); in pppoe_timeout()
/third_party/lwip/src/apps/snmp/
Dsnmp_pbuf_stream.c108 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()
Dsnmp_traps.c354 trap->comlen = (u16_t)LWIP_MIN(strlen(snmp_community_trap), 0xFFFF); in snmp_trap_header_sum()
/third_party/lwip/src/apps/http/
Dhttpd.c823 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);
1426 len = (u16_t)LWIP_MIN(ssi->tag_end - hs->file, 0xffff);
1429 len = (u16_t)LWIP_MIN(ssi->tag_started - hs->file, 0xffff);
1466 len = (u16_t)LWIP_MIN(ssi->tag_end - hs->file, 0xffff);
1470 len = (u16_t)LWIP_MIN(ssi->tag_started - hs->file, 0xffff);
1554 len = (u16_t)LWIP_MIN(ssi->parsed - hs->file, 0xffff);
1829 u16_t hdr_len = (u16_t)LWIP_MIN(data_len, crlfcrlf + 4 - data);
[all …]
/third_party/lwip/src/core/
Dtcp_out.c259 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()
1091 …LWIP_ASSERT("seg->tcphdr not aligned", ((mem_ptr_t)seg->tcphdr % LWIP_MIN(MEM_ALIGNMENT, 4)) == 0); in tcp_enqueue_flags()
1263 wnd = LWIP_MIN(pcb->snd_wnd, pcb->cwnd); in tcp_output()
1798 pcb->ssthresh = LWIP_MIN(pcb->cwnd, pcb->snd_wnd) / 2; in tcp_rexmit_fast()
Dpbuf.c253 qlen = LWIP_MIN(rem_len, (u16_t)(PBUF_POOL_BUFSIZE_ALIGNED - LWIP_MEM_ALIGN_SIZE(offset))); in pbuf_alloc()
1013 len = (u16_t)LWIP_MIN(copy_len, len_calc); in pbuf_copy_partial_pbuf()
1286 first_copy_len = (u16_t)LWIP_MIN(q->len - target_offset, len); in pbuf_take_at()
1491 return (u16_t)LWIP_MIN(i + 1, 0xFFFF); in pbuf_memcmp()
Dtcp.c938 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()
1288 u8_t backoff_idx = LWIP_MIN(pcb->nrtx, sizeof(tcp_backoff) - 1); in tcp_slowtmr()
1290 pcb->rto = (s16_t)LWIP_MIN(calc_rto, 0x7FFF); in tcp_slowtmr()
1297 eff_wnd = LWIP_MIN(pcb->cwnd, pcb->snd_wnd); in tcp_slowtmr()
1713 mprio = LWIP_MIN(TCP_PRIO_MAX, prio); in tcp_kill_prio()
2295 sendmss = LWIP_MIN(sendmss, mss_s); in tcp_eff_send_mss_netif()
Dtcp_in.c69 #define LWIP_TCP_CALC_INITIAL_CWND(mss) ((tcpwnd_size_t)LWIP_MIN((4U * (mss)), LWIP_MAX((2U * (mss)…
462 acked16 = (u16_t)LWIP_MIN(acked, 0xffffu);
1263 increase = LWIP_MIN(acked, (tcpwnd_size_t)(num_seg * pcb->mss));
/third_party/lwip/src/apps/altcp_tls/
Daltcp_tls_mbedtls.c185 u16_t recvd_part = (u16_t)LWIP_MIN(recvd_cnt, 0xFFFF); in altcp_mbedtls_lower_recved()
482 copy_len = (u16_t)LWIP_MIN(len, p->len); in altcp_mbedtls_bio_recv()
1093 size_t ssl_added = (u16_t)LWIP_MIN(ssl_expan, 0xFFFF); in altcp_mbedtls_sndbuf()
1101 max_len = LWIP_MIN(max_frag_len, max_len); in altcp_mbedtls_sndbuf()
1104 ret = LWIP_MIN(sndbuf - ssl_added, max_len); in altcp_mbedtls_sndbuf()
1189 u16_t write_len = (u16_t)LWIP_MIN(size_left, 0xFFFF); in altcp_mbedtls_bio_send()
/third_party/lwip/src/core/ipv6/
Dicmp6.c390 u16_t datalen = LWIP_MIN(p->tot_len, LWIP_ICMP6_DATASIZE); in icmp6_send_response_with_addrs_and_netif()
412 u16_t len = LWIP_MIN(datalen, p->len); in icmp6_send_response_with_addrs_and_netif()
Dnd6.c700 inp->mtu6 = LWIP_MIN(LWIP_MIN(inp->mtu, inp->mtu6), (u16_t)mtu32); in nd6_input()
928 destination_cache[dest_idx].pmtu = (u16_t)LWIP_MIN(pmtu, 0xFFFF); in nd6_input()
/third_party/lwip/src/include/lwip/apps/
Dhttpd_opts.h273 #define LWIP_HTTPD_MAX_REQ_LENGTH LWIP_MIN(1023, (LWIP_HTTPD_REQ_QUEUELEN * PBUF_POOL_BUF…
/third_party/lwip/src/include/lwip/
Ddef.h66 #define LWIP_MIN(x , y) (((x) < (y)) ? (x) : (y)) macro
Dopt.h1331 #define TCP_SNDLOWAT LWIP_MIN(LWIP_MAX(((TCP_SND_BUF)/2), (2 * TCP_MSS) + 1), (T…
1438 #define TCP_WND_UPDATE_THRESHOLD LWIP_MIN((TCP_WND / 4), (TCP_MSS * 4))
Dtcp.h139 #define TCPWND16(x) ((u16_t)LWIP_MIN((x), 0xFFFF))
/third_party/lwip/test/fuzz/
Dfuzz.c126 frame_len = LWIP_MIN(frame_len, max_packet_size); in input_pkts()
/third_party/lwip/src/apps/mqtt/
Dmqtt.c226 #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()
889 cpy_len = (u16_t)LWIP_MIN((u16_t)(p->tot_len - in_offset), msg_rem_len); in mqtt_parse_incoming()
1219 mqtt_output_append_u8(&client->output, LWIP_MIN(qos, 2)); in mqtt_sub_unsub()
/third_party/lwip/src/core/ipv4/
Ddhcp.c1484 len = LWIP_MIN(namelen, available); in dhcp_option_hostname()
1597 decode_len = LWIP_MIN(len, 4 * DNS_MAX_SERVERS); in dhcp_parse_reply()
1611 decode_len = LWIP_MIN(len, 4 * LWIP_DHCP_MAX_NTP_SERVERS); in dhcp_parse_reply()
1660 copy_len = LWIP_MIN(decode_len, 4); in dhcp_parse_reply()
1793 for (i = 0; i < netif->hwaddr_len && i < LWIP_MIN(DHCP_CHADDR_LEN, NETIF_MAX_HWADDR_LEN); i++) { in dhcp_recv()
1941 for (i = 0; i < LWIP_MIN(DHCP_CHADDR_LEN, NETIF_MAX_HWADDR_LEN); i++) { in dhcp_create_msg()
Dip4_frag.c776 fragsize = LWIP_MIN(left, (u16_t)(nfb * 8)); in ip4_frag()
814 newpbuflen = LWIP_MIN(left_to_copy, plen); in ip4_frag()
/third_party/lwip/src/apps/mdns/
Dmdns.c2075 MEMCPY(&mdns->name, hostname, LWIP_MIN(MDNS_LABEL_MAXLEN, strlen(hostname))); in mdns_resp_add_netif()
2168 MEMCPY(&mdns->name, hostname, LWIP_MIN(MDNS_LABEL_MAXLEN, len)); in mdns_resp_rename_netif()
2219 MEMCPY(&srv->name, name, LWIP_MIN(MDNS_LABEL_MAXLEN, strlen(name))); in mdns_resp_add_service()
2220 MEMCPY(&srv->service, service, LWIP_MIN(MDNS_LABEL_MAXLEN, strlen(service))); in mdns_resp_add_service()
2284 MEMCPY(&srv->name, name, LWIP_MIN(MDNS_LABEL_MAXLEN, len)); in mdns_resp_rename_service()
/third_party/lwip/src/include/lwip/priv/
Dtcp_priv.h317 #define TCPWND_MIN16(x) ((u16_t)LWIP_MIN((x), 0xFFFF))

12