mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-02-06 00:39:59 +00:00
Apply patch #9737: Fix DHCPv6 DNS server assignment
(cherry picked from commit 941300c21c45a4dbf1c074b29a9ca3c88c9f6553)
This commit is contained in:
parent
484f0fbafa
commit
1892f445e2
@ -527,7 +527,7 @@ dhcp6_handle_config_reply(struct netif *netif, struct pbuf *p_msg_in)
|
|||||||
u16_t idx;
|
u16_t idx;
|
||||||
u8_t n;
|
u8_t n;
|
||||||
|
|
||||||
memset(&dns_addr, 0, sizeof(dns_addr));
|
ip_addr_set_zero_ip6(&dns_addr);
|
||||||
dns_addr6 = ip_2_ip6(&dns_addr);
|
dns_addr6 = ip_2_ip6(&dns_addr);
|
||||||
for (n = 0, idx = op_start; (idx < op_start + op_len) && (n < LWIP_DHCP6_PROVIDE_DNS_SERVERS);
|
for (n = 0, idx = op_start; (idx < op_start + op_len) && (n < LWIP_DHCP6_PROVIDE_DNS_SERVERS);
|
||||||
n++, idx += sizeof(struct ip6_addr_packed)) {
|
n++, idx += sizeof(struct ip6_addr_packed)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user