| /lib/lwip/lwip/test/unit/tcp/ |
| A D | test_tcp.c | 25 SEQNO1 + (1 * TCP_MSS), 26 SEQNO1 + (2 * TCP_MSS), 27 SEQNO1 + (3 * TCP_MSS), 28 SEQNO1 + (4 * TCP_MSS), 833 if ((TCP_WND - TCP_MSS) % TCP_MSS != 0) { in test_tcp_tx_full_window_lost() 834 u16_t initial_data_len = (TCP_WND - TCP_MSS) % TCP_MSS; in test_tcp_tx_full_window_lost() 844 for (; sent_total < (TCP_WND - TCP_MSS); sent_total += TCP_MSS) { in test_tcp_tx_full_window_lost() 1547 err = tcp_write(pcb, &tx_data[0], (3 * TCP_MSS) + (TCP_MSS - (TCP_MSS / 4)), TCP_WRITE_FLAG_COPY); in START_TEST() 1560 EXPECT(pcb->unsent->len == TCP_MSS - (TCP_MSS / 4)); in START_TEST() 1626 EXPECT(memcmp(sent, &tx_data[3 * TCP_MSS], TCP_MSS / 2) == 0); in START_TEST() [all …]
|
| A D | test_tcp_oos.c | 492 for(i = TCP_MSS, k = 0; i < TCP_WND; i += TCP_MSS, k++) { in START_TEST() 495 TCP_MSS, TCP_MSS*(k+1), 0, TCP_ACK); in START_TEST() 508 if (i + TCP_MSS < TCP_WND) { in START_TEST() 519 …p_ovr = tcp_create_rx_segment(pcb, &data_full_wnd[TCP_MSS*(k+1)], TCP_MSS, TCP_MSS*(k+1), 0, TCP_A… in START_TEST() 579 for(i = TCP_MSS, k = 0; i < TCP_WND; i += TCP_MSS, k++) { in START_TEST() 582 TCP_MSS, TCP_MSS*(k+1), 0, TCP_ACK); in START_TEST() 595 if (i + TCP_MSS < TCP_WND) { in START_TEST() 606 …p_ovr = tcp_create_rx_segment(pcb, &data_full_wnd[TCP_MSS*(k+1)], TCP_MSS, TCP_MSS*(k+1), 0, TCP_A… in START_TEST() 837 …p_data_after_fin = tcp_create_rx_segment(pcb, &data_full_wnd[TCP_MSS+1], k, TCP_MSS+1, 0, TCP_ACK); in test_tcp_recv_ooseq_double_FINs() 847 exp_rx_bytes += TCP_MSS; in test_tcp_recv_ooseq_double_FINs() [all …]
|
| A D | test_tcp_state.c | 19 #define SEQNO1 (0xFFFFFF00 - TCP_MSS)
|
| /lib/lwip/lwip/contrib/examples/example_app/test_configs/ |
| A D | opt_default.h | 102 #define TCP_WND (4 * TCP_MSS) 108 #define TCP_MSS 536 macro 110 #define TCP_SND_BUF (2 * TCP_MSS) 111 #define TCP_SND_QUEUELEN ((4 * (TCP_SND_BUF) + (TCP_MSS - 1))/(TCP_MSS)) 112 #define TCP_SNDLOWAT LWIP_MIN(LWIP_MAX(((TCP_SND_BUF)/2), (2 * TCP_MSS) + 1), (T… 120 #define TCP_OVERSIZE TCP_MSS 122 #define TCP_WND_UPDATE_THRESHOLD LWIP_MIN((TCP_WND / 4), (TCP_MSS * 4)) 132 #define PBUF_POOL_BUFSIZE LWIP_MEM_ALIGN_SIZE(TCP_MSS+40+PBUF_LINK_ENCAPSULATION_HLEN…
|
| A D | opt_dualstack.h | 102 #define TCP_WND (4 * TCP_MSS) 108 #define TCP_MSS 536 macro 110 #define TCP_SND_BUF (2 * TCP_MSS) 111 #define TCP_SND_QUEUELEN ((4 * (TCP_SND_BUF) + (TCP_MSS - 1))/(TCP_MSS)) 112 #define TCP_SNDLOWAT LWIP_MIN(LWIP_MAX(((TCP_SND_BUF)/2), (2 * TCP_MSS) + 1), (T… 120 #define TCP_OVERSIZE TCP_MSS 122 #define TCP_WND_UPDATE_THRESHOLD LWIP_MIN((TCP_WND / 4), (TCP_MSS * 4)) 132 #define PBUF_POOL_BUFSIZE LWIP_MEM_ALIGN_SIZE(TCP_MSS+40+PBUF_LINK_ENCAPSULATION_HLEN…
|
| A D | opt_ipv4only.h | 102 #define TCP_WND (4 * TCP_MSS) 108 #define TCP_MSS 536 macro 110 #define TCP_SND_BUF (2 * TCP_MSS) 111 #define TCP_SND_QUEUELEN ((4 * (TCP_SND_BUF) + (TCP_MSS - 1))/(TCP_MSS)) 112 #define TCP_SNDLOWAT LWIP_MIN(LWIP_MAX(((TCP_SND_BUF)/2), (2 * TCP_MSS) + 1), (T… 120 #define TCP_OVERSIZE TCP_MSS 122 #define TCP_WND_UPDATE_THRESHOLD LWIP_MIN((TCP_WND / 4), (TCP_MSS * 4)) 132 #define PBUF_POOL_BUFSIZE LWIP_MEM_ALIGN_SIZE(TCP_MSS+40+PBUF_LINK_ENCAPSULATION_HLEN…
|
| A D | opt_ipv6only.h | 102 #define TCP_WND (4 * TCP_MSS) 108 #define TCP_MSS 536 macro 110 #define TCP_SND_BUF (2 * TCP_MSS) 111 #define TCP_SND_QUEUELEN ((4 * (TCP_SND_BUF) + (TCP_MSS - 1))/(TCP_MSS)) 112 #define TCP_SNDLOWAT LWIP_MIN(LWIP_MAX(((TCP_SND_BUF)/2), (2 * TCP_MSS) + 1), (T… 120 #define TCP_OVERSIZE TCP_MSS 122 #define TCP_WND_UPDATE_THRESHOLD LWIP_MIN((TCP_WND / 4), (TCP_MSS * 4)) 132 #define PBUF_POOL_BUFSIZE LWIP_MEM_ALIGN_SIZE(TCP_MSS+40+PBUF_LINK_ENCAPSULATION_HLEN…
|
| A D | opt_nosys_dual.h | 102 #define TCP_WND (4 * TCP_MSS) 108 #define TCP_MSS 536 macro 110 #define TCP_SND_BUF (2 * TCP_MSS) 111 #define TCP_SND_QUEUELEN ((4 * (TCP_SND_BUF) + (TCP_MSS - 1))/(TCP_MSS)) 112 #define TCP_SNDLOWAT LWIP_MIN(LWIP_MAX(((TCP_SND_BUF)/2), (2 * TCP_MSS) + 1), (T… 120 #define TCP_OVERSIZE TCP_MSS 122 #define TCP_WND_UPDATE_THRESHOLD LWIP_MIN((TCP_WND / 4), (TCP_MSS * 4)) 132 #define PBUF_POOL_BUFSIZE LWIP_MEM_ALIGN_SIZE(TCP_MSS+40+PBUF_LINK_ENCAPSULATION_HLEN…
|
| A D | opt_nosys_ipv4.h | 102 #define TCP_WND (4 * TCP_MSS) 108 #define TCP_MSS 536 macro 110 #define TCP_SND_BUF (2 * TCP_MSS) 111 #define TCP_SND_QUEUELEN ((4 * (TCP_SND_BUF) + (TCP_MSS - 1))/(TCP_MSS)) 112 #define TCP_SNDLOWAT LWIP_MIN(LWIP_MAX(((TCP_SND_BUF)/2), (2 * TCP_MSS) + 1), (T… 120 #define TCP_OVERSIZE TCP_MSS 122 #define TCP_WND_UPDATE_THRESHOLD LWIP_MIN((TCP_WND / 4), (TCP_MSS * 4)) 132 #define PBUF_POOL_BUFSIZE LWIP_MEM_ALIGN_SIZE(TCP_MSS+40+PBUF_LINK_ENCAPSULATION_HLEN…
|
| A D | opt_nosys_ipv6.h | 102 #define TCP_WND (4 * TCP_MSS) 108 #define TCP_MSS 536 macro 110 #define TCP_SND_BUF (2 * TCP_MSS) 111 #define TCP_SND_QUEUELEN ((4 * (TCP_SND_BUF) + (TCP_MSS - 1))/(TCP_MSS)) 112 #define TCP_SNDLOWAT LWIP_MIN(LWIP_MAX(((TCP_SND_BUF)/2), (2 * TCP_MSS) + 1), (T… 120 #define TCP_OVERSIZE TCP_MSS 122 #define TCP_WND_UPDATE_THRESHOLD LWIP_MIN((TCP_WND / 4), (TCP_MSS * 4)) 132 #define PBUF_POOL_BUFSIZE LWIP_MEM_ALIGN_SIZE(TCP_MSS+40+PBUF_LINK_ENCAPSULATION_HLEN…
|
| /lib/lwip/lwip/src/core/ |
| A D | init.c | 303 #if TCP_SND_BUF < (2 * TCP_MSS) 306 #if TCP_SND_QUEUELEN < (2 * (TCP_SND_BUF / TCP_MSS)) 312 #if TCP_MSS >= ((16 * 1024) - 1) 315 #if TCP_SNDLOWAT >= (0xFFFF - (4 * TCP_MSS)) 327 #if TCP_WND < TCP_MSS
|
| A D | tcp.c | 138 #if TCP_MSS > 536 141 #define INITIAL_MSS TCP_MSS
|
| A D | tcp_in.c | 1949 pcb->mss = ((mss > TCP_MSS) || (mss == 0)) ? TCP_MSS : mss;
|
| A D | tcp_out.c | 1496 mss = tcp_eff_send_mss_netif(TCP_MSS, netif, &pcb->remote_ip); in tcp_output_segment() 1498 mss = TCP_MSS; in tcp_output_segment()
|
| /lib/lwip/u-boot/ |
| A D | lwipopts.h | 125 #define TCP_MSS 1460 macro 129 #define TCP_SND_BUF (2 * TCP_MSS) 140 #define PBUF_POOL_BUFSIZE LWIP_MEM_ALIGN_SIZE(TCP_MSS + 40 + PBUF_LINK_HLEN)
|
| /lib/lwip/lwip/src/include/lwip/ |
| A D | opt.h | 1281 #define TCP_WND (4 * TCP_MSS) 1334 #if !defined TCP_MSS || defined __DOXYGEN__ 1335 #define TCP_MSS 536 macro 1365 #define TCP_SND_BUF (2 * TCP_MSS) 1373 #define TCP_SND_QUEUELEN ((4 * (TCP_SND_BUF) + (TCP_MSS - 1))/(TCP_MSS)) 1382 #define TCP_SNDLOWAT LWIP_MIN(LWIP_MAX(((TCP_SND_BUF)/2), (2 * TCP_MSS) + 1), (T… 1471 #define TCP_OVERSIZE TCP_MSS 1489 #define TCP_WND_UPDATE_THRESHOLD LWIP_MIN((TCP_WND / 4), (TCP_MSS * 4)) 1599 #define PBUF_POOL_BUFSIZE LWIP_MEM_ALIGN_SIZE(TCP_MSS+PBUF_IP_HLEN+PBUF_TRANSPORT_HLE…
|
| /lib/lwip/lwip/test/fuzz/ |
| A D | lwipopts.h | 70 #define TCP_SND_BUF (12 * TCP_MSS) 71 #define TCP_WND (10 * TCP_MSS)
|
| /lib/lwip/lwip/test/unit/ |
| A D | lwipopts.h | 65 #define TCP_SND_BUF (12 * TCP_MSS) 66 #define TCP_WND (10 * TCP_MSS)
|
| /lib/lwip/lwip/contrib/examples/example_app/ |
| A D | lwipopts.h | 190 #define TCP_MSS 1024 macro 197 #define TCP_SND_QUEUELEN (4 * TCP_SND_BUF/TCP_MSS)
|
| /lib/lwip/lwip/contrib/ports/unix/lib/ |
| A D | lwipopts.h | 364 #define PBUF_POOL_BUFSIZE LWIP_MEM_ALIGN_SIZE(TCP_MSS+40+PBUF_LINK_HLEN)
|
| /lib/lwip/lwip/contrib/ports/unix/posixlib/ |
| A D | lwipopts.h | 79 #define TCP_MSS 1460 macro
|
| /lib/lwip/lwip/src/apps/lwiperf/ |
| A D | lwiperf.c | 327 txlen_max = TCP_MSS; in lwiperf_tcp_client_send_more() 329 txlen_max = TCP_MSS - 24; in lwiperf_tcp_client_send_more() 340 } while ((err == ERR_MEM) && (txlen >= (TCP_MSS / 2))); in lwiperf_tcp_client_send_more()
|
| /lib/lwip/lwip/test/sockets/ |
| A D | sockets_stresstest.c | 70 #define TEST_TXRX_BUFSIZE (TCP_MSS * 2)
|
| /lib/lwip/lwip/src/apps/http/makefsdata/ |
| A D | makefsdata.c | 711 int chunk_size = TCP_MSS; in write_checksums()
|
| /lib/lwip/lwip/ |
| A D | CHANGELOG | 894 * tcp_out.c: fixed bug #46384 Segment size calculation bug with MSS != TCP_MSS 1528 * tcp_out.c: use pcb->mss instead of TCP_MSS for preallocate mss-sized pbufs 2323 * opt.h: Increased default value for TCP_MSS to 536, updated default 2324 value for TCP_WND to 4*TCP_MSS to keep delayed ACK working. 2399 * opt.h, init.c: bug #26649: TCP fails when TCP_MSS > TCP_SND_BUF 3477 TCP_MSS if that is smaller) as long as no MSS option is received from the 3482 is now based on TCP_MSS instead of pcb->mss (on passive open now effectively 3483 sending our configured TCP_MSS instead of the one received). 3487 calculated based on the configured TCP_MSS, not on the MSS option received
|