Dynamic host configuration protocol software
Go to file
Fedora Release Engineering 21108f4b78 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-01-31 17:10:15 +00:00
.gitignore Update sources to released 4.3.6. Cleanup gitignore 2018-01-10 15:44:50 +01:00
11-dhclient Handle dhcp4-change events properly 2018-06-18 11:04:09 +02:00
12-dhcpd dispatcher.d/12-dhcpd: use reset-failed command 2015-11-24 13:48:51 +01:00
56dhclient 56dhclient: ifcfg file was not sourced (#742482) 2011-09-30 15:59:33 +02:00
dhclient-script Don't use run-parts for hooks discovery (#1558612) 2018-03-21 10:21:01 +01:00
dhcp-4.3.6-bind-9.11.5.patch Compile on BIND 9.11.5 2018-11-12 12:37:11 +01:00
dhcp-4.3.6-isc-util.patch Compile with recent bind includes, that does not include isc/util.h 2018-02-27 11:52:30 +01:00
dhcp-4.3.6-omapi-leak.patch Properly close omapi connection (#1523547) 2017-12-08 11:07:37 +01:00
dhcp-4.3.6-options_overflow.patch Security fix for CVE-2018-5732 CVE-2018-5733 2018-03-01 10:25:39 +01:00
dhcp-4.3.6-reference_count_overflow.patch Security fix for CVE-2018-5732 CVE-2018-5733 2018-03-01 10:25:39 +01:00
dhcp-64_bit_lease_parse.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-add_timeout_when_NULL.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-capability.patch Use bind-export-libs package instead of bind99 2018-02-27 11:48:51 +01:00
dhcp-client-request-release-bind-iface.patch 4.3.4 2016-05-02 15:19:54 +02:00
dhcp-CLOEXEC.patch 4.3.3b1 2015-08-10 12:09:24 +02:00
dhcp-default-requested-options.patch 4.3.4 2016-05-02 15:19:54 +02:00
dhcp-dhclient-decline-backoff.patch New version 4.3.6b1 2017-07-14 16:13:47 +02:00
dhcp-dhclient-options.patch New version 4.3.6b1 2017-07-14 16:13:47 +02:00
dhcp-dhclient-preinit6s.patch 4.3.4 2016-05-02 15:19:54 +02:00
dhcp-duid_uuid.patch Change duid_uuid patch to not use std99 feature (#1488721) 2017-12-20 13:22:48 +01:00
dhcp-duidv4.patch correctly set IB's hw->hlen (#1185075) 2015-02-26 10:16:23 +01:00
dhcp-errwarn-message.patch New version 4.3.6b1 2017-07-14 16:13:47 +02:00
dhcp-garbage-chars.patch 4.3.0rc1 2014-01-29 10:08:47 +01:00
dhcp-handle_ctx_signals.patch proper signal handling with shared context 2017-11-13 09:17:50 +01:00
dhcp-honor-expired.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-iface_hwaddr_discovery.patch Do not fail if interface doesn't have hwaddr (#1632246) 2018-09-24 14:52:31 +02:00
dhcp-improved-xid.patch 4.3.4 2016-05-02 15:19:54 +02:00
dhcp-IPoIB-log-id.patch New version 4.3.6b1 2017-07-14 16:13:47 +02:00
dhcp-lpf-ib.patch 4.3.4 2016-05-02 15:19:54 +02:00
dhcp-manpages.patch 4.3.5b1 2016-09-12 17:24:05 +02:00
dhcp-no-subnet-error2info.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-noreplay.patch readded lost patch 2018-09-24 15:01:32 +02:00
dhcp-option97-pxe-client-id.patch 4.3.5b1 2016-09-12 17:24:05 +02:00
dhcp-paths.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-PPP.patch 4.3.4 2016-05-02 15:19:54 +02:00
dhcp-release-by-ifup.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-remove-bind.patch Include more details on unusable BIND libraries configured by config 2018-02-27 11:52:30 +01:00
dhcp-rfc3442-classless-static-routes.patch patch-fix 2016-05-02 16:01:30 +02:00
dhcp-sd_notify.patch 4.3.4 2016-05-02 15:19:54 +02:00
dhcp-sendDecline.patch 4.3.4 2016-05-02 15:19:54 +02:00
dhcp-sharedlib.patch Use bind-export-libs package instead of bind99 2018-02-27 11:48:51 +01:00
dhcp-stateless-DUID-LLT.patch 4.3.4 2016-05-02 15:19:54 +02:00
dhcp-unicast-bootp.patch 4.3.4 2016-05-02 15:19:54 +02:00
dhcp.spec - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild 2019-01-31 17:10:15 +00:00
dhcpd6.service Add EnvironmentFile parameter to service files 2017-04-04 15:02:44 +02:00
dhcpd.service Add EnvironmentFile parameter to service files 2017-04-04 15:02:44 +02:00
dhcrelay.service Use network-online.target instead of network.target (#1120656) 2014-07-22 19:00:42 +02:00
README.dhclient.d Mentioning the bash script is needed in README.dhclient.d 2016-03-23 10:30:07 +01:00
sources Update sources to released 4.3.6. Cleanup gitignore 2018-01-10 15:44:50 +01:00

The /etc/dhcp/dhclient.d directory allows other packages and system
administrators to create application-specific option handlers for dhclient.

When dhclient is run, any option listed in the dhcp-options(5) man page can
be requested.  dhclient-script does not handle every option available
because doing so would make the script unmaintainable as the components
using those options might change over time.  The knowledge of how to handle
those options should be under the responsibility of the package maintainer
for that component (e.g., NTP options belong in a handler in the ntp
package).

To make maintenance easier, application specific DHCP options can be handled
by creating a bash script with two functions and placing it in /etc/dhcp/dhclient.d

The script must follow a specific form:

(1) The script must be named NAME.sh.  NAME can be anything, but it makes
    sense to name it for the service it handles.  e.g., ntp.sh

(2) The script must provide a NAME_config() function to read the options and
    do whatever it takes to put those options in place.

(3) The script must provide a NAME_restore() function to restore original
    configuration state when dhclient stops.

(4) The script must be 'chmod +x' or dhclient-script will ignore it.

The scripts execute in the same environment as dhclient-script.  That means
all of the functions and variables available to it are available to your
NAME.sh script.  Things of note:

    ${SAVEDIR} is where original configuration files are saved.  Save your
    original configuration files here before you take the DHCP provided
    values and generate new files.

    Variables set in /etc/sysconfig/network, /etc/sysconfig/networking/network,
    and /etc/sysconfig/network-scripts/ifcfg-$interface are available to
    you.

See the scripts in /etc/dhcp/dhclient.d for examples.

NOTE:  Do not use functions defined in /usr/sbin/dhclient-script.  Consider
dhclient-script a black box.  This script may change over time, so the
dhclient.d scripts should not be using functions defined in it.

-- 
David Cantrell <dcantrell@redhat.com>