From e8e969d87178f250afd684f1d7bdd642a882242d Mon Sep 17 00:00:00 2001 From: krw Date: Sun, 31 Jul 2016 18:55:16 +0000 Subject: [PATCH] Ask for DHO_BOOTFILE_NAME and DHO_TFTP_SERVER by default. May prove 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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sbin/dhclient/clparse.c b/sbin/dhclient/clparse.c index 37523ac5651..b64674615fd 100644 --- a/sbin/dhclient/clparse.c +++ b/sbin/dhclient/clparse.c @@ -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 { -- 2.20.1