diff options
author | Piotrek Zadroga <piotrek@isc.org> | 2024-02-19 22:33:15 +0100 |
---|---|---|
committer | Piotrek Zadroga <piotrek@isc.org> | 2024-02-23 17:14:06 +0100 |
commit | 366d886f5ae75e9529bd9ac9700515651ab48337 (patch) | |
tree | 57a425aeb59d87f86a1e7ce56a6baa0abec86c6b /src | |
parent | [#3141] DNRv4 UTs edited (diff) | |
download | kea-366d886f5ae75e9529bd9ac9700515651ab48337.tar.xz kea-366d886f5ae75e9529bd9ac9700515651ab48337.zip |
[#3141] provide RFC in comments
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/dhcp/dhcp4.h | 2 | ||||
-rw-r--r-- | src/lib/dhcp/dhcp6.h | 2 | ||||
-rw-r--r-- | src/lib/dhcp/option4_dnr.cc | 2 | ||||
-rw-r--r-- | src/lib/dhcp/option4_dnr.h | 6 | ||||
-rw-r--r-- | src/lib/dhcp/option6_dnr.cc | 2 | ||||
-rw-r--r-- | src/lib/dhcp/option6_dnr.h | 3 |
6 files changed, 7 insertions, 10 deletions
diff --git a/src/lib/dhcp/dhcp4.h b/src/lib/dhcp/dhcp4.h index af14dae7f2..aa3ecee5be 100644 --- a/src/lib/dhcp/dhcp4.h +++ b/src/lib/dhcp/dhcp4.h @@ -215,7 +215,7 @@ enum DHCPOptionType { // 160 used to be assigned in RFC7710, but was removed in RFC8910 // The Captive Portal option now uses code 114. // DHO_MUD_URL_V4 = 161, /* RFC8520 */ - DHO_V4_DNR = 162, /* RFC-ietf-add-dnr */ + DHO_V4_DNR = 162, /* RFC9463 */ // 163-209 are removed/unassigned // DHO_PATH_PREFIX = 210, /* RFC5071 */ // DHO_REBOOT_TIME = 211, /* RFC5071 */ diff --git a/src/lib/dhcp/dhcp6.h b/src/lib/dhcp/dhcp6.h index bb89c20a87..4ba3c71fa2 100644 --- a/src/lib/dhcp/dhcp6.h +++ b/src/lib/dhcp/dhcp6.h @@ -156,7 +156,7 @@ enum DHCPv6OptionType { D60_V6_SZTP_REDIRECT = 136, /* RFC8572 */ // Option codes 137-142 are unassigned. D6O_IPV6_ADDRESS_ANDSF = 143, /* RFC6153 */ - D6O_V6_DNR = 144 /* RFC-ietf-add-dnr */ + D6O_V6_DNR = 144 /* RFC9463 */ }; /* diff --git a/src/lib/dhcp/option4_dnr.cc b/src/lib/dhcp/option4_dnr.cc index e2bc68424d..3564612a32 100644 --- a/src/lib/dhcp/option4_dnr.cc +++ b/src/lib/dhcp/option4_dnr.cc @@ -421,7 +421,7 @@ DnrInstance::unpackAddresses(OptionBufferConstIter& begin, const OptionBufferCon << "Addr Len=" << addr_length_ << " is not divisible by 4"); } - // As per draft-ietf-add-dnr 3.1.8: + // As per RFC9463 Section 3.1.8: // If additional data is supplied (i.e. not ADN only mode), // the option includes at least one valid IP address. if (addr_length_ == 0) { diff --git a/src/lib/dhcp/option4_dnr.h b/src/lib/dhcp/option4_dnr.h index 0db59e8808..a00232bf84 100644 --- a/src/lib/dhcp/option4_dnr.h +++ b/src/lib/dhcp/option4_dnr.h @@ -52,8 +52,7 @@ public: /// @c Option6Dnr class can derive from this @c DnrInstance class, whereas @c Option4Dnr class /// should have a container of @c DnrInstance's. /// -/// DNR Instance Data Format has been defined in the @c draft-ietf-add-dnr (to be replaced -/// with published RFC). +/// DNR Instance Data Format has been defined in the @c RFC9463. class DnrInstance { public: /// @brief A Type defined for container holding IP addresses. @@ -436,8 +435,7 @@ private: /// @brief Represents DHCPv4 Encrypted DNS %Option (code 162). /// -/// This option has been defined in the @c draft-ietf-add-dnr (to be replaced -/// with published RFC) and it has a following structure: +/// This option has been defined in the @c RFC9463 and it has a following structure: /// - option-code = 162 (1 octet) /// - option-len (1 octet) /// - multiple (one or more) DNR Instance Data diff --git a/src/lib/dhcp/option6_dnr.cc b/src/lib/dhcp/option6_dnr.cc index f5fa160696..e232e376a5 100644 --- a/src/lib/dhcp/option6_dnr.cc +++ b/src/lib/dhcp/option6_dnr.cc @@ -120,7 +120,7 @@ Option6Dnr::unpackAddresses(OptionBufferConstIter& begin, OptionBufferConstIter << "Addr Len=" << addr_length_ << " is not divisible by 16"); } - // As per draft-ietf-add-dnr 3.1.8: + // As per RFC9463 3.1.8: // If additional data is supplied (i.e. not ADN only mode), // the option includes at least one valid IP address. if (addr_length_ == 0) { diff --git a/src/lib/dhcp/option6_dnr.h b/src/lib/dhcp/option6_dnr.h index e1cbcf743e..f8a8b4ef44 100644 --- a/src/lib/dhcp/option6_dnr.h +++ b/src/lib/dhcp/option6_dnr.h @@ -14,8 +14,7 @@ namespace dhcp { /// @brief Represents DHCPv6 Encrypted DNS %Option (code 144). /// -/// This option has been defined in the @c draft-ietf-add-dnr (to be replaced -/// with published RFC) and it has a following structure: +/// This option has been defined in the @c RFC9463 and it has a following structure: /// - option-code = 144 (2 octets) /// - option-len (2 octets) /// - Service Priority (2 octets) |