mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-22 18:07:25 +00:00
no hardware parameter in DHCPv6
This commit is contained in:
parent
7e9f7a1bcf
commit
e2cfde76ba
2
RELNOTES
2
RELNOTES
@ -159,6 +159,8 @@ work on other platforms. Please report any problems and suggested fixes to
|
|||||||
- DHCPv6 client timestamp in DUID was based on the year 1970 rather
|
- DHCPv6 client timestamp in DUID was based on the year 1970 rather
|
||||||
than the year 2000.
|
than the year 2000.
|
||||||
|
|
||||||
|
- Warn when attempting to use a hardware parameter in DHCPv6.
|
||||||
|
|
||||||
Changes since 4.0.0b3
|
Changes since 4.0.0b3
|
||||||
|
|
||||||
- The reverse dns name for PTR updates on IPv6 addresses has been fixed to
|
- The reverse dns name for PTR updates on IPv6 addresses has been fixed to
|
||||||
|
@ -532,6 +532,16 @@ int parse_statement (cfile, group, type, host_decl, declaration)
|
|||||||
|
|
||||||
case HARDWARE:
|
case HARDWARE:
|
||||||
next_token (&val, (unsigned *)0, cfile);
|
next_token (&val, (unsigned *)0, cfile);
|
||||||
|
#ifdef DHCPv6
|
||||||
|
if (local_family == AF_INET6) {
|
||||||
|
parse_warn(cfile, "You can not use a hardware "
|
||||||
|
"parameter for DHCPv6 hosts. "
|
||||||
|
"Use the host-identifier parameter "
|
||||||
|
"instead.");
|
||||||
|
skip_to_semi(cfile);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
#endif /* DHCPv6 */
|
||||||
memset (&hardware, 0, sizeof hardware);
|
memset (&hardware, 0, sizeof hardware);
|
||||||
if (host_decl && memcmp(&hardware, &(host_decl->interface),
|
if (host_decl && memcmp(&hardware, &(host_decl->interface),
|
||||||
sizeof(hardware)) != 0) {
|
sizeof(hardware)) != 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user