]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[4107] Added several comments.
authorTomek Mrugalski <tomasz@isc.org>
Sat, 31 Oct 2015 08:32:28 +0000 (17:32 +0900)
committerTomek Mrugalski <tomasz@isc.org>
Sat, 31 Oct 2015 08:32:28 +0000 (17:32 +0900)
src/lib/dhcp/dhcp6.h
src/lib/dhcp/std_option_defs.h

index 8764428812eaa9d4f7bf2ef86ce03e60ba28b136..be4feeffc984ef2babadeb58418d0bea3fd1314c 100644 (file)
@@ -222,7 +222,8 @@ extern const int dhcpv6_type_name_max;
 // Taken from http://www.iana.org/assignments/enterprise-numbers
 #define ENTERPRISE_ID_ISC 2495
 
-/* DHCPv4-over-DHCPv6 (RFC 7341) inter-process communication */
+/* DHCPv4-over-DHCPv6 (RFC 7341) inter-process communication. These are option
+   codes for the ISC vendor specific options used in 4o6 */
 #define ISC_V6_4O6_INTERFACE                 60000
 #define ISC_V6_4O6_SRC_ADDRESS               60001
 
@@ -301,8 +302,7 @@ extern const int dhcpv6_type_name_max;
 #define IRT_DEFAULT     86400
 #define IRT_MINIMUM     600
 
-/* DHCPv4-query message flags */
-
+/* DHCPv4-query message flags (see RFC7341) */
 #define DHCPV4_QUERY_FLAGS_UNICAST (1 << 23)
 
 #endif /* DHCP6_H */
index a12f9d00f6a95a0fc4d41027c261e93255487538..b9fbb98fc672a3f94945d546df3c6d0bff8cf22e 100644 (file)
@@ -374,7 +374,12 @@ const OptionDefParams OPTION_DEF_PARAMS6[] = {
 const int OPTION_DEF_PARAMS_SIZE6  =
     sizeof(OPTION_DEF_PARAMS6) / sizeof(OPTION_DEF_PARAMS6[0]);
 
-/// @brief Definitions of private DHCPv6 options
+/// @brief Definitions of vendor-specific DHCPv6 options, defined by ISC.
+/// 4o6-* options are used for inter-process communication. For details, see
+/// http://kea.isc.org/wiki/Dhcp4o6Design
+///
+/// @todo: As those options are defined by ISC, they do not belong in std_option_defs.h.
+///        We need to move them to a separate file, e.g. isc_option_defs.h
 const OptionDefParams ISC_V6_DEFS[] = {
     { "4o6-interface", ISC_V6_4O6_INTERFACE, OPT_STRING_TYPE, false, NO_RECORD_DEF, "" },
     { "4o6-source-address", ISC_V6_4O6_SRC_ADDRESS, OPT_IPV6_ADDRESS_TYPE, false, NO_RECORD_DEF, "" }