Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of lwip by
Diff: include/lwip/opt.h
- Revision:
- 19:841ad45e9100
- Parent:
- 17:37fea61fd4d4
- Child:
- 20:fea5f39cefb5
--- a/include/lwip/opt.h Fri Sep 12 16:45:32 2014 +0000 +++ b/include/lwip/opt.h Tue Sep 16 13:20:38 2014 +0000 @@ -231,7 +231,7 @@ * (requires the LWIP_RAW option) */ #ifndef MEMP_NUM_RAW_PCB -#define MEMP_NUM_RAW_PCB 4 +#define MEMP_NUM_RAW_PCB 16//pzn4 #endif /** @@ -248,7 +248,7 @@ * (requires the LWIP_TCP option) */ #ifndef MEMP_NUM_TCP_PCB -#define MEMP_NUM_TCP_PCB 0 +#define MEMP_NUM_TCP_PCB 5 #endif /** @@ -256,7 +256,7 @@ * (requires the LWIP_TCP option) */ #ifndef MEMP_NUM_TCP_PCB_LISTEN -#define MEMP_NUM_TCP_PCB_LISTEN 0 +#define MEMP_NUM_TCP_PCB_LISTEN 8 #endif /** @@ -264,7 +264,7 @@ * (requires the LWIP_TCP option) */ #ifndef MEMP_NUM_TCP_SEG -#define MEMP_NUM_TCP_SEG 0 +#define MEMP_NUM_TCP_SEG 16 #endif /** @@ -283,7 +283,7 @@ * where the packet is not yet sent when netif->output returns. */ #ifndef MEMP_NUM_FRAG_PBUF -#define MEMP_NUM_FRAG_PBUF 0 +#define MEMP_NUM_FRAG_PBUF 15 #endif /** @@ -319,7 +319,7 @@ * (only needed if you use the sequential API, like api_lib.c) */ #ifndef MEMP_NUM_NETBUF -#define MEMP_NUM_NETBUF 2 +#define MEMP_NUM_NETBUF 8//pzn2 #endif /** @@ -327,7 +327,7 @@ * (only needed if you use the sequential API, like api_lib.c) */ #ifndef MEMP_NUM_NETCONN -#define MEMP_NUM_NETCONN 64// +#define MEMP_NUM_NETCONN 64//4 #endif /** @@ -479,7 +479,7 @@ * on a 32-bit boundary, so setting this to 2 can speed up 32-bit-platforms. */ #ifndef ETH_PAD_SIZE -#define ETH_PAD_SIZE 0 +#define ETH_PAD_SIZE 0 //2 does not work here!!! by pzn #endif /** ETHARP_SUPPORT_STATIC_ENTRIES==1: enable code to support static ARP table @@ -519,7 +519,7 @@ * via IP_FRAG. */ #ifndef IP_REASSEMBLY -#define IP_REASSEMBLY 0 +#define IP_REASSEMBLY 0//pzn1 #endif /** @@ -528,7 +528,7 @@ * controlled via IP_REASSEMBLY. */ #ifndef IP_FRAG -#define IP_FRAG 0 +#define IP_FRAG 0//pzn1 #endif /** @@ -573,7 +573,7 @@ * IP_DEFAULT_TTL: Default value for Time-To-Live used by transport layers. */ #ifndef IP_DEFAULT_TTL -#define IP_DEFAULT_TTL 255 +#define IP_DEFAULT_TTL 77 #endif /** @@ -903,14 +903,14 @@ * TCP_MAXRTX: Maximum number of retransmissions of data segments. */ #ifndef TCP_MAXRTX -#define TCP_MAXRTX 0 +#define TCP_MAXRTX 12 #endif /** * TCP_SYNMAXRTX: Maximum number of retransmissions of SYN segments. */ #ifndef TCP_SYNMAXRTX -#define TCP_SYNMAXRTX 0 +#define TCP_SYNMAXRTX 6 #endif /** @@ -929,7 +929,7 @@ * an upper limit on the MSS advertised by the remote host. */ #ifndef TCP_MSS -#define TCP_MSS 0 +#define TCP_MSS 536 #endif /** @@ -941,7 +941,7 @@ * netif used for a connection and limits the MSS if it would be too big otherwise. */ #ifndef TCP_CALCULATE_EFF_SEND_MSS -#define TCP_CALCULATE_EFF_SEND_MSS 0 +#define TCP_CALCULATE_EFF_SEND_MSS 1 #endif @@ -949,7 +949,7 @@ * TCP_SND_BUF: TCP sender buffer space (bytes). */ #ifndef TCP_SND_BUF -#define TCP_SND_BUF 0 +#define TCP_SND_BUF 256 #endif /** @@ -957,7 +957,7 @@ * as much as (2 * TCP_SND_BUF/TCP_MSS) for things to work. */ #ifndef TCP_SND_QUEUELEN -#define TCP_SND_QUEUELEN 0//((4 * (TCP_SND_BUF) + (TCP_MSS - 1))/(TCP_MSS)) +#define TCP_SND_QUEUELEN ((4 * (TCP_SND_BUF) + (TCP_MSS - 1))/(TCP_MSS)) #endif /** @@ -991,7 +991,7 @@ * 0xff is the maximum (u8_t). */ #ifndef TCP_DEFAULT_LISTEN_BACKLOG -#define TCP_DEFAULT_LISTEN_BACKLOG 0x00 +#define TCP_DEFAULT_LISTEN_BACKLOG 0xff #endif /** @@ -1365,7 +1365,7 @@ * timers running in tcpip_thread from another thread. */ #ifndef LWIP_TCPIP_TIMEOUT -#define LWIP_TCPIP_TIMEOUT 1 +#define LWIP_TCPIP_TIMEOUT 0 #endif /* @@ -1452,7 +1452,7 @@ * LWIP_STATS==1: Enable statistics collection in lwip_stats. */ #ifndef LWIP_STATS -#define LWIP_STATS 1 +#define LWIP_STATS 0 #endif #if LWIP_STATS @@ -1497,7 +1497,7 @@ * ICMP_STATS==1: Enable ICMP stats. */ #ifndef ICMP_STATS -#define ICMP_STATS 1 +#define ICMP_STATS 0 #endif /** @@ -2040,4 +2040,4 @@ #define DNS_DEBUG LWIP_DBG_OFF #endif -#endif /* __LWIP_OPT_H__ */ +#endif /* __LWIP_OPT_H__ */ \ No newline at end of file
