summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-06-14 21:54:24 +0000
committerRoy Marples <roy@marples.name>2016-06-14 21:54:24 +0000
commitc883b7b9c6adab79fb6532da974f330bf0bb1cfc (patch)
treef1b7c1e0ada4c472dfce9386567e4e3c96df5573
parente73eb19ff409e5ac70023d58bc5caf65878deec6 (diff)
downloaddhcpcd-c883b7b9c6adab79fb6532da974f330bf0bb1cfc.tar.xz
Hostname documentation fixes, thanks to Olaf Seibert.
-rw-r--r--dhcp.c2
-rw-r--r--dhcpcd.conf.5.in12
2 files changed, 8 insertions, 6 deletions
diff --git a/dhcp.c b/dhcp.c
index 0fa35d7f..f7650adf 100644
--- a/dhcp.c
+++ b/dhcp.c
@@ -2508,6 +2508,8 @@ dhcp_reboot(struct interface *ifp)
eloop_timeout_add_sec(ifp->ctx->eloop,
ifo->reboot, ipv4ll_start, ifp);
+ logger(ifp->ctx, LOG_INFO, "DEBUG %llu %d\n", ifo->options & DHCPCD_LASTLEASE,
+ state->lease.frominfo);
if (ifo->options & DHCPCD_LASTLEASE && state->lease.frominfo)
eloop_timeout_add_sec(ifp->ctx->eloop,
ifo->reboot, dhcp_lastlease, ifp);
diff --git a/dhcpcd.conf.5.in b/dhcpcd.conf.5.in
index 9e864097..fc51b4f5 100644
--- a/dhcpcd.conf.5.in
+++ b/dhcpcd.conf.5.in
@@ -22,7 +22,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd May 9, 2016
+.Dd June 14, 2016
.Dt DHCPCD.CONF 5
.Os
.Sh NAME
@@ -155,7 +155,7 @@ should use with
.Ic env
.Va wpa_supplicant_driver=nl80211
.Pp
-If the hostname is set, will be will set to the FQDN if possible as per
+If the hostname is set, it will be will set to the FQDN if possible as per
RFC 4702 section 3.1.
If the FQDN option is missing,
.Nm dhcpcd
@@ -261,14 +261,14 @@ You can use this option to stop this from happening.
Fallback to using this profile if DHCP fails.
This allows you to configure a static profile instead of using ZeroConf.
.It Ic hostname Ar name
-Sends
-.Ar hostname
+Sends the hostname
+.Ar name
to the DHCP server so it can be registered in DNS.
If
-.Ar hostname
+.Ar name
is an empty string then the current system hostname is sent.
If
-.Ar hostname
+.Ar name
is a FQDN (ie, contains a .) then it will be encoded as such.
.It Ic hostname_short
Sends the short hostname to the DHCP server instead of the FQDN.