Skip to content

Commit ebe5bfb

Browse files
Increase UDP PCBs to avoid DNS OOM error (earlephilhower#1304)
Fixes earlephilhower#1285 (or at least works well enough for now)
1 parent d67930e commit ebe5bfb

7 files changed

+6
-0
lines changed

include/lwipopts.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ extern unsigned long get_rand_32(void);
5656
#define DHCP_DOES_ARP_CHECK 0
5757
#define LWIP_DHCP_DOES_ACD_CHECK 0
5858

59+
// See #1285
60+
#define MEMP_NUM_UDP_PCB 6
61+
5962
#if LWIP_IPV6
6063
#define LWIP_IPV6_DHCP6 1
6164
#endif

lib/libpico.a

0 Bytes
Binary file not shown.

lib/libpicow-ipv6-btc-ble.a

0 Bytes
Binary file not shown.

lib/libpicow-ipv6-nobtc-noble.a

0 Bytes
Binary file not shown.

lib/libpicow-noipv6-btc-ble.a

16 Bytes
Binary file not shown.

lib/libpicow-noipv6-nobtc-noble.a

16 Bytes
Binary file not shown.

tools/libpico/lwipopts.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ extern unsigned long get_rand_32(void);
5656
#define DHCP_DOES_ARP_CHECK 0
5757
#define LWIP_DHCP_DOES_ACD_CHECK 0
5858

59+
// See #1285
60+
#define MEMP_NUM_UDP_PCB 6
61+
5962
#if LWIP_IPV6
6063
#define LWIP_IPV6_DHCP6 1
6164
#endif

0 commit comments

Comments
 (0)