changeset 3671:529cc290dbfa draft

Allow the possibility to exclude the vendor class option.
author Roy Marples <roy@marples.name>
date Mon, 20 Jun 2016 12:34:27 +0000
parents 123edecbb801
children 31565036930e
files dhcp6.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dhcp6.c	Fri Jun 17 19:08:33 2016 +0000
+++ b/dhcp6.c	Mon Jun 20 12:34:27 2016 +0000
@@ -171,6 +171,9 @@
 	char vendor[VENDORCLASSID_MAX_LEN];
 
 	ifo = ifp->options;
+	if (has_option_mask(ifo->nomask6, D6_OPTION_VENDOR_CLASS))
+		return 0;
+
 	len = sizeof(uint32_t); /* IANA PEN */
 	if (ifo->vivco_en) {
 		for (i = 0, vivco = ifo->vivco;