Dynamic host configuration protocol software
Go to file
2024-04-29 15:42:02 +00:00
plans Adding fmf plan 2022-01-20 11:27:52 +01:00
11-dhclient Handle dhcp4-change events properly 2018-06-18 11:04:09 +02:00
56dhclient 56dhclient: ifcfg file was not sourced (#742482) 2011-09-30 15:59:33 +02:00
0017-Send-unicast-request-release-via-correct-interface.patch New version 4.4.3 2022-03-10 18:06:31 +01:00
0018-No-subnet-declaration-for-iface-should-be-info-not-e.patch New version 4.4.3 2022-03-10 18:06:31 +01:00
0019-dhclient-write-DUID_LLT-even-in-stateless-mode-11563.patch New version 4.4.3 2022-03-10 18:06:31 +01:00
0020-Discover-all-hwaddress-for-xid-uniqueness.patch New version 4.4.3 2022-03-10 18:06:31 +01:00
0021-Load-leases-DB-in-non-replay-mode-only.patch New version 4.4.3 2022-03-10 18:06:31 +01:00
0022-dhclient-make-sure-link-local-address-is-ready-in-st.patch New version 4.4.3 2022-03-10 18:06:31 +01:00
0023-option-97-pxe-client-id.patch New version 4.4.3 2022-03-10 18:06:31 +01:00
0024-Detect-system-time-changes.patch New version 4.4.3 2022-03-10 18:06:31 +01:00
0025-bind-Detect-system-time-changes.patch New version 4.4.3 2022-03-10 18:06:31 +01:00
0026-Add-dhclient-5-B-option-description.patch New version 4.4.3 2022-03-10 18:06:31 +01:00
0027-Add-missed-sd-notify-patch-to-manage-dhcpd-with-syst.patch New version 4.4.3 2022-03-10 18:06:31 +01:00
0028-Use-system-getaddrinfo-for-dhcp.patch New version 4.4.3 2022-03-10 18:06:31 +01:00
0030-bind-configure-c99.patch Port bind9 configure script to C99 2023-04-24 14:59:32 +02:00
ci.fmf ci.fmf to separe more plans 2022-01-25 10:16:39 +01:00
codesign2021.txt Update to 4.4.2-P1 2021-09-08 23:04:54 +02:00
CVE-2021-25220.patch Fix for CVE-2021-25220 2022-04-12 13:56:01 +02:00
dead.package dhcp package is retired on branch c10s for CS-2097 2024-04-29 15:42:02 +00:00
dhclient-script Don't use run-parts for hooks discovery (#1558612) 2018-03-21 10:21:01 +01:00
dhcp.spec Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-24 09:22:32 +00:00
dhcp.sysusers Fix order of user and group in sysusers file 2022-11-03 08:09:53 +01: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
gating.yaml Adding fmf plan 2022-01-20 11:27:52 +01:00
README.dhclient.d Mentioning the bash script is needed in README.dhclient.d 2016-03-23 10:30:07 +01:00
rpminspect.yaml Mark dhcp (sub)packages as deprecated 2023-11-21 10:02:24 +01:00
sources New version 4.4.3-P1 (rhbz#2132240) 2022-10-10 10:53:30 +02: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>