mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-26 08:02: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 */
|
/* initialize PCB to all zeroes */
|
||||||
memset(pcb, 0, sizeof(struct udp_pcb));
|
memset(pcb, 0, sizeof(struct udp_pcb));
|
||||||
pcb->ttl = UDP_TTL;
|
pcb->ttl = UDP_TTL;
|
||||||
#if LWIP_IGMP
|
#if LWIP_MULTICAST_TX_OPTIONS
|
||||||
pcb->mcast_ttl = UDP_TTL;
|
pcb->mcast_ttl = UDP_TTL;
|
||||||
#endif
|
#endif /* LWIP_MULTICAST_TX_OPTIONS */
|
||||||
}
|
}
|
||||||
return pcb;
|
return pcb;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user