summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2016-07-31 18:55:16 +0000
committerkrw <krw@openbsd.org>2016-07-31 18:55:16 +0000
commite8e969d87178f250afd684f1d7bdd642a882242d (patch)
treede17748d027975b2c35ca651e590618863da5155
parentUse m_devget(9). (diff)
downloadwireguard-openbsd-e8e969d87178f250afd684f1d7bdd642a882242d.tar.xz
wireguard-openbsd-e8e969d87178f250afd684f1d7bdd642a882242d.zip
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@
-rw-r--r--sbin/dhclient/clparse.c6
1 files changed, 5 insertions, 1 deletions
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 {