Skip to content

Commit 95b49fc

Browse files
author
cromwelldev
committed
Increased MSS to 146 bytes in lwip
1 parent beee5b5 commit 95b49fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lwip-2.0.3/src/include/lwip/lwipopts.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,17 @@ a lot of data that needs to be copied, this should be set high. */
9797
#define TCP_QUEUE_OOSEQ 1
9898

9999
/* TCP Maximum segment size. */
100-
#define TCP_MSS 128
100+
#define TCP_MSS 1460
101101

102102
/* TCP sender buffer space (bytes). */
103-
#define TCP_SND_BUF 256
103+
#define TCP_SND_BUF 2 * TCP_MSS
104104

105105
/* TCP sender buffer space (pbufs). This must be at least = 2 *
106106
TCP_SND_BUF/TCP_MSS for things to work. */
107107
#define TCP_SND_QUEUELEN 4 * TCP_SND_BUF/TCP_MSS
108108

109109
/* TCP receive window. */
110-
#define TCP_WND 512
110+
#define TCP_WND TCP_SND_BUF
111111

112112
/* Maximum number of retransmissions of data segments. */
113113
#define TCP_MAXRTX 12

0 commit comments

Comments
 (0)