Ask for DHO_BOOTFILE_NAME and DHO_TFTP_SERVER by default. May prove
authorkrw <krw@openbsd.org>
Sun, 31 Jul 2016 18:55:16 +0000 (18:55 +0000)
committerkrw <krw@openbsd.org>
Sun, 31 Jul 2016 18:55:16 +0000 (18:55 +0000)
useful to autoinstall in the future and in the meantime can provide
information on what the dhcp server has done with the desired server
name and file name info.

Original diff from Patrik Lundin via tech@

sbin/dhclient/clparse.c

index 37523ac..b646746 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: clparse.c,v 1.95 2016/06/03 02:31:17 tedu Exp $       */
+/*     $OpenBSD: clparse.c,v 1.96 2016/07/31 18:55:16 krw Exp $        */
 
 /* Parser for dhclient config and lease files. */
 
@@ -110,6 +110,10 @@ read_client_conf(void)
            [config->requested_option_count++] = DHO_DOMAIN_NAME_SERVERS;
        config->requested_options
            [config->requested_option_count++] = DHO_HOST_NAME;
+       config->requested_options
+           [config->requested_option_count++] = DHO_BOOTFILE_NAME;
+       config->requested_options
+           [config->requested_option_count++] = DHO_TFTP_SERVER;
 
        if ((cfile = fopen(path_dhclient_conf, "r")) != NULL) {
                do {