Blame SOURCES/0006-Various-man-page-only-fixes.patch

df4638
From 846779467f7393b19e8d206405116e1e26e16efc Mon Sep 17 00:00:00 2001
df4638
From: Pavel Zhukov <pzhukov@redhat.com>
df4638
Date: Thu, 21 Feb 2019 10:25:53 +0100
df4638
Subject: [PATCH 06/26] Various man-page-only fixes
df4638
Cc: pzhukov@redhat.com
df4638
df4638
---
df4638
 client/dhclient-script.8 | 22 +++++++++++++++++++++-
df4638
 client/dhclient.conf.5   | 14 +++++++++++++-
df4638
 common/dhcp-options.5    | 15 +++++++++++++++
df4638
 server/dhcpd.conf.5      | 14 +++++++++-----
df4638
 4 files changed, 58 insertions(+), 7 deletions(-)
df4638
df4638
diff --git a/client/dhclient-script.8 b/client/dhclient-script.8
df4638
index 3553afd..0db5516 100644
df4638
--- a/client/dhclient-script.8
df4638
+++ b/client/dhclient-script.8
df4638
@@ -43,7 +43,7 @@ customizations are needed, they should be possible using the enter and
df4638
 exit hooks provided (see HOOKS for details).   These hooks will allow the
df4638
 user to override the default behaviour of the client in creating a
df4638
 .B /etc/resolv.conf
df4638
-file.
df4638
+file, and to handle DHCP options not handled by default.
df4638
 .PP
df4638
 No standard client script exists for some operating systems, even though
df4638
 the actual client may work, so a pioneering user may well need to create
df4638
@@ -87,6 +87,26 @@ present.   The
df4638
 .B ETCDIR/dhclient-exit-hooks
df4638
 script can modify the valid of exit_status to change the exit status
df4638
 of dhclient-script.
df4638
+.PP
df4638
+Immediately after dhclient brings an interface UP with a new IP address,
df4638
+subnet mask, and routes, in the REBOOT/BOUND states, it will check for the
df4638
+existence of an executable
df4638
+.B ETCDIR/dhclient-up-hooks
df4638
+script, and source it if found. This script can handle DHCP options in
df4638
+the environment that are not handled by default. A per-interface.
df4638
+.B ETCDIR/dhclient-${IF}-up-hooks
df4638
+script will override the generic script and be sourced when interface
df4638
+$IF has been brought up.
df4638
+.PP
df4638
+Immediately before dhclient brings an interface DOWN, removing its IP
df4638
+address, subnet mask, and routes, in the STOP/RELEASE  states, it will
df4638
+check for the existence of an executable
df4638
+.B ETCDIR/dhclient-down-hooks
df4638
+script, and source it if found. This script can handle DHCP options in
df4638
+the environment that are not handled by default. A per-interface
df4638
+.B ETCDIR/dhclient-${IF}-down-hooks
df4638
+script will override the generic script and be sourced when interface
df4638
+$IF is about to be brought down.
df4638
 .SH OPERATION
df4638
 When dhclient needs to invoke the client configuration script, it
df4638
 defines a set of variables in the environment, and then invokes
df4638
diff --git a/client/dhclient.conf.5 b/client/dhclient.conf.5
df4638
index fa3b908..566a881 100644
df4638
--- a/client/dhclient.conf.5
df4638
+++ b/client/dhclient.conf.5
df4638
@@ -228,7 +228,8 @@ responding to the client send the client its values for the specified
df4638
 options.  Only the option names should be specified in the request
df4638
 statement - not option parameters.  By default, the DHCPv4 client
df4638
 requests the subnet-mask, broadcast-address, time-offset, routers,
df4638
-domain-name, domain-name-servers and host-name options while the DHCPv6
df4638
+domain-search, domain-name, domain-name-servers, host-name, nis-domain,
df4638
+nis-servers, ntp-servers and interface-mtu options while the DHCPv6
df4638
 client requests the dhcp6 name-servers and domain-search options.  Note
df4638
 that if you enter a \'request\' statement, you over-ride these defaults
df4638
 and these options will not be requested.
df4638
@@ -735,6 +736,17 @@ broadcast packets transmitted by DHCP clients, but is only useful if you
df4638
 know the DHCP service(s) anycast MAC address prior to configuring your
df4638
 client.  The \fIlink-type\fR and \fImac-address\fR parameters are configured
df4638
 in a similar manner to the \fBhardware\fR statement.
df4638
+.PP
df4638
+ \fBbootp-broadcast-always;\fR
df4638
+.PP
df4638
+The
df4638
+.B bootp-broadcast-always
df4638
+statement instructs dhclient to always set the bootp broadcast flag in
df4638
+request packets, so that servers will always broadcast replies.
df4638
+This is equivalent to supplying the dhclient -B argument, and has
df4638
+the same effect as specifying 'always-broadcast' in the server's dhcpd.conf.
df4638
+This option is provided as an extension to enable dhclient to work
df4638
+on IBM s390 Linux guests.
df4638
 .PP
df4638
 .SH SAMPLE
df4638
 The following configuration file was used on a laptop running NetBSD
df4638
diff --git a/common/dhcp-options.5 b/common/dhcp-options.5
df4638
index 33d4804..d9e1197 100644
df4638
--- a/common/dhcp-options.5
df4638
+++ b/common/dhcp-options.5
df4638
@@ -1068,6 +1068,21 @@ classless IP routing - it does not include a subnet mask.  Since
df4638
 classless IP routing is now the most widely deployed routing standard,
df4638
 this option is virtually useless, and is not implemented by any of the
df4638
 popular DHCP clients, for example the Microsoft DHCP client.
df4638
+.PP
df4638
+NOTE to Fedora dhclient users:
df4638
+.br
df4638
+dhclient-script interprets trailing 0 octets of the target as indicating
df4638
+the subnet class of the route, so for the following static-routes value:
df4638
+.br
df4638
+        option static-routes 172.0.0.0 172.16.2.254,
df4638
+.br
df4638
+                             192.168.0.0 192.168.2.254;
df4638
+.br
df4638
+dhclient-script will create routes:
df4638
+.br
df4638
+        172/8 via 172.16.2.254 dev $interface
df4638
+.br
df4638
+        192.168/16 via 192.168.2.254 dev $interface
df4638
 .RE
df4638
 .PP
df4638
 .nf
df4638
diff --git a/server/dhcpd.conf.5 b/server/dhcpd.conf.5
df4638
index 17330d4..89b5540 100644
df4638
--- a/server/dhcpd.conf.5
df4638
+++ b/server/dhcpd.conf.5
df4638
@@ -527,6 +527,9 @@ pool {
df4638
 };
df4638
 .fi
df4638
 .PP
df4638
+Dynamic BOOTP leases are not compatible with failover, and, as such,
df4638
+you need to disallow BOOTP in pools that you are using failover for.
df4638
+.PP
df4638
 The  server currently  does very  little  sanity checking,  so if  you
df4638
 configure it wrong, it will just  fail in odd ways.  I would recommend
df4638
 therefore that you either do  failover or don't do failover, but don't
df4638
@@ -541,9 +544,9 @@ primary server might look like this:
df4638
 failover peer "foo" {
df4638
   primary;
df4638
   address anthrax.rc.example.com;
df4638
-  port 519;
df4638
+  port 647;
df4638
   peer address trantor.rc.example.com;
df4638
-  peer port 520;
df4638
+  peer port 847;
df4638
   max-response-delay 60;
df4638
   max-unacked-updates 10;
df4638
   mclt 3600;
df4638
@@ -1323,7 +1326,7 @@ the zone containing PTR records - for ISC BIND, something like this:
df4638
 .PP
df4638
 .nf
df4638
 key DHCP_UPDATER {
df4638
-  algorithm HMAC-MD5.SIG-ALG.REG.INT;
df4638
+  algorithm hmac-md5;
df4638
   secret pRP5FapFoJ95JEL06sv4PQ==;
df4638
 };
df4638
 
df4638
@@ -1346,7 +1349,7 @@ dhcpd.conf file:
df4638
 .PP
df4638
 .nf
df4638
 key DHCP_UPDATER {
df4638
-  algorithm HMAC-MD5.SIG-ALG.REG.INT;
df4638
+  algorithm hmac-md5;
df4638
   secret pRP5FapFoJ95JEL06sv4PQ==;
df4638
 };
df4638
 
df4638
@@ -2912,7 +2915,8 @@ statement
df4638
 The \fInext-server\fR statement is used to specify the host address of
df4638
 the server from which the initial boot file (specified in the
df4638
 \fIfilename\fR statement) is to be loaded.  \fIServer-name\fR should
df4638
-be a numeric IP address or a domain name.
df4638
+be a numeric IP address or a domain name.  If no \fInext-server\fR statement
df4638
+applies to a given client, the address 0.0.0.0 is used.
df4638
 .RE
df4638
 .PP
df4638
 The
df4638
-- 
df4638
2.14.5
df4638