Skip to content

Commit e7e2a87

Browse files
committed
multi-mss menus for lwip2, remove lwip xcc variant, lwip2 readme, updates and fixes
lwip2 updates: > multi-mss makefile > forwardported espconn (no multicast yet) > restore max 3 ntp servers for configTime() coherency > unchain seldom chained pbufs > dns cache name length back to (256->48->) 128 > use sntp_stop/start() when dhcp address got > fix netif's hostname glue-handling > forwardported ping from lwip1.4 fix esp8266#3970 fix maybe esp8266#3963
1 parent 1540369 commit e7e2a87

File tree

8 files changed

+261
-200
lines changed

8 files changed

+261
-200
lines changed

boards.txt

+240-192
Large diffs are not rendered by default.

tools/sdk/ld/eagle.app.v6.common.ld

+1
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ SECTIONS
178178
*liblwip_gcc.a:(.literal .text .literal.* .text.*)
179179
*liblwip_src.a:(.literal .text .literal.* .text.*)
180180
*liblwip2.a:(.literal .text .literal.* .text.*)
181+
*liblwip2_1460.a:(.literal .text .literal.* .text.*)
181182
*libaxtls.a:(.literal .text .literal.* .text.*)
182183
*libat.a:(.literal.* .text.*)
183184
*libcrypto.a:(.literal.* .text.*)

tools/sdk/lib/liblwip2.a

258 KB
Binary file not shown.

tools/sdk/lib/liblwip2_1460.a

1.2 MB
Binary file not shown.

tools/sdk/lwip2/Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22
all install clean: builder/lwip2-src/README
33
make -C builder -f Makefile.arduino $@
44

5+
download: builder/lwip2-src/README
6+
57
builder/lwip2-src/README:
68
git submodule update --init --recursive builder

tools/sdk/lwip2/README.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
make install download, compile, install lwip2
3+
make download download lwIP-2 builder
4+
make clean clean builder only
5+
6+
glue and lwIP debug options are in builder/glue/gluedebug.h
7+
MSS values are in builder/Makefile.arduino
8+
MSS values in boards.txt are only informative
9+
10+
current lwip2 submodule repository: https://github.com/d-a-v/esp82xx-nonos-linklayer/tree/arduino-2.4.0

tools/sdk/lwip2/include/lwipopts.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,7 @@
10501050

10511051
/** DNS maximum host name length supported in the name table. */
10521052
#if !defined DNS_MAX_NAME_LENGTH || defined __DOXYGEN__
1053-
#define DNS_MAX_NAME_LENGTH 48 // 256
1053+
#define DNS_MAX_NAME_LENGTH 128 // 256
10541054
#endif
10551055

10561056
/** The maximum of DNS servers
@@ -1214,9 +1214,9 @@
12141214
* when opening a connection. For the transmit size, this MSS sets
12151215
* an upper limit on the MSS advertised by the remote host.
12161216
*/
1217-
#if !defined TCP_MSS || defined __DOXYGEN__
1218-
#define TCP_MSS 536
1219-
#endif
1217+
//#if !defined TCP_MSS || defined __DOXYGEN__
1218+
//#define TCP_MSS 536
1219+
//#endif
12201220

12211221
/**
12221222
* TCP_CALCULATE_EFF_SEND_MSS: "The maximum size of a segment that TCP really
@@ -1312,7 +1312,7 @@
13121312
* TCP_MSS/4: Try to create 4 fragments or less per TCP packet.
13131313
*/
13141314
#if !defined TCP_OVERSIZE || defined __DOXYGEN__
1315-
#define TCP_OVERSIZE TCP_MSS
1315+
#define TCP_OVERSIZE TCP_MSS // TCP_MSS is STRONGLY SUGGESTED FOR ESP8266 BLOBS !!
13161316
#endif
13171317

13181318
/**
@@ -1506,7 +1506,7 @@
15061506
* @todo: TCP and IP-frag do not work with this, yet:
15071507
*/
15081508
#if !defined LWIP_NETIF_TX_SINGLE_PBUF || defined __DOXYGEN__
1509-
#define LWIP_NETIF_TX_SINGLE_PBUF 1 // MANDATORY FOR ESP8266 BLOBS !!
1509+
#define LWIP_NETIF_TX_SINGLE_PBUF 1 // 1 is STRONGLY SUGGESTED FOR ESP8266 BLOBS !!
15101510
#endif /* LWIP_NETIF_TX_SINGLE_PBUF */
15111511

15121512
/**
@@ -2990,7 +2990,7 @@
29902990
// so we do not define it. sntp server can come from dhcp server, or by
29912991
// user.
29922992
//#define SNTP_SERVER_ADDRESS "pool.ntp.org" // default
2993-
#define SNTP_GET_SERVERS_FROM_DHCP 1
2993+
#define SNTP_GET_SERVERS_FROM_DHCP 3
29942994
#define SNTP_SET_SYSTEM_TIME_US(t,us) do { struct timeval tv = { t, us }; settimeofday(&tv, NULL); } while (0)
29952995

29962996
/*

0 commit comments

Comments
 (0)