]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Allow the possibility to exclude the vendor class option.
authorRoy Marples <roy@marples.name>
Mon, 20 Jun 2016 12:34:27 +0000 (12:34 +0000)
committerRoy Marples <roy@marples.name>
Mon, 20 Jun 2016 12:34:27 +0000 (12:34 +0000)
dhcp6.c

diff --git a/dhcp6.c b/dhcp6.c
index bbddb57413ef75e22ef29041bb75c8eb09d72707..2064ce8e52739a7ebd6795c964e60e90bf11c21b 100644 (file)
--- a/dhcp6.c
+++ b/dhcp6.c
@@ -171,6 +171,9 @@ dhcp6_makevendor(struct dhcp6_option *o, const struct interface *ifp)
        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;