Skip to content

Commit 77424c7

Browse files
Enable MDNS lookup from LWIP DNS
1 parent b306db3 commit 77424c7

21 files changed

+86
-84
lines changed

include/lwipopts.h

Lines changed: 43 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -21,53 +21,54 @@ extern unsigned long __lwip_rand(void);
2121
// Common settings used in most of the pico_w examples
2222
// (see https://www.nongnu.org/lwip/2_1_x/group__lwip__opts.html for details)
2323

24-
#define NO_SYS 1
25-
#define LWIP_SOCKET 0
26-
#define MEM_LIBC_MALLOC 0
24+
#define NO_SYS 1
25+
#define LWIP_SOCKET 0
26+
#define MEM_LIBC_MALLOC 0
2727

28-
#define MEM_ALIGNMENT 4
29-
#define MEM_SIZE (__LWIP_MEMMULT * 16384)
30-
#define MEMP_NUM_TCP_SEG (32)
31-
#define MEMP_NUM_ARP_QUEUE (10)
32-
#define PBUF_POOL_SIZE (__LWIP_MEMMULT > 1 ? 32 : 24)
33-
#define LWIP_ARP 2
34-
#define LWIP_ETHERNET 1
35-
#define LWIP_ICMP 1
36-
#define LWIP_RAW 1
37-
#define TCP_WND (8 * TCP_MSS)
38-
#define TCP_MSS 1460
39-
#define TCP_SND_BUF (8 * TCP_MSS)
40-
#define TCP_SND_QUEUELEN ((4 * (TCP_SND_BUF) + (TCP_MSS - 1)) / (TCP_MSS))
41-
#define LWIP_NETIF_STATUS_CALLBACK 1
42-
#define LWIP_NETIF_LINK_CALLBACK 1
43-
#define LWIP_NETIF_HOSTNAME 1
44-
#define LWIP_NETCONN 0
45-
#define LWIP_STATS 0
46-
#define LWIP_STATS_DISPLAY 0
47-
#define MEM_STATS 0
48-
#define SYS_STATS 0
49-
#define MEMP_STATS 0
50-
#define LINK_STATS 0
51-
#define LWIP_CHKSUM_ALGORITHM 0
52-
#define LWIP_DHCP 1
53-
#define LWIP_IPV4 1
54-
#define LWIP_TCP 1
55-
#define LWIP_UDP 1
56-
#define LWIP_DNS 1
57-
#define LWIP_TCP_KEEPALIVE 1
58-
#define LWIP_NETIF_TX_SINGLE_PBUF 1
59-
#define DHCP_DOES_ARP_CHECK 0
60-
#define LWIP_DHCP_DOES_ACD_CHECK 0
61-
#define LWIP_IGMP 1
62-
#define LWIP_MDNS_RESPONDER 1
28+
#define MEM_ALIGNMENT 4
29+
#define MEM_SIZE (__LWIP_MEMMULT * 16384)
30+
#define MEMP_NUM_TCP_SEG (32)
31+
#define MEMP_NUM_ARP_QUEUE (10)
32+
#define PBUF_POOL_SIZE (__LWIP_MEMMULT > 1 ? 32 : 24)
33+
#define LWIP_ARP 2
34+
#define LWIP_ETHERNET 1
35+
#define LWIP_ICMP 1
36+
#define LWIP_RAW 1
37+
#define TCP_WND (8 * TCP_MSS)
38+
#define TCP_MSS 1460
39+
#define TCP_SND_BUF (8 * TCP_MSS)
40+
#define TCP_SND_QUEUELEN ((4 * (TCP_SND_BUF) + (TCP_MSS - 1)) / (TCP_MSS))
41+
#define LWIP_NETIF_STATUS_CALLBACK 1
42+
#define LWIP_NETIF_LINK_CALLBACK 1
43+
#define LWIP_NETIF_HOSTNAME 1
44+
#define LWIP_NETCONN 0
45+
#define LWIP_STATS 0
46+
#define LWIP_STATS_DISPLAY 0
47+
#define MEM_STATS 0
48+
#define SYS_STATS 0
49+
#define MEMP_STATS 0
50+
#define LINK_STATS 0
51+
#define LWIP_CHKSUM_ALGORITHM 0
52+
#define LWIP_DHCP 1
53+
#define LWIP_IPV4 1
54+
#define LWIP_TCP 1
55+
#define LWIP_UDP 1
56+
#define LWIP_DNS 1
57+
#define LWIP_DNS_SUPPORT_MDNS_QUERIES 1
58+
#define LWIP_TCP_KEEPALIVE 1
59+
#define LWIP_NETIF_TX_SINGLE_PBUF 1
60+
#define DHCP_DOES_ARP_CHECK 0
61+
#define LWIP_DHCP_DOES_ACD_CHECK 0
62+
#define LWIP_IGMP 1
63+
#define LWIP_MDNS_RESPONDER 1
6364

6465
// See #1285
65-
#define MEMP_NUM_UDP_PCB (__LWIP_MEMMULT * 7)
66-
#define MEMP_NUM_TCP_PCB (__LWIP_MEMMULT * 5)
66+
#define MEMP_NUM_UDP_PCB (__LWIP_MEMMULT * 7)
67+
#define MEMP_NUM_TCP_PCB (__LWIP_MEMMULT * 5)
6768

6869
#if LWIP_IPV6
69-
#define LWIP_IPV6_DHCP6 1
70-
#define LWIP_IPV6_MLD 1
70+
#define LWIP_IPV6_DHCP6 1
71+
#define LWIP_IPV6_MLD 1
7172
#endif
7273

7374
// NTP

lib/rp2040/libipv4-big.a

1008 Bytes
Binary file not shown.

lib/rp2040/libipv4-bt-big.a

1008 Bytes
Binary file not shown.

lib/rp2040/libipv4-bt.a

1008 Bytes
Binary file not shown.

lib/rp2040/libipv4-ipv6-big.a

1.2 KB
Binary file not shown.

lib/rp2040/libipv4-ipv6-bt-big.a

1.2 KB
Binary file not shown.

lib/rp2040/libipv4-ipv6-bt.a

1.2 KB
Binary file not shown.

lib/rp2040/libipv4-ipv6.a

1.2 KB
Binary file not shown.

lib/rp2040/libipv4.a

1008 Bytes
Binary file not shown.

lib/rp2040/libpico.a

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)