diff --git a/third_party/lwip/repo/lwip/src/core/memp.c b/third_party/lwip/repo/lwip/src/core/memp.c index a4d6a421c0868c..b6d266a379f111 100644 --- a/third_party/lwip/repo/lwip/src/core/memp.c +++ b/third_party/lwip/repo/lwip/src/core/memp.c @@ -118,6 +118,8 @@ _Static_assert ((PBUF_CUSTOM_POOL_IDX_START > PBUF_CUSTOM_POOL_IDX_END), "PBUF_C #define MEMP_PBUF_POOL_HIGHWATERMARK(type) (type) #endif +#define sys_profile_interval_set_pbuf_highwatermark(...) + #if MEMP_SANITY_CHECK && !MEMP_MEM_MALLOC /** * Check that memp-lists don't form a circle, using "Floyd's cycle-finding algorithm". diff --git a/third_party/lwip/repo/lwip/src/core/udp.c b/third_party/lwip/repo/lwip/src/core/udp.c index f81704617b7832..4969eb3e8243b5 100644 --- a/third_party/lwip/repo/lwip/src/core/udp.c +++ b/third_party/lwip/repo/lwip/src/core/udp.c @@ -866,7 +866,7 @@ udp_sendto_if_src_chksum(struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *d LWIP_DEBUGF(UDP_DEBUG, ("udp_send: UDP checksum 0x%04"X16_F"\n", lwip_ntohs(udphdr->chksum))); LWIP_DEBUGF(UDP_DEBUG, ("udp_send: ip_output_if (,,,,0x%02"X16_F",)\n", (u16_t)ip_proto)); /* output to IP */ - netif_apply_pcb(netif, pcb); + netif_apply_pcb(netif, (struct ip_pcb*) pcb); err = ip_output_if_src(q, src_ip, dst_ip, ttl, pcb->tos, ip_proto, netif); netif_apply_pcb(netif, NULL); #if LWIP_MANAGEMENT_CHANNEL