Dynamic host configuration protocol software
Go to file
2014-03-07 15:53:53 +01:00
.gitignore 4.3.0 2014-02-04 09:51:31 +01:00
11-dhclient Fix 11-dhclient to export variables (#702735) 2011-05-09 14:32:51 +02:00
12-dhcpd decrease the sleep in 12-dhcpd due to timeout (#1003695#8) 2013-09-27 10:43:27 +02:00
56dhclient 56dhclient: ifcfg file was not sourced (#742482) 2011-09-30 15:59:33 +02:00
dhclient-script dhclient-script: don't flush all addresses, just the used one 2014-02-19 18:04:49 +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 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-CLOEXEC.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-conflex-do-forward-updates.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-default-requested-options.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-dhclient-decline-backoff.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-dhclient-decline-onetry.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-dhclient-options.patch dhclient: rename our -I option to -C as upstream now uses -I 2014-02-19 19:02:32 +01:00
dhcp-duidv4.patch IPoIB: add GUID/DUID to dhcpd logs (#1064416) 2014-02-18 16:26:06 +01:00
dhcp-dupl-key.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-errwarn-message.patch 4.3.0b1 2014-01-21 10:34:27 +01:00
dhcp-failOverPeer.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-ffff-checksum.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-garbage-chars.patch 4.3.0rc1 2014-01-29 10:08:47 +01:00
dhcp-getifaddrs.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-gpxe-cid.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-honor-expired.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-improved-xid.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-interval.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-IPoIB-log-id.patch IPoIB: add GUID/DUID to dhcpd logs (#1064416) 2014-02-18 16:26:06 +01:00
dhcp-log_perror.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-logpid.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-lpf-ib.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-manpages.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-next-server.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-no-subnet-error2info.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-omapi-leak.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-paranoia.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01: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.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-range6.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01: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 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-remove-dst.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-retransmission.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-rfc3442-classless-static-routes.patch 4.3.0rc1 2014-01-29 10:08:47 +01:00
dhcp-sendDecline.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-sharedlib.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-systemtap.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-unicast-bootp.patch 4.3.0a1: requires bind-9.9.5 2013-12-20 16:19:14 +01:00
dhcp-UseMulticast.patch make it actually build 2014-01-07 13:03:41 +01:00
dhcp-xen-checksum.patch 4.3.0rc1 2014-01-29 10:08:47 +01:00
dhcp.spec rename doc subpackage do devel-doc 2014-03-07 15:53:53 +01:00
dhcpd6.service add After=time-sync.target to dhcpd[6].service (#878293) 2012-11-26 12:26:42 +01:00
dhcpd.service add After=time-sync.target to dhcpd[6].service (#878293) 2012-11-26 12:26:42 +01:00
dhcrelay.service SystemD unit files don't use Environment files any more (#850558) 2012-08-24 13:49:51 +02:00
README.dhclient.d move dhclient & dhclient-script from /sbin to /usr/sbin 2012-04-02 12:05:14 +02:00
sources 4.3.0 2014-02-04 09:51:31 +01:00
tap_all.stp SystemTap support: spec file change, some dummy probes, tapset, simple script 2011-09-21 15:40:15 +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 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>