changeset 2055:6d511709381b draft

We don't print the FQDN flags.
author Roy Marples <roy@marples.name>
date Fri, 21 Jun 2013 18:17:52 +0000
parents ee25571de23b
children eaed912c1227
files dhcp6.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dhcp6.c	Thu Jun 20 10:35:16 2013 +0000
+++ b/dhcp6.c	Fri Jun 21 18:17:52 2013 +0000
@@ -2513,6 +2513,11 @@
 		}
 		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;