diff --git a/src/core/udp.c b/src/core/udp.c index 2d25f6c4..09d20b46 100644 --- a/src/core/udp.c +++ b/src/core/udp.c @@ -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; }