mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-22 09:57:20 +00:00
Unicast options are taken into account only for RENEWs
This commit is contained in:
parent
0674055a49
commit
b51c785f98
2
RELNOTES
2
RELNOTES
@ -81,6 +81,8 @@ suggested fixes to <dhcp-users@isc.org>.
|
||||
- Allocated interface IDs are better controlled ('u' bit set to zero,
|
||||
reserved IDs avoided).
|
||||
|
||||
- Unicast options are taken into account only for RENEWs.
|
||||
|
||||
Changes since 4.0.0b3
|
||||
|
||||
- The reverse dns name for PTR updates on IPv6 addresses has been fixed to
|
||||
|
@ -2930,7 +2930,7 @@ do_refresh6(void *input)
|
||||
|
||||
/*
|
||||
* Check whether the server has sent a unicast option; if so, we can
|
||||
* use the address it specified.
|
||||
* use the address it specified for RENEWs.
|
||||
*/
|
||||
oc = lookup_option(&dhcpv6_universe, lease->options, D6O_UNICAST);
|
||||
if (oc && evaluate_option_cache(&ds, NULL, NULL, NULL,
|
||||
@ -2943,7 +2943,9 @@ do_refresh6(void *input)
|
||||
unicast.sin6_family = AF_INET6;
|
||||
unicast.sin6_port = remote_port;
|
||||
memcpy(&unicast.sin6_addr, ds.data, 16);
|
||||
dest_addr = &unicast;
|
||||
if (client->refresh_type == DHCPV6_RENEW) {
|
||||
dest_addr = &unicast;
|
||||
}
|
||||
}
|
||||
|
||||
data_string_forget(&ds, MDL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user