Finish the update to wide-dhcp so that it compiles with the

new interface stuff and if_var.h

Closes pr3161

Submitted by:	MIHIRA Yoshiro <sanpei@yy.cs.keio.ac.jp>
Obtained from:  pr3161
This commit is contained in:
Brian Somers 1997-04-04 02:37:13 +00:00
parent b98a2e6435
commit 38b745529b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=6129
4 changed files with 106 additions and 0 deletions

View file

@ -0,0 +1,20 @@
--- db_sample.bak/dhcpdb.pool Thu Jul 21 19:39:46 1994
+++ db_sample/dhcpdb.pool Sun Mar 23 00:07:21 1997
@@ -2,12 +2,14 @@
global:!snmk=255.255.255.224:tmof=32400:
# define different master entries for each subnet. . .
+# `dnsv' is IP address of DNS server.
+# `dnsd' is domain name of your domain.
subnet30:tblc=global:rout=133.4.30.1:dht1=500:dht2=850:\
- :brda=133.4.30.31:
+ :brda=133.4.30.31:dnsv=133.4.30.10:dnsd=you.domain.name:
# entries for manual allocation (DHCP, BOOTP)
-3001: :ipad=133.4.30.1:tblc=subnet30:clid="1:0x0080c75fdc03":
-3002: :ipad=133.4.30.2:tblc=subnet30:clid="1:0x08004600e5d5":
+3001: :ipad=133.4.30.1:hstn="yourclient1.host.name":tblc=subnet30:clid="1:0x0080c75fdc03":
+3002: :ipad=133.4.30.2:hstn="yourclient2.host.name":tblc=subnet30:clid="1:0x08004600e5d5":
# entries for dynamic allocation (DHCP)
3003: :ipad=133.4.30.3:dfll=3600:maxl=7200:tblc=subnet30:

View file

@ -0,0 +1,33 @@
--- client/dhcpc.8.orig Tue Sep 12 13:54:16 1995
+++ client/dhcpc.8 Thu Mar 27 14:07:16 1997
@@ -5,7 +5,7 @@
.SH SYNOPSIS
.B dhcpc
[
-.B \-d
+.B \-drn
]
.I interface
.SH DESCRIPTION
@@ -36,6 +36,21 @@
option is specified,
.B dhcpc
runs in foreground and debugging mode.
+.LP
+If the
+.B \-r
+option is specified, and if your DHCP server supplies the DNS address,
+.B dhcpc
+overwrites "/etc/resolv.conf" with supplied address.
+.LP
+If the
+.B \-n
+option is specified, and if your DHCP server supplies the hostname of
+the client,
+.B dhcpc
+call
+.B sethostname(3)
+with supplied name.
.LP
The DHCP client can verify whether its assigned information is still
valid at any time.

View file

@ -0,0 +1,20 @@
--- db_sample.bak/dhcpdb.pool Thu Jul 21 19:39:46 1994
+++ db_sample/dhcpdb.pool Sun Mar 23 00:07:21 1997
@@ -2,12 +2,14 @@
global:!snmk=255.255.255.224:tmof=32400:
# define different master entries for each subnet. . .
+# `dnsv' is IP address of DNS server.
+# `dnsd' is domain name of your domain.
subnet30:tblc=global:rout=133.4.30.1:dht1=500:dht2=850:\
- :brda=133.4.30.31:
+ :brda=133.4.30.31:dnsv=133.4.30.10:dnsd=you.domain.name:
# entries for manual allocation (DHCP, BOOTP)
-3001: :ipad=133.4.30.1:tblc=subnet30:clid="1:0x0080c75fdc03":
-3002: :ipad=133.4.30.2:tblc=subnet30:clid="1:0x08004600e5d5":
+3001: :ipad=133.4.30.1:hstn="yourclient1.host.name":tblc=subnet30:clid="1:0x0080c75fdc03":
+3002: :ipad=133.4.30.2:hstn="yourclient2.host.name":tblc=subnet30:clid="1:0x08004600e5d5":
# entries for dynamic allocation (DHCP)
3003: :ipad=133.4.30.3:dfll=3600:maxl=7200:tblc=subnet30:

View file

@ -0,0 +1,33 @@
--- client/dhcpc.8.orig Tue Sep 12 13:54:16 1995
+++ client/dhcpc.8 Thu Mar 27 14:07:16 1997
@@ -5,7 +5,7 @@
.SH SYNOPSIS
.B dhcpc
[
-.B \-d
+.B \-drn
]
.I interface
.SH DESCRIPTION
@@ -36,6 +36,21 @@
option is specified,
.B dhcpc
runs in foreground and debugging mode.
+.LP
+If the
+.B \-r
+option is specified, and if your DHCP server supplies the DNS address,
+.B dhcpc
+overwrites "/etc/resolv.conf" with supplied address.
+.LP
+If the
+.B \-n
+option is specified, and if your DHCP server supplies the hostname of
+the client,
+.B dhcpc
+call
+.B sethostname(3)
+with supplied name.
.LP
The DHCP client can verify whether its assigned information is still
valid at any time.