Home
last modified time | relevance | path

Searched refs:mss (Results 1 – 23 of 23) sorted by relevance

/components/net/lwip/lwip-1.4.1/src/core/
A Dtcp_in.c503 npcb->mss = tcp_eff_send_mss(npcb->mss, &(npcb->remote_ip)); in tcp_listen_input()
644 pcb->mss = tcp_eff_send_mss(pcb->mss, &(pcb->remote_ip)); in tcp_process()
649 pcb->ssthresh = pcb->mss * 10; in tcp_process()
651 pcb->cwnd = ((pcb->cwnd == 1) ? (pcb->mss * 2) : pcb->mss); in tcp_process()
714 pcb->cwnd = ((old_cwnd == 1) ? (pcb->mss * 2) : pcb->mss); in tcp_process()
942 pcb->cwnd += pcb->mss; in tcp_receive()
988 pcb->cwnd += pcb->mss; in tcp_receive()
992 u16_t new_cwnd = (pcb->cwnd + pcb->mss * pcb->mss / pcb->cwnd); in tcp_receive()
1545 u16_t mss; in tcp_parseopt() local
1576 mss = (opts[c + 2] << 8) | opts[c + 3]; in tcp_parseopt()
[all …]
A Dtcp.c583 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()
752 pcb->mss = (TCP_MSS > 536) ? 536 : TCP_MSS; in tcp_connect()
754 pcb->mss = tcp_eff_send_mss(pcb->mss, ipaddr); in tcp_connect()
757 pcb->ssthresh = pcb->mss * 10; in tcp_connect()
866 if (pcb->ssthresh < (pcb->mss << 1)) { in tcp_slowtmr()
867 pcb->ssthresh = (pcb->mss << 1); in tcp_slowtmr()
869 pcb->cwnd = pcb->mss; in tcp_slowtmr()
1317 pcb->mss = (TCP_MSS > 536) ? 536 : TCP_MSS; in tcp_alloc()
A Dtcp_out.c373 u16_t mss_local = LWIP_MIN(pcb->mss, pcb->snd_wnd_max/2); in tcp_write()
1071 u16_t mss; in tcp_output_segment() local
1073 mss = tcp_eff_send_mss(TCP_MSS, &pcb->remote_ip); in tcp_output_segment()
1075 mss = TCP_MSS; in tcp_output_segment()
1077 *opts = TCP_BUILD_MSS_OPTION(mss); in tcp_output_segment()
1347 if (pcb->ssthresh < 2*pcb->mss) { in tcp_rexmit_fast()
1351 pcb->ssthresh, 2*pcb->mss)); in tcp_rexmit_fast()
1352 pcb->ssthresh = 2*pcb->mss; in tcp_rexmit_fast()
1355 pcb->cwnd = pcb->ssthresh + 3 * pcb->mss; in tcp_rexmit_fast()
/components/net/lwip/lwip-2.0.3/src/core/
A Dtcp_in.c63 #define LWIP_TCP_CALC_INITIAL_CWND(mss) LWIP_MIN((4U * (mss)), LWIP_MAX((2U * (mss)), 4380U)); argument
637 npcb->mss = tcp_eff_send_mss(npcb->mss, &npcb->local_ip, &npcb->remote_ip);
787 pcb->mss = tcp_eff_send_mss(pcb->mss, &pcb->local_ip, &pcb->remote_ip);
790 pcb->cwnd = LWIP_TCP_CALC_INITIAL_CWND(pcb->mss);
1109 pcb->cwnd += pcb->mss;
1150 pcb->cwnd += pcb->mss;
1154 tcpwnd_size_t new_cwnd = (pcb->cwnd + pcb->mss * pcb->mss / pcb->cwnd);
1732 u16_t mss; local
1758 mss = (tcp_getoptbyte() << 8);
1759 mss |= tcp_getoptbyte();
[all …]
A Dtcp_out.c391 u16_t mss_local = LWIP_MIN(pcb->mss, TCPWND_MIN16(pcb->snd_wnd_max/2)); in tcp_write()
392 mss_local = mss_local ? mss_local : pcb->mss; in tcp_write()
1225 u16_t mss; in tcp_output_segment() local
1227 mss = tcp_eff_send_mss(TCP_MSS, &pcb->local_ip, &pcb->remote_ip); in tcp_output_segment()
1229 mss = TCP_MSS; in tcp_output_segment()
1231 *opts = TCP_BUILD_MSS_OPTION(mss); in tcp_output_segment()
1506 if (pcb->ssthresh < (2U * pcb->mss)) { in tcp_rexmit_fast()
1510 pcb->ssthresh, (u16_t)(2*pcb->mss))); in tcp_rexmit_fast()
1511 pcb->ssthresh = 2*pcb->mss; in tcp_rexmit_fast()
1514 pcb->cwnd = pcb->ssthresh + 3 * pcb->mss; in tcp_rexmit_fast()
A Dtcp.c763 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()
951 pcb->mss = INITIAL_MSS; in tcp_connect()
953 pcb->mss = tcp_eff_send_mss(pcb->mss, &pcb->local_ip, &pcb->remote_ip); in tcp_connect()
1069 if (pcb->ssthresh < (tcpwnd_size_t)(pcb->mss << 1)) { in tcp_slowtmr()
1070 pcb->ssthresh = (pcb->mss << 1); in tcp_slowtmr()
1072 pcb->cwnd = pcb->mss; in tcp_slowtmr()
1615 pcb->mss = INITIAL_MSS; in tcp_alloc()
/components/net/lwip/lwip-2.0.3/src/include/lwip/
A Dtcp.h245 u16_t mss; /* maximum segment size */ member
365 … tcp_mss(pcb) (((pcb)->flags & TF_TIMESTAMP) ? ((pcb)->mss - 12) : (pcb)->mss)
367 #define tcp_mss(pcb) ((pcb)->mss)
/components/net/lwip/lwip-2.1.2/src/core/
A Dtcp_in.c69 #define LWIP_TCP_CALC_INITIAL_CWND(mss) ((tcpwnd_size_t)LWIP_MIN((4U * (mss)), LWIP_MAX((2U * (mss)… argument
706 npcb->mss = tcp_eff_send_mss(npcb->mss, &npcb->local_ip, &npcb->remote_ip);
869 pcb->mss = tcp_eff_send_mss(pcb->mss, &pcb->local_ip, &pcb->remote_ip);
872 pcb->cwnd = LWIP_TCP_CALC_INITIAL_CWND(pcb->mss);
960 pcb->cwnd = LWIP_TCP_CALC_INITIAL_CWND(pcb->mss);
1213 TCP_WND_INC(pcb->cwnd, pcb->mss);
1270 TCP_WND_INC(pcb->cwnd, pcb->mss);
1912 u16_t mss; local
1940 mss = (u16_t)(tcp_get_next_optbyte() << 8);
1941 mss |= tcp_get_next_optbyte();
[all …]
A Dtcp_out.c417 mss_local = LWIP_MIN(pcb->mss, TCPWND_MIN16(pcb->snd_wnd_max / 2)); in tcp_write()
418 mss_local = mss_local ? mss_local : pcb->mss; in tcp_write()
859 LWIP_ASSERT("split <= mss", split <= pcb->mss); in tcp_split_unsent_seg()
1498 u16_t mss; in tcp_output_segment() local
1500 mss = tcp_eff_send_mss_netif(TCP_MSS, netif, &pcb->remote_ip); in tcp_output_segment()
1502 mss = TCP_MSS; in tcp_output_segment()
1504 *opts = TCP_BUILD_MSS_OPTION(mss); in tcp_output_segment()
1800 if (pcb->ssthresh < (2U * pcb->mss)) { in tcp_rexmit_fast()
1804 pcb->ssthresh, (u16_t)(2 * pcb->mss))); in tcp_rexmit_fast()
1805 pcb->ssthresh = 2 * pcb->mss; in tcp_rexmit_fast()
[all …]
A Dtcp.c937 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()
1157 pcb->mss = INITIAL_MSS; in tcp_connect()
1159 pcb->mss = tcp_eff_send_mss_netif(pcb->mss, netif, &pcb->remote_ip); in tcp_connect()
1298 if (pcb->ssthresh < (tcpwnd_size_t)(pcb->mss << 1)) { in tcp_slowtmr()
1299 pcb->ssthresh = (tcpwnd_size_t)(pcb->mss << 1); in tcp_slowtmr()
1301 pcb->cwnd = pcb->mss; in tcp_slowtmr()
1899 pcb->mss = INITIAL_MSS; in tcp_alloc()
A Daltcp.c408 if (conn && conn->fns && conn->fns->mss) { in altcp_mss()
409 return conn->fns->mss(conn); in altcp_mss()
/components/net/lwip/lwip-2.1.2/src/include/lwip/
A Dtcp.h297 u16_t mss; /* maximum segment size */ member
428 … tcp_mss(pcb) (((pcb)->flags & TF_TIMESTAMP) ? ((pcb)->mss - 12) : (pcb)->mss)
431 #define tcp_mss(pcb) ((pcb)->mss)
/components/net/lwip/lwip-1.4.1/src/include/lwip/
A Dtcp.h204 u16_t mss; /* maximum segment size */ member
325 … tcp_mss(pcb) (((pcb)->flags & TF_TIMESTAMP) ? ((pcb)->mss - 12) : (pcb)->mss)
A Dtcp_impl.h87 ((tpcb)->unsent->len >= (tpcb)->mss))) || \
303 #define TCP_BUILD_MSS_OPTION(mss) htonl(0x02040000 | ((mss) & 0xFFFF)) argument
/components/net/lwip/lwip-2.1.2/test/unit/tcp/
A Dtest_tcp.c469 pcb->mss = TCP_MSS; in START_TEST()
652 pcb->mss = TCP_MSS; in START_TEST()
742 pcb->mss = TCP_MSS; in START_TEST()
824 pcb->mss = TCP_MSS; in test_tcp_tx_full_window_lost()
971 pcb->mss = TCP_MSS; in START_TEST()
1090 pcb->mss = TCP_MSS; in START_TEST()
1125 EXPECT(pcb->cwnd == pcb->mss); in START_TEST()
1149 EXPECT(pcb->cwnd == (tcpwnd_size_t)(2 * pcb->mss)); in START_TEST()
1211 pcb->mss = TCP_MSS; in test_tcp_rto_timeout_impl()
1404 pcb->mss = TCP_MSS; in test_tcp_zwp_timeout_impl()
[all …]
/components/net/lwip/lwip-2.0.3/src/include/lwip/priv/
A Dtcp_priv.h100 ((tpcb)->unsent->len >= (tpcb)->mss))) || \
296 #define TCP_BUILD_MSS_OPTION(mss) lwip_htonl(0x02040000 | ((mss) & 0xFFFF)) argument
/components/net/lwip/lwip-2.1.2/src/include/lwip/priv/
A Dtcp_priv.h103 ((tpcb)->unsent->len >= (tpcb)->mss))) || \
311 #define TCP_BUILD_MSS_OPTION(mss) lwip_htonl(0x02040000 | ((mss) & 0xFFFF)) argument
A Daltcp_priv.h103 altcp_mss_fn mss; member
/components/net/lwip/lwip-1.4.1/test/unit/tcp/
A Dtest_tcp.c152 pcb->mss = TCP_MSS; in START_TEST()
349 pcb->mss = TCP_MSS; in START_TEST()
448 pcb->mss = TCP_MSS; in START_TEST()
535 pcb->mss = TCP_MSS; in test_tcp_tx_full_window_lost()
/components/net/lwip/lwip-2.0.3/test/unit/tcp/
A Dtest_tcp.c226 pcb->mss = TCP_MSS; in START_TEST()
422 pcb->mss = TCP_MSS; in START_TEST()
524 pcb->mss = TCP_MSS; in START_TEST()
611 pcb->mss = TCP_MSS; in test_tcp_tx_full_window_lost()
/components/net/lwip/lwip-1.4.1/
A DCHANGELOG232 * tcp_out.c: use pcb->mss instead of TCP_MSS for preallocate mss-sized pbufs
1481 host sent a zero mss as TCP option.
1598 * tcp.h, opt.h, tcp.c, tcp_in.c: implemented calculating the effective send-mss
1838 2 * mss (instead of 1 * mss previously) to comply with some newer RFCs and
2180 * tcp.c, tcp_in.c: Fixed bug #21494: The send mss (pcb->mss) is set to 536 (or
2186 is now based on TCP_MSS instead of pcb->mss (on passive open now effectively
/components/net/lwip/lwip-2.0.3/
A DCHANGELOG1188 * tcp_out.c: use pcb->mss instead of TCP_MSS for preallocate mss-sized pbufs
2437 host sent a zero mss as TCP option.
2554 * tcp.h, opt.h, tcp.c, tcp_in.c: implemented calculating the effective send-mss
2794 2 * mss (instead of 1 * mss previously) to comply with some newer RFCs and
3136 * tcp.c, tcp_in.c: Fixed bug #21494: The send mss (pcb->mss) is set to 536 (or
3142 is now based on TCP_MSS instead of pcb->mss (on passive open now effectively
/components/net/lwip/lwip-2.1.2/
A DCHANGELOG1441 * tcp_out.c: use pcb->mss instead of TCP_MSS for preallocate mss-sized pbufs
2690 host sent a zero mss as TCP option.
2807 * tcp.h, opt.h, tcp.c, tcp_in.c: implemented calculating the effective send-mss
3047 2 * mss (instead of 1 * mss previously) to comply with some newer RFCs and
3389 * tcp.c, tcp_in.c: Fixed bug #21494: The send mss (pcb->mss) is set to 536 (or
3395 is now based on TCP_MSS instead of pcb->mss (on passive open now effectively

Completed in 60 milliseconds