mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-29 00:32:51 +00:00
another fix for LWIP_MULTICAST_TX_OPTIONS: without LWIP_IGMP, udp_pcb->mcast_ttl was not initialized
This commit is contained in:
parent
5be95aa377
commit
7df2dd67bd
@ -1120,9 +1120,9 @@ udp_new(void)
|
||||
/* initialize PCB to all zeroes */
|
||||
memset(pcb, 0, sizeof(struct udp_pcb));
|
||||
pcb->ttl = UDP_TTL;
|
||||
#if LWIP_IGMP
|
||||
#if LWIP_MULTICAST_TX_OPTIONS
|
||||
pcb->mcast_ttl = UDP_TTL;
|
||||
#endif
|
||||
#endif /* LWIP_MULTICAST_TX_OPTIONS */
|
||||
}
|
||||
return pcb;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user