From 42c92f80f1bfe7c4f4bc261b5e741090754b5122 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Mon, 29 Feb 2016 13:25:13 +0100 Subject: [PATCH] Add compatibility macro for udp_new_ip6() --- src/include/lwip/udp.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/include/lwip/udp.h b/src/include/lwip/udp.h index 03e98e48..a370d3f9 100644 --- a/src/include/lwip/udp.h +++ b/src/include/lwip/udp.h @@ -165,6 +165,9 @@ void udp_input (struct pbuf *p, struct netif *inp); void udp_init (void); +/* for compatibility with older implementation */ +#define udp_new_ip6() udp_new_ip_type(IPADDR_TYPE_V6) + #if LWIP_MULTICAST_TX_OPTIONS #define udp_set_multicast_netif_addr(pcb, ip4addr) ip_addr_copy_from_ip4((pcb)->multicast_ip, *(ip4addr)) #define udp_get_multicast_netif_addr(pcb) ip_2_ip4(&(pcb)->multicast_ip)