philipp / rpms / dhcp

Forked from rpms/dhcp 4 years ago
Clone

Blame SOURCES/dhcp-4.2.5-rfc3442-classless-static-routes.patch

c8bb8f
diff -up dhcp-4.2.5b1/client/clparse.c.rfc3442 dhcp-4.2.5b1/client/clparse.c
c8bb8f
--- dhcp-4.2.5b1/client/clparse.c.rfc3442	2012-12-17 13:23:34.387564654 +0100
c8bb8f
+++ dhcp-4.2.5b1/client/clparse.c	2012-12-17 13:23:34.437563996 +0100
c8bb8f
@@ -37,7 +37,7 @@
c8bb8f
 
c8bb8f
 struct client_config top_level_config;
c8bb8f
 
c8bb8f
-#define NUM_DEFAULT_REQUESTED_OPTS	14
c8bb8f
+#define NUM_DEFAULT_REQUESTED_OPTS	15
c8bb8f
 struct option *default_requested_options[NUM_DEFAULT_REQUESTED_OPTS + 1];
c8bb8f
 
c8bb8f
 static void parse_client_default_duid(struct parse *cfile);
c8bb8f
@@ -90,7 +90,11 @@ isc_result_t read_client_conf ()
c8bb8f
 				dhcp_universe.code_hash, &code, 0, MDL);
c8bb8f
 
c8bb8f
 	/* 4 */
c8bb8f
-	code = DHO_ROUTERS;
c8bb8f
+	/* The Classless Static Routes option code MUST appear in the parameter
c8bb8f
+     * request list prior to both the Router option code and the Static
c8bb8f
+     * Routes option code, if present. (RFC3442)
c8bb8f
+	 */
c8bb8f
+	code = DHO_CLASSLESS_STATIC_ROUTES;
c8bb8f
 	option_code_hash_lookup(&default_requested_options[3],
c8bb8f
 				dhcp_universe.code_hash, &code, 0, MDL);
c8bb8f
 
c8bb8f
@@ -144,6 +148,11 @@ isc_result_t read_client_conf ()
c8bb8f
 	option_code_hash_lookup(&default_requested_options[13],
c8bb8f
 				dhcp_universe.code_hash, &code, 0, MDL);
c8bb8f
 
c8bb8f
+	/* 15 */
c8bb8f
+	code = DHO_ROUTERS;
c8bb8f
+	option_code_hash_lookup(&default_requested_options[14],
c8bb8f
+				dhcp_universe.code_hash, &code, 0, MDL);
c8bb8f
+
c8bb8f
 	for (code = 0 ; code < NUM_DEFAULT_REQUESTED_OPTS ; code++) {
c8bb8f
 		if (default_requested_options[code] == NULL)
c8bb8f
 			log_fatal("Unable to find option definition for "
c8bb8f
diff -up dhcp-4.2.5b1/common/dhcp-options.5.rfc3442 dhcp-4.2.5b1/common/dhcp-options.5
c8bb8f
--- dhcp-4.2.5b1/common/dhcp-options.5.rfc3442	2012-12-17 13:23:34.376564797 +0100
c8bb8f
+++ dhcp-4.2.5b1/common/dhcp-options.5	2012-12-17 13:25:18.435141385 +0100
c8bb8f
@@ -116,6 +116,26 @@ hexadecimal, separated by colons.  For e
c8bb8f
 or
c8bb8f
   option dhcp-client-identifier 43:4c:49:45:54:2d:46:4f:4f;
c8bb8f
 .fi
c8bb8f
+.PP
c8bb8f
+The
c8bb8f
+.B destination-descriptor
c8bb8f
+describe the IP subnet number and subnet mask
c8bb8f
+of a particular destination using a compact encoding. This encoding
c8bb8f
+consists of one octet describing the width of the subnet mask,
c8bb8f
+followed by all the significant octets of the subnet number.
c8bb8f
+The following table contains some examples of how various subnet
c8bb8f
+number/mask combinations can be encoded:
c8bb8f
+.nf
c8bb8f
+.sp 1
c8bb8f
+Subnet number   Subnet mask      Destination descriptor
c8bb8f
+0               0                0
c8bb8f
+10.0.0.0        255.0.0.0        8.10
c8bb8f
+10.0.0.0        255.255.255.0    24.10.0.0
c8bb8f
+10.17.0.0       255.255.0.0      16.10.17
c8bb8f
+10.27.129.0     255.255.255.0    24.10.27.129
c8bb8f
+10.229.0.128    255.255.255.128  25.10.229.0.128
c8bb8f
+10.198.122.47   255.255.255.255  32.10.198.122.47
c8bb8f
+.fi
c8bb8f
 .SH SETTING OPTION VALUES USING EXPRESSIONS
c8bb8f
 Sometimes it's helpful to be able to set the value of a DHCP option
c8bb8f
 based on some value that the client has sent.  To do this, you can
c8bb8f
@@ -932,6 +952,29 @@ dhclient-script will create routes:
c8bb8f
 .RE
c8bb8f
 .PP
c8bb8f
 .nf
c8bb8f
+.B option \fBclassless-static-routes\fR \fIdestination-descriptor ip-address\fR
c8bb8f
+                            [\fB,\fR \fIdestination-descriptor ip-address\fR...]\fB;\fR
c8bb8f
+.fi
c8bb8f
+.RS 0.25i
c8bb8f
+.PP
c8bb8f
+This option (see RFC3442) specifies a list of classless static routes
c8bb8f
+that the client should install in its routing cache.
c8bb8f
+.PP
c8bb8f
+This option can contain one or more static routes, each of which
c8bb8f
+consists of a destination descriptor and the IP address of the router
c8bb8f
+that should be used to reach that destination.
c8bb8f
+.PP
c8bb8f
+Many clients may not implement the Classless Static Routes option.
c8bb8f
+DHCP server administrators should therefore configure their DHCP
c8bb8f
+servers to send both a Router option and a Classless Static Routes
c8bb8f
+option, and should specify the default router(s) both in the Router
c8bb8f
+option and in the Classless Static Routes option.
c8bb8f
+.PP
c8bb8f
+If the DHCP server returns both a Classless Static Routes option and
c8bb8f
+a Router option, the DHCP client ignores the Router option.
c8bb8f
+.RE
c8bb8f
+.PP
c8bb8f
+.nf
c8bb8f
 .B option \fBstreettalk-directory-assistance-server\fR \fIip-address\fR
c8bb8f
                                            [\fB,\fR \fIip-address\fR...]\fB;\fR
c8bb8f
 .fi
c8bb8f
diff -up dhcp-4.2.5b1/common/inet.c.rfc3442 dhcp-4.2.5b1/common/inet.c
c8bb8f
--- dhcp-4.2.5b1/common/inet.c.rfc3442	2012-12-05 02:17:38.000000000 +0100
c8bb8f
+++ dhcp-4.2.5b1/common/inet.c	2012-12-17 13:23:34.440563957 +0100
c8bb8f
@@ -528,6 +528,60 @@ free_iaddrcidrnetlist(struct iaddrcidrne
c8bb8f
 	return ISC_R_SUCCESS;
c8bb8f
 }
c8bb8f
 
c8bb8f
+static const char *
c8bb8f
+inet_ntopdd(const unsigned char *src, unsigned srclen, char *dst, size_t size)
c8bb8f
+{
c8bb8f
+	char tmp[sizeof("32.255.255.255.255")];
c8bb8f
+	int len;
c8bb8f
+
c8bb8f
+	switch (srclen) {
c8bb8f
+		case 2:
c8bb8f
+			len = sprintf (tmp, "%u.%u", src[0], src[1]);
c8bb8f
+			break;
c8bb8f
+		case 3:
c8bb8f
+			len = sprintf (tmp, "%u.%u.%u", src[0], src[1], src[2]);
c8bb8f
+			break;
c8bb8f
+		case 4:
c8bb8f
+			len = sprintf (tmp, "%u.%u.%u.%u", src[0], src[1], src[2], src[3]);
c8bb8f
+			break;
c8bb8f
+		case 5:
c8bb8f
+			len = sprintf (tmp, "%u.%u.%u.%u.%u", src[0], src[1], src[2], src[3], src[4]);
c8bb8f
+			break;
c8bb8f
+		default:
c8bb8f
+			return NULL;
c8bb8f
+	}
c8bb8f
+	if (len < 0)
c8bb8f
+		return NULL;
c8bb8f
+
c8bb8f
+	if (len > size) {
c8bb8f
+		errno = ENOSPC;
c8bb8f
+		return NULL;
c8bb8f
+	}
c8bb8f
+
c8bb8f
+	return strcpy (dst, tmp);
c8bb8f
+}
c8bb8f
+
c8bb8f
+/* pdestdesc() turns an iaddr structure into a printable dest. descriptor */
c8bb8f
+const char *
c8bb8f
+pdestdesc(const struct iaddr addr) {
c8bb8f
+	static char pbuf[sizeof("255.255.255.255.255")];
c8bb8f
+
c8bb8f
+	if (addr.len == 0) {
c8bb8f
+		return "<null destination descriptor>";
c8bb8f
+	}
c8bb8f
+	if (addr.len == 1) {
c8bb8f
+		return "0";
c8bb8f
+	}
c8bb8f
+	if ((addr.len >= 2) && (addr.len <= 5)) {
c8bb8f
+		return inet_ntopdd(addr.iabuf, addr.len, pbuf, sizeof(pbuf));
c8bb8f
+	}
c8bb8f
+
c8bb8f
+	log_fatal("pdestdesc():%s:%d: Invalid destination descriptor length %d.",
c8bb8f
+		  MDL, addr.len);
c8bb8f
+	/* quell compiler warnings */
c8bb8f
+	return NULL;
c8bb8f
+}
c8bb8f
+
c8bb8f
 /* piaddr() turns an iaddr structure into a printable address. */
c8bb8f
 /* XXX: should use a const pointer rather than passing the structure */
c8bb8f
 const char *
c8bb8f
diff -up dhcp-4.2.5b1/common/options.c.rfc3442 dhcp-4.2.5b1/common/options.c
c8bb8f
--- dhcp-4.2.5b1/common/options.c.rfc3442	2012-12-05 02:17:38.000000000 +0100
c8bb8f
+++ dhcp-4.2.5b1/common/options.c	2012-12-17 13:29:38.961536040 +0100
c8bb8f
@@ -713,7 +713,11 @@ cons_options(struct packet *inpacket, st
c8bb8f
 		 * packet.
c8bb8f
 		 */
c8bb8f
 		priority_list[priority_len++] = DHO_SUBNET_MASK;
c8bb8f
-		priority_list[priority_len++] = DHO_ROUTERS;
c8bb8f
+		if (lookup_option(&dhcp_universe, cfg_options,
c8bb8f
+							DHO_CLASSLESS_STATIC_ROUTES))
c8bb8f
+			priority_list[priority_len++] = DHO_CLASSLESS_STATIC_ROUTES;
c8bb8f
+		else
c8bb8f
+			priority_list[priority_len++] = DHO_ROUTERS;
c8bb8f
 		priority_list[priority_len++] = DHO_DOMAIN_NAME_SERVERS;
c8bb8f
 		priority_list[priority_len++] = DHO_HOST_NAME;
c8bb8f
 		priority_list[priority_len++] = DHO_FQDN;
c8bb8f
@@ -1694,6 +1698,7 @@ const char *pretty_print_option (option,
c8bb8f
 	unsigned long tval;
c8bb8f
 	isc_boolean_t a_array = ISC_FALSE;
c8bb8f
 	int len_used;
c8bb8f
+	unsigned int octets = 0;
c8bb8f
 
c8bb8f
 	if (emit_commas)
c8bb8f
 		comma = ',';
c8bb8f
@@ -1702,6 +1707,7 @@ const char *pretty_print_option (option,
c8bb8f
 
c8bb8f
 	memset (enumbuf, 0, sizeof enumbuf);
c8bb8f
 
c8bb8f
+	if (option->format[0] != 'R') { /* see explanation lower */
c8bb8f
 	/* Figure out the size of the data. */
c8bb8f
 	for (l = i = 0; option -> format [i]; i++, l++) {
c8bb8f
 		if (l >= sizeof(fmtbuf) - 1)
c8bb8f
@@ -1876,6 +1882,33 @@ const char *pretty_print_option (option,
c8bb8f
 	if (numhunk < 0)
c8bb8f
 		numhunk = 1;
c8bb8f
 
c8bb8f
+	} else { /* option->format[i] == 'R') */
c8bb8f
+		/* R (destination descriptor) has variable length.
c8bb8f
+		 * We can find it only in classless static route option,
c8bb8f
+		 * so we are for sure parsing classless static route option now.
c8bb8f
+		 * We go through whole the option to check whether there are no
c8bb8f
+		 * missing/extra bytes.
c8bb8f
+		 * I didn't find out how to improve the existing code and that's the
c8bb8f
+		 * reason for this separate 'else' where I do my own checkings.
c8bb8f
+		 * I know it's little bit unsystematic, but it works.
c8bb8f
+		 */
c8bb8f
+		numhunk = 0;
c8bb8f
+		numelem = 2; /* RI */
c8bb8f
+		fmtbuf[0]='R'; fmtbuf[1]='I'; fmtbuf[2]=0;
c8bb8f
+		for (i =0; i < len; i = i + octets + 5) {
c8bb8f
+			if (data[i] > 32) { /* subnet mask width */
c8bb8f
+				log_error ("wrong subnet mask width in destination descriptor");
c8bb8f
+				break;
c8bb8f
+			}
c8bb8f
+			numhunk++;
c8bb8f
+			octets = ((data[i]+7) / 8);
c8bb8f
+		}
c8bb8f
+		if (i != len) {
c8bb8f
+			log_error ("classless static routes option has wrong size or "
c8bb8f
+					   "there's some garbage in format");
c8bb8f
+		}
c8bb8f
+	}
c8bb8f
+
c8bb8f
 	/* Cycle through the array (or hunk) printing the data. */
c8bb8f
 	for (i = 0; i < numhunk; i++) {
c8bb8f
 		if ((a_array == ISC_TRUE) && (i != 0) && (numelem > 0)) {
c8bb8f
@@ -2031,6 +2064,20 @@ const char *pretty_print_option (option,
c8bb8f
 				strcpy(op, piaddr(iaddr));
c8bb8f
 				dp += 4;
c8bb8f
 				break;
c8bb8f
+
c8bb8f
+			      case 'R':
c8bb8f
+				if (dp[0] <= 32)
c8bb8f
+					iaddr.len = (((dp[0]+7)/8)+1);
c8bb8f
+				else {
c8bb8f
+					log_error ("wrong subnet mask width in destination descriptor");
c8bb8f
+					return "<error>";
c8bb8f
+				}
c8bb8f
+
c8bb8f
+				memcpy(iaddr.iabuf, dp, iaddr.len);
c8bb8f
+				strcpy(op, pdestdesc(iaddr));
c8bb8f
+				dp += iaddr.len;
c8bb8f
+				break;
c8bb8f
+
c8bb8f
 			      case '6':
c8bb8f
 				iaddr.len = 16;
c8bb8f
 				memcpy(iaddr.iabuf, dp, 16);
c8bb8f
diff -up dhcp-4.2.5b1/common/parse.c.rfc3442 dhcp-4.2.5b1/common/parse.c
c8bb8f
--- dhcp-4.2.5b1/common/parse.c.rfc3442	2012-12-17 13:23:34.408564378 +0100
c8bb8f
+++ dhcp-4.2.5b1/common/parse.c	2012-12-17 13:23:34.444563905 +0100
c8bb8f
@@ -341,6 +341,39 @@ int parse_ip_addr (cfile, addr)
c8bb8f
 }	
c8bb8f
 
c8bb8f
 /*
c8bb8f
+ * destination-descriptor :== NUMBER DOT NUMBER |
c8bb8f
+ *                            NUMBER DOT NUMBER DOT NUMBER |
c8bb8f
+ *                            NUMBER DOT NUMBER DOT NUMBER DOT NUMBER |
c8bb8f
+ *                            NUMBER DOT NUMBER DOT NUMBER DOT NUMBER DOT NUMBER
c8bb8f
+ */
c8bb8f
+
c8bb8f
+int parse_destination_descriptor (cfile, addr)
c8bb8f
+	struct parse *cfile;
c8bb8f
+	struct iaddr *addr;
c8bb8f
+{
c8bb8f
+		unsigned int mask_width, dest_dest_len;
c8bb8f
+		addr -> len = 0;
c8bb8f
+		if (parse_numeric_aggregate (cfile, addr -> iabuf,
c8bb8f
+									 &addr -> len, DOT, 10, 8)) {
c8bb8f
+			mask_width = (unsigned int)addr->iabuf[0];
c8bb8f
+			dest_dest_len = (((mask_width+7)/8)+1);
c8bb8f
+			if (mask_width > 32) {
c8bb8f
+				parse_warn (cfile,
c8bb8f
+				"subnet mask width (%u) greater than 32.", mask_width);
c8bb8f
+			}
c8bb8f
+			else if (dest_dest_len != addr->len) {
c8bb8f
+				parse_warn (cfile,
c8bb8f
+				"destination descriptor with subnet mask width %u "
c8bb8f
+				"should have %u octets, but has %u octets.",
c8bb8f
+				mask_width, dest_dest_len, addr->len);
c8bb8f
+			}
c8bb8f
+
c8bb8f
+			return 1;
c8bb8f
+		}
c8bb8f
+		return 0;
c8bb8f
+}
c8bb8f
+
c8bb8f
+/*
c8bb8f
  * Return true if every character in the string is hexadecimal.
c8bb8f
  */
c8bb8f
 static int
c8bb8f
@@ -719,8 +752,10 @@ unsigned char *parse_numeric_aggregate (
c8bb8f
 		if (count) {
c8bb8f
 			token = peek_token (&val, (unsigned *)0, cfile);
c8bb8f
 			if (token != separator) {
c8bb8f
-				if (!*max)
c8bb8f
+				if (!*max) {
c8bb8f
+					*max = count;
c8bb8f
 					break;
c8bb8f
+				}
c8bb8f
 				if (token != RBRACE && token != LBRACE)
c8bb8f
 					token = next_token (&val,
c8bb8f
 							    (unsigned *)0,
c8bb8f
@@ -1660,6 +1695,9 @@ int parse_option_code_definition (cfile,
c8bb8f
 	      case IP_ADDRESS:
c8bb8f
 		type = 'I';
c8bb8f
 		break;
c8bb8f
+	      case DESTINATION_DESCRIPTOR:
c8bb8f
+		type = 'R';
c8bb8f
+		break;
c8bb8f
 	      case IP6_ADDRESS:
c8bb8f
 		type = '6';
c8bb8f
 		break;
c8bb8f
@@ -5418,6 +5456,15 @@ int parse_option_token (rv, cfile, fmt,
c8bb8f
 		}
c8bb8f
 		break;
c8bb8f
 
c8bb8f
+	      case 'R': /* destination descriptor */
c8bb8f
+		if (!parse_destination_descriptor (cfile, &addr)) {
c8bb8f
+			return 0;
c8bb8f
+		}
c8bb8f
+		if (!make_const_data (&t, addr.iabuf, addr.len, 0, 1, MDL)) {
c8bb8f
+			return 0;
c8bb8f
+		}
c8bb8f
+		break;
c8bb8f
+
c8bb8f
 	      case '6': /* IPv6 address. */
c8bb8f
 		if (!parse_ip6_addr(cfile, &addr)) {
c8bb8f
 			return 0;
c8bb8f
@@ -5695,6 +5742,13 @@ int parse_option_decl (oc, cfile)
c8bb8f
 					goto exit;
c8bb8f
 				len = ip_addr.len;
c8bb8f
 				dp = ip_addr.iabuf;
c8bb8f
+				goto alloc;
c8bb8f
+
c8bb8f
+			      case 'R': /* destination descriptor */
c8bb8f
+				if (!parse_destination_descriptor (cfile, &ip_addr))
c8bb8f
+					goto exit;
c8bb8f
+				len = ip_addr.len;
c8bb8f
+				dp = ip_addr.iabuf;
c8bb8f
 
c8bb8f
 			      alloc:
c8bb8f
 				if (hunkix + len > sizeof hunkbuf) {
c8bb8f
diff -up dhcp-4.2.5b1/common/tables.c.rfc3442 dhcp-4.2.5b1/common/tables.c
c8bb8f
--- dhcp-4.2.5b1/common/tables.c.rfc3442	2012-12-17 13:23:34.398564508 +0100
c8bb8f
+++ dhcp-4.2.5b1/common/tables.c	2012-12-17 13:23:34.445563891 +0100
c8bb8f
@@ -52,6 +52,7 @@ HASH_FUNCTIONS (option_code, const unsig
c8bb8f
    Format codes:
c8bb8f
 
c8bb8f
    I - IPv4 address
c8bb8f
+   R - destination descriptor (RFC3442)
c8bb8f
    6 - IPv6 address
c8bb8f
    l - 32-bit signed integer
c8bb8f
    L - 32-bit unsigned integer
c8bb8f
@@ -210,6 +211,7 @@ static struct option dhcp_options[] = {
c8bb8f
 	{ "default-url", "t",			&dhcp_universe, 114, 1 },
c8bb8f
 	{ "subnet-selection", "I",		&dhcp_universe, 118, 1 },
c8bb8f
 	{ "domain-search", "D",		&dhcp_universe, 119, 1 },
c8bb8f
+	{ "classless-static-routes", "RIA",	&dhcp_universe, 121, 1 },
c8bb8f
 	{ "vivco", "Evendor-class.",		&dhcp_universe, 124, 1 },
c8bb8f
 	{ "vivso", "Evendor.",			&dhcp_universe, 125, 1 },
c8bb8f
 #if 0
c8bb8f
diff -up dhcp-4.2.5b1/includes/dhcpd.h.rfc3442 dhcp-4.2.5b1/includes/dhcpd.h
c8bb8f
--- dhcp-4.2.5b1/includes/dhcpd.h.rfc3442	2012-12-17 13:23:34.382564719 +0100
c8bb8f
+++ dhcp-4.2.5b1/includes/dhcpd.h	2012-12-17 13:23:34.446563877 +0100
c8bb8f
@@ -2678,6 +2678,7 @@ isc_result_t range2cidr(struct iaddrcidr
c8bb8f
 			const struct iaddr *lo, const struct iaddr *hi);
c8bb8f
 isc_result_t free_iaddrcidrnetlist(struct iaddrcidrnetlist **result);
c8bb8f
 const char *piaddr (struct iaddr);
c8bb8f
+const char *pdestdesc (struct iaddr);
c8bb8f
 char *piaddrmask(struct iaddr *, struct iaddr *);
c8bb8f
 char *piaddrcidr(const struct iaddr *, unsigned int);
c8bb8f
 u_int16_t validate_port(char *);
c8bb8f
@@ -2887,6 +2888,7 @@ void parse_client_lease_declaration (str
c8bb8f
 int parse_option_decl (struct option_cache **, struct parse *);
c8bb8f
 void parse_string_list (struct parse *, struct string_list **, int);
c8bb8f
 int parse_ip_addr (struct parse *, struct iaddr *);
c8bb8f
+int parse_destination_descriptor (struct parse *, struct iaddr *);
c8bb8f
 int parse_ip_addr_with_subnet(struct parse *, struct iaddrmatch *);
c8bb8f
 void parse_reject_statement (struct parse *, struct client_config *);
c8bb8f
 
c8bb8f
diff -up dhcp-4.2.5b1/includes/dhcp.h.rfc3442 dhcp-4.2.5b1/includes/dhcp.h
c8bb8f
--- dhcp-4.2.5b1/includes/dhcp.h.rfc3442	2012-10-23 21:02:13.000000000 +0200
c8bb8f
+++ dhcp-4.2.5b1/includes/dhcp.h	2012-12-17 13:23:34.446563877 +0100
c8bb8f
@@ -163,6 +163,7 @@ struct dhcp_packet {
c8bb8f
 #define DHO_ASSOCIATED_IP			92
c8bb8f
 #define DHO_SUBNET_SELECTION			118 /* RFC3011! */
c8bb8f
 #define DHO_DOMAIN_SEARCH			119 /* RFC3397 */
c8bb8f
+#define DHO_CLASSLESS_STATIC_ROUTES		121 /* RFC3442 */
c8bb8f
 #define DHO_VIVCO_SUBOPTIONS			124
c8bb8f
 #define DHO_VIVSO_SUBOPTIONS			125
c8bb8f
 
c8bb8f
diff -up dhcp-4.2.5b1/includes/dhctoken.h.rfc3442 dhcp-4.2.5b1/includes/dhctoken.h
c8bb8f
--- dhcp-4.2.5b1/includes/dhctoken.h.rfc3442	2012-12-17 13:23:34.348565167 +0100
c8bb8f
+++ dhcp-4.2.5b1/includes/dhctoken.h	2012-12-17 13:23:34.446563877 +0100
c8bb8f
@@ -365,7 +365,8 @@ enum dhcp_token {
c8bb8f
 	PRIMARY6 = 666,
c8bb8f
 	SECONDARY6 = 667,
c8bb8f
 	TOKEN_INFINIBAND = 668,
c8bb8f
-	BOOTP_BROADCAST_ALWAYS = 669
c8bb8f
+	BOOTP_BROADCAST_ALWAYS = 669,
c8bb8f
+	DESTINATION_DESCRIPTOR = 670
c8bb8f
 };
c8bb8f
 
c8bb8f
 #define is_identifier(x)	((x) >= FIRST_TOKEN &&	\