dhcp/SOURCES
2023-05-17 01:17:42 +00:00
..
11-dhclient import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
56dhclient import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhclient-script import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-4.2.5-expiry_before_renewal_v2.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-4.3.6-isc-util.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-4.3.6-omapi-leak.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-4.3.6-options_overflow.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-4.3.6-reference_count_overflow.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-64_bit_lease_parse.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-add_timeout_when_NULL.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-bind-9.11.patch import dhcp-4.3.6-40.el8 2021-09-09 15:59:52 +00:00
dhcp-capability.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-client-request-release-bind-iface.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-CLOEXEC.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-CVE-2022-2928.patch import dhcp-4.3.6-49.el8 2023-05-17 01:17:42 +00:00
dhcp-CVE-2022-2929.patch import dhcp-4.3.6-49.el8 2023-05-17 01:17:42 +00:00
dhcp-default-requested-options.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-detect-system-time-jumps.patch import dhcp-4.3.6-40.el8 2021-09-09 15:59:52 +00:00
dhcp-dhclient_ipv6_prefix.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-dhclient-decline-backoff.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-dhclient-options.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-dhclient-preinit6s.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-dhcp6-vendor-opts.patch import dhcp-4.3.6-48.el8_7.1 2023-01-12 09:29:02 +00:00
dhcp-duid_uuid.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-duidv4.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-errwarn-message.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-garbage-chars.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-handle_ctx_signals.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-honor-expired.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-improved-xid.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-IPoIB-log-id.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-isc_heap_delete.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-key_algorithm.patch import dhcp-4.3.6-44.el8 2021-09-09 15:59:57 +00:00
dhcp-lpf-ib.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-manpages.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-no-subnet-error2info.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-omshell-hmac-sha512-support.patch import dhcp-4.3.6-48.el8 2022-11-08 12:13:18 +00:00
dhcp-option97-pxe-client-id.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-paths.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-PPP.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-release-by-ifup.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-remove-bind.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-replay_file_limit.patch import dhcp-4.3.6-40.el8 2021-09-09 15:59:52 +00:00
dhcp-rfc3442-classless-static-routes.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-sd_notify.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-sendDecline.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-sharedlib.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-stateless-DUID-LLT.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcp-statement_parser.patch import dhcp-4.3.6-44.el8_4.1 2021-09-09 16:00:00 +00:00
dhcp-unicast-bootp.patch import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcpd6.service import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcpd.service import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
dhcrelay.service import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00:00
README.dhclient.d import dhcp-4.3.6-34.el8 2021-09-09 15:59:48 +00: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>