]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
We don't print the FQDN flags.
authorRoy Marples <roy@marples.name>
Fri, 21 Jun 2013 18:17:52 +0000 (18:17 +0000)
committerRoy Marples <roy@marples.name>
Fri, 21 Jun 2013 18:17:52 +0000 (18:17 +0000)
dhcp6.c

diff --git a/dhcp6.c b/dhcp6.c
index 89780fe7106933aa44a539f27903a762c23592c0..205fce2b654b71a056a26e9ce2158f34d3901ff8 100644 (file)
--- a/dhcp6.c
+++ b/dhcp6.c
@@ -2513,6 +2513,11 @@ dhcp6_env(char **env, const char *prefix, const struct interface *ifp,
                }
                ol = ntohs(o->len);
                od = D6_COPTION_DATA(o);
+               /* We only want the FQDN name */
+               if (opt->option == D6_OPTION_FQDN) {
+                       ol--;
+                       od++;
+               }
                len = print_option(NULL, 0, opt->type, ol, od, ifp->name);
                if (len < 0)
                        return -1;