mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-12-10 08:46:40 +08:00
MDNS: Correct setting TTL when IGMP is not enabled
This commit is contained in:
parent
c61c8f3766
commit
482a4d2ce9
@ -1847,7 +1847,11 @@ mdns_resp_init(void)
|
||||
|
||||
mdns_pcb = udp_new_ip_type(IPADDR_TYPE_ANY);
|
||||
LWIP_ASSERT("Failed to allocate pcb", mdns_pcb != NULL);
|
||||
#if LWIP_MULTICAST_TX_OPTIONS
|
||||
udp_set_multicast_ttl(mdns_pcb, MDNS_TTL);
|
||||
#else
|
||||
mdns_pcb->ttl = MDNS_TTL;
|
||||
#endif
|
||||
res = udp_bind(mdns_pcb, IP_ANY_TYPE, MDNS_PORT);
|
||||
LWIP_ASSERT("Failed to bind pcb", res == ERR_OK);
|
||||
udp_recv(mdns_pcb, mdns_recv, NULL);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user