mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-06 22:44:38 +08:00
pppol2tp.c: Avoid an #ifdef - there is a new UDP API function that can be used here
This commit is contained in:
parent
b65a22b32a
commit
2b3db52c70
@ -129,12 +129,7 @@ ppp_pcb *pppol2tp_create(struct netif *pppif,
|
|||||||
goto memp_malloc_l2tp_failed;
|
goto memp_malloc_l2tp_failed;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if LWIP_IPV6
|
udp = udp_new_ip_type(IP_GET_TYPE(ipaddr));
|
||||||
if (IP_IS_V6_VAL(*ipaddr)) {
|
|
||||||
udp = udp_new_ip_type(IPADDR_TYPE_V6);
|
|
||||||
} else
|
|
||||||
#endif /* LWIP_IPV6 */
|
|
||||||
udp = udp_new();
|
|
||||||
if (udp == NULL) {
|
if (udp == NULL) {
|
||||||
goto udp_new_failed;
|
goto udp_new_failed;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user