]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3074] initial def of DHCPv4 option 121
authorPiotrek Zadroga <piotrek@isc.org>
Wed, 4 Oct 2023 12:37:17 +0000 (14:37 +0200)
committerPiotrek Zadroga <piotrek@isc.org>
Tue, 9 Jan 2024 10:38:08 +0000 (11:38 +0100)
Initial definition of DHCPv4 option code 121
Classless Static Route Option - described in RFC 3442

src/lib/dhcp/dhcp4.h
src/lib/dhcp/std_option_defs.h

index eb4b1d2a089d91db3da2aa18d10b75574e6356ac..15ad058b2db2485b361d68b646e49ab6c3161e43 100644 (file)
@@ -183,7 +183,7 @@ enum DHCPOptionType {
     DHO_SUBNET_SELECTION             = 118, /* RFC3011 */
     DHO_DOMAIN_SEARCH                = 119, /* RFC3397 */
 //  DHO_SIP_SERVERS                  = 120, /* RFC3361 */
-//  DHO_CLASSLESS_STATIC_ROUTE       = 121, /* RFC3442 */
+    DHO_CLASSLESS_STATIC_ROUTE       = 121, /* RFC3442 */
 //  DHO_CCC                          = 122, /* RFC3495 */
 //  DHO_GEOCONF                      = 123, /* RFC6225 */
     DHO_VIVCO_SUBOPTIONS             = 124, /* RFC3925 */
index ccd3ae1ccefa0f5c1a732131aad10c4640746cc6..bfeb83cae419ae4f2b07099dac8d7984ad0ee431 100644 (file)
@@ -332,6 +332,8 @@ const OptionDefParams STANDARD_V4_OPTION_DEFINITIONS[] = {
       OPT_IPV4_ADDRESS_TYPE, false, NO_RECORD_DEF, "" },
     { "domain-search", DHO_DOMAIN_SEARCH, DHCP4_OPTION_SPACE, OPT_FQDN_TYPE,
       true, NO_RECORD_DEF, "" },
+    { "classless-static-route", DHO_CLASSLESS_STATIC_ROUTE, DHCP4_OPTION_SPACE, OPT_IPV4_ADDRESS_TYPE,
+     true, NO_RECORD_DEF, "" },
     { "vivco-suboptions", DHO_VIVCO_SUBOPTIONS, DHCP4_OPTION_SPACE,
       OPT_RECORD_TYPE, false, RECORD_DEF(VIVCO_RECORDS), "" },
     // Vendor-Identifying Vendor Specific Information option payload begins with a