mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
nd6 rdnss: fixed dual-stack compilation
This commit is contained in:
parent
98fc82fa71
commit
a2a16d4193
@ -546,10 +546,10 @@ nd6_input(struct pbuf *p, struct netif *inp)
|
||||
rdnss_opt = (struct rdnss_option *)buffer;
|
||||
num = (rdnss_opt->length - 1) / 2;
|
||||
for (n = 0; (rdnss_server_idx < DNS_MAX_SERVERS) && (n < num); n++) {
|
||||
ip6_addr_t rdnss_address;
|
||||
ip_addr_t rdnss_address;
|
||||
|
||||
/* Get a memory-aligned copy of the prefix. */
|
||||
ip6_addr_set(&rdnss_address, &(rdnss_opt->rdnss_address[n]));
|
||||
ip_addr_copy_from_ip6(rdnss_address, rdnss_opt->rdnss_address[n]);
|
||||
|
||||
if (htonl(rdnss_opt->lifetime) > 0) {
|
||||
/* TODO implement Lifetime > 0 */
|
||||
|
Loading…
Reference in New Issue
Block a user