A272R版本优化

This commit is contained in:
2025-05-26 10:28:49 +08:00
parent 3b3c63f1f3
commit 413dd88f3b
22 changed files with 30925 additions and 30666 deletions

View File

@ -505,7 +505,7 @@ alloc_socket(struct netconn *newconn, int accepted)
LWIP_UNUSED_ARG(accepted);
/* allocate a new socket identifier */
for (i = 0; i < NUM_SOCKETS; ++i) {
for (i = 3; i < NUM_SOCKETS; ++i) {
/* Protect socket array */
SYS_ARCH_PROTECT(lev);
if (!sockets[i].conn) {

View File

@ -395,7 +395,7 @@
/* Maximum number of retransmissions of SYN segments. */
#define TCP_SYNMAXRTX 4
#define LWIP_SOCKET_OFFSET 3
// #define LWIP_SOCKET_OFFSET 3
#define LWIP_DBG_MIN_LEVEL LWIP_DBG_LEVEL_ALL
#define LWIP_DBG_TYPES_ON LWIP_DBG_ON