mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-15 22:49:16 +00:00
Fix indent in api_lib.c
This commit is contained in:
parent
44e430ebc2
commit
4b7e0f50b7
@ -273,9 +273,9 @@ netconn_bind(struct netconn *conn, const ip_addr_t *addr, u16_t port)
|
|||||||
|
|
||||||
/* Dual-stack: Unmap IPv6 mapped IPv4 addresses */
|
/* Dual-stack: Unmap IPv6 mapped IPv4 addresses */
|
||||||
if (IP_IS_V6(addr) && ip6_addr_isipv6mappedipv4(ip_2_ip6(addr))) {
|
if (IP_IS_V6(addr) && ip6_addr_isipv6mappedipv4(ip_2_ip6(addr))) {
|
||||||
unmap_ipv6_mapped_ipv4(ip_2_ip4(&ipaddr), ip_2_ip6(addr));
|
unmap_ipv6_mapped_ipv4(ip_2_ip4(&ipaddr), ip_2_ip6(addr));
|
||||||
IP_SET_TYPE_VAL(ipaddr, IPADDR_TYPE_V4);
|
IP_SET_TYPE_VAL(ipaddr, IPADDR_TYPE_V4);
|
||||||
addr = &ipaddr;
|
addr = &ipaddr;
|
||||||
}
|
}
|
||||||
#endif /* LWIP_IPV4 && LWIP_IPV6 */
|
#endif /* LWIP_IPV4 && LWIP_IPV6 */
|
||||||
|
|
||||||
@ -318,9 +318,9 @@ netconn_connect(struct netconn *conn, const ip_addr_t *addr, u16_t port)
|
|||||||
|
|
||||||
/* Dual-stack: Unmap IPv6 mapped IPv4 addresses */
|
/* Dual-stack: Unmap IPv6 mapped IPv4 addresses */
|
||||||
if (IP_IS_V6(addr) && ip6_addr_isipv6mappedipv4(ip_2_ip6(addr))) {
|
if (IP_IS_V6(addr) && ip6_addr_isipv6mappedipv4(ip_2_ip6(addr))) {
|
||||||
unmap_ipv6_mapped_ipv4(ip_2_ip4(&ipaddr), ip_2_ip6(addr));
|
unmap_ipv6_mapped_ipv4(ip_2_ip4(&ipaddr), ip_2_ip6(addr));
|
||||||
IP_SET_TYPE_VAL(ipaddr, IPADDR_TYPE_V4);
|
IP_SET_TYPE_VAL(ipaddr, IPADDR_TYPE_V4);
|
||||||
addr = &ipaddr;
|
addr = &ipaddr;
|
||||||
}
|
}
|
||||||
#endif /* LWIP_IPV4 && LWIP_IPV6 */
|
#endif /* LWIP_IPV4 && LWIP_IPV6 */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user