]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
[master] Add new options
authorShawn Routhier <sar@isc.org>
Fri, 29 Jan 2016 18:51:18 +0000 (10:51 -0800)
committerShawn Routhier <sar@isc.org>
Fri, 29 Jan 2016 18:51:18 +0000 (10:51 -0800)
options for v4: 116, 141, 142, 159, 160
options for v6: 103, 143
from rfcs:  2563, 6011, 6153, 7618, 7710

RELNOTES
common/tables.c
includes/site.h

index a7ca05b4ab13d9b800163b5fd36ed21ec1f037d3..9050331d1250a0c4b7694634bd4b02c4f50caeae 100644 (file)
--- a/RELNOTES
+++ b/RELNOTES
@@ -192,6 +192,9 @@ by Eric Young (eay@cryptsoft.com).
   for cross compilation.
   [ISC-Bugs #33835]
 
+- Add more option definitions.
+  [ISC-Bugs #40562]
+
                        Changes since 4.3.3b1
 
 - None
index 7508cd613f7bda3b299ec1697709db8e3b9c9ab4..1c9360cbcf5b1eb4e163a37faedeaff89bb1c971 100644 (file)
@@ -209,6 +209,9 @@ static struct option dhcp_options[] = {
        { "netinfo-server-address", "Ia",       &dhcp_universe, 112, 1 },
        { "netinfo-server-tag", "t",            &dhcp_universe, 113, 1 },
        { "default-url", "t",                   &dhcp_universe, 114, 1 },
+#if defined(RFC2563_OPTIONS)
+       { "auto-config", "B",                   &dhcp_universe, 116, 1 },
+#endif
 #if defined(RFC2937_OPTIONS)
        { "name-service-search", "Sa",          &dhcp_universe, 117, 1 },
 #endif
@@ -239,6 +242,12 @@ static struct option dhcp_options[] = {
 #if defined(RFC5417_OPTIONS)
        {"capwap-ac-v4", "Ia",                  &dhcp_universe, 138, 1 },
 #endif
+#if defined(RFC6011_OPTIONS)
+       { "sip-ua-cs-domains", "Dc",            &dhcp_universe, 141, 1 },
+#endif
+#if defined(RFC6153_OPTIONS)
+       { "ipv4-address-andsf", "IA",           &dhcp_universe, 142, 1 },
+#endif
 #if defined(RFC6731_OPTIONS)
         { "rdnss-selection", "BIID",           &dhcp_universe, 146, 1 },
 #endif
@@ -246,6 +255,12 @@ static struct option dhcp_options[] = {
        /* Not defined by RFC yet */
        { "tftp-server-address", "Ia",          &dhcp_universe, 150, 1 },
 #endif
+#if defined(RFC7618_OPTIONS)
+       { "v4-portparams", "BBS",               &dhcp_universe, 159, 1 },
+#endif
+#if defined(RFC7710_OPTIONS)
+       { "v4-captive-portal", "t",             &dhcp_universe, 160, 1 },
+#endif
 #if 0
        /* PXELINUX options: defined by RFC 5071 */
        { "pxelinux-magic", "BBBB",             &dhcp_universe, 208, 1 },
@@ -543,6 +558,12 @@ static struct option dhcpv6_options[] = {
        { "solmax-rt", "L",                     &dhcpv6_universe, 82, 1 },
        { "inf-max-rt", "L",                    &dhcpv6_universe, 83, 1 },
 #endif
+#if defined(RFC7710_OPTIONS)
+       { "v6-captive-portal", "t",             &dhcpv6_universe, 103, 1 },
+#endif
+#if defined(RFC6153_OPTIONS)
+       { "ipv6-address-andsf", "6A",           &dhcpv6_universe, 143, 1 },
+#endif
 
        { NULL, NULL, NULL, 0, 0 }
 };
index a36e322ce5d37e5254c6628b61737f505d02b8b7..0586717eddd2c1fd76e95e5c84b54eb982e41026 100644 (file)
    should be left as is, but if you have already defined one
    of these and prefer your definition you can comment the 
    RFC define out to avoid conflicts */
+#define RFC2563_OPTIONS
 #define RFC2937_OPTIONS
 #define RFC4776_OPTIONS
 #define RFC4833_OPTIONS
 #define RFC5970_OPTIONS
 #define RFC5986_OPTIONS
 #define RFC6011_OPTIONS
+#define RFC6011_OPTIONS
+#define RFC6153_OPTIONS
 #define RFC6334_OPTIONS
 #define RFC6440_OPTIONS
 #define RFC6731_OPTIONS
 #define RFC6939_OPTIONS
 #define RFC6977_OPTIONS
 #define RFC7083_OPTIONS
-
+#define RFC7618_OPTIONS
+#define RFC7710_OPTIONS