summaryrefslogtreecommitdiffstats
path: root/dhcpcd.8.in
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-04-11 16:14:55 +0000
committerRoy Marples <roy@marples.name>2008-04-11 16:14:55 +0000
commit1a60d14fa2f91876b9ec14d6e6c88d97dacf6c4c (patch)
tree9e992f64d969ddef2e7d3836afa0d4065f69706a /dhcpcd.8.in
parent211da073490c5decd1deb46034385437a54ca977 (diff)
downloaddhcpcd-1a60d14fa2f91876b9ec14d6e6c88d97dacf6c4c.tar.xz
Normally I hate massive code drops, but heh.
The code has been drastically re-arranged. Instead of populating a custom structure while parsing dhcp messages, we now pluck what we need right out of the message itself. We have custom functions and a lookup table to make this really easy. This makes us more like dhclient and udhcpc, and will enable us to easily add (and remove!) more dhcp options without having to actually change the code (much). We now store the real dhcp message we got in /var/db/dhcpcd-$iface.lease, the mtime of the file being used as when we got the lease. This file is read in when re-using an old lease instead of parsing the .info file. The benefit of all of this means that we're actually ~15k smaller when compiled with the same features. This has been tested for quite some time, and I'm pretty sure most bugs with the 3.2 branch have been fixed whilst making this. Right now, we are 99% command line compatible with the 3.2 branch.
Diffstat (limited to 'dhcpcd.8.in')
-rw-r--r--dhcpcd.8.in27
1 files changed, 6 insertions, 21 deletions
diff --git a/dhcpcd.8.in b/dhcpcd.8.in
index ddeff9be..4dd94d9e 100644
--- a/dhcpcd.8.in
+++ b/dhcpcd.8.in
@@ -22,7 +22,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd Feb 20, 2008
+.Dd Apr 9, 2008
.Dt DHCPCD 8 SMM
.Sh NAME
.Nm dhcpcd
@@ -231,26 +231,8 @@ dhcpcd itself never does any DNS updates.
.It Fl H , --sethostname
Forces
.Nm
-to set the hostname as supplied by the DHCP server. Because some OS's and users
-prefer to have just the hostname, or the full FQDN more
-.Fl H , --sethostname
-options change the behaviour. Below is the list of possible combinations:-
-.Bl -tag -width indent
-.It Fl H
-set the hostname to the full FQDN.
-.It Fl HH
-strip the domain if it matches the dns domain.
-.It Fl HHH
-strip the domain regardless.
-.It Fl HHHH
-same as
-.Fl H
-but force hostname lookup via DNS.
-.It Fl HHHHH
-same as above, but strip the domain if it matches the dns domain.
-.It Fl HHHHHH
-same as above, but strip the domain regardless.
-.El
+to set the hostname as supplied by the DHCP server. If none supplied, lookup
+the hostname of the leased address in DNS and use that.
.It Fl I , -clientid Ar clientid
Send
.Ar clientid
@@ -349,6 +331,9 @@ Text file that holds the DUID used to identify the host.
Bourne shell file that holds the DHCP values used in configuring the interface.
This path is passed as the first argument to
.Pa @PREFIX@/etc/dhcpcd.sh .
+.It Pa @INFODIR@/dhcpcd- Ns Ar interface Ns .lease
+The actual DHCP message send by the server. We use this when reading the last
+lease and use the files mtime as when it was issued.
.El
.Sh SEE ALSO
.Xr ntp 1 ,