mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-09 09:03:49 +08:00
Fix compile when IPv4 is disabled
This commit is contained in:
@@ -1145,12 +1145,12 @@ int cdns(ppp_pcb *pcb, u32_t ns1, u32_t ns2) {
|
||||
nsa = dns_getserver(0);
|
||||
ip_addr_set_ip4_u32(&nsb, ns1);
|
||||
if (ip_addr_cmp(nsa, &nsb)) {
|
||||
dns_setserver(0, IP4_ADDR_ANY);
|
||||
dns_setserver(0, IP_ADDR_ANY);
|
||||
}
|
||||
nsa = dns_getserver(1);
|
||||
ip_addr_set_ip4_u32(&nsb, ns2);
|
||||
if (ip_addr_cmp(nsa, &nsb)) {
|
||||
dns_setserver(1, IP4_ADDR_ANY);
|
||||
dns_setserver(1, IP_ADDR_ANY);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -307,7 +307,7 @@ static err_t pppol2tp_connect(ppp_pcb *ppp, void *ctx) {
|
||||
udp_bind(l2tp->udp, IP6_ADDR_ANY, 0);
|
||||
} else
|
||||
#endif /* LWIP_IPV6 */
|
||||
udp_bind(l2tp->udp, IP4_ADDR_ANY, 0);
|
||||
udp_bind(l2tp->udp, IP_ADDR_ANY, 0);
|
||||
|
||||
#if PPPOL2TP_AUTH_SUPPORT
|
||||
/* Generate random vector */
|
||||
|
||||
Reference in New Issue
Block a user