Dynamic host configuration protocol software
Go to file
Jiří Popelka 21b8c45264 - In dhclient-script check whether bound address passed duplicate address
detection (DAD) (#559147)
- If the bound address failed DAD (is found to be in use on the link), the
    dhcpv6 client sends a Decline message to the server as described in
    section 18.1.7 of RFC-3315 (#559147)
2010-03-24 11:06:45 +00:00
.cvsignore - ldap-for-dhcp-4.1.1-2 (#564810) 2010-02-16 17:48:50 +00:00
10-dhclient - Update NetworkManager dispatcher script to remove case conversion and 2009-08-12 21:04:26 +00:00
56dhclient - Fix 56dhclient so network comes back after suspend/hibernate (#527641) 2009-10-13 10:16:59 +00:00
dhclient-script - In dhclient-script check whether bound address passed duplicate address 2010-03-24 11:06:45 +00:00
dhcp-4.1.1-64_bit_lease_parse.patch - Upgraded to ISC dhcp-4.1.1 2010-01-20 17:07:47 +00:00
dhcp-4.1.1-add_timeout_when_NULL.patch - Upgraded to ISC dhcp-4.1.1 2010-01-20 17:07:47 +00:00
dhcp-4.1.1-capability.patch - Fix ldap patch to explicitly link with liblber (#564810) 2010-02-16 11:06:49 +00:00
dhcp-4.1.1-CLOEXEC.patch - Upgraded to ISC dhcp-4.1.1 2010-01-20 17:07:47 +00:00
dhcp-4.1.1-default-requested-options.patch - Add interface-mtu to the list of default requested DHCP options (#566873) 2010-02-22 16:11:24 +00:00
dhcp-4.1.1-dhclient-anycast.patch - Upgraded to ISC dhcp-4.1.1 2010-01-20 17:07:47 +00:00
dhcp-4.1.1-dhclient-decline-backoff.patch - Fix dhclient-decline-backoff.patch (#562854) 2010-02-08 16:01:45 +00:00
dhcp-4.1.1-dhclient-usage.patch - Upgraded to ISC dhcp-4.1.1 2010-01-20 17:07:47 +00:00
dhcp-4.1.1-errwarn-message.patch - Upgraded to ISC dhcp-4.1.1 2010-01-20 17:07:47 +00:00
dhcp-4.1.1-failover-ports.patch - Upgraded to ISC dhcp-4.1.1 2010-01-20 17:07:47 +00:00
dhcp-4.1.1-garbage-chars.patch - Upgraded to ISC dhcp-4.1.1 2010-01-20 17:07:47 +00:00
dhcp-4.1.1-IFNAMSIZ.patch - Upgraded to ISC dhcp-4.1.1 2010-01-20 17:07:47 +00:00
dhcp-4.1.1-inherit-leases.patch - Upgraded to ISC dhcp-4.1.1 2010-01-20 17:07:47 +00:00
dhcp-4.1.1-invalid-dhclient-conf.patch - Upgraded to ISC dhcp-4.1.1 2010-01-20 17:07:47 +00:00
dhcp-4.1.1-logpid.patch - Upgraded to ISC dhcp-4.1.1 2010-01-20 17:07:47 +00:00
dhcp-4.1.1-manpages.patch - Discard unicast Request/Renew/Release/Decline message (unless we set 2010-03-12 20:18:59 +00:00
dhcp-4.1.1-missing-ipv6-not-fatal.patch - Upgraded to ISC dhcp-4.1.1 2010-01-20 17:07:47 +00:00
dhcp-4.1.1-options.patch - Upgraded to ISC dhcp-4.1.1 2010-01-20 17:07:47 +00:00
dhcp-4.1.1-paths.patch - Upgraded to ISC dhcp-4.1.1 2010-01-20 17:07:47 +00:00
dhcp-4.1.1-release-by-ifup.patch - Upgraded to ISC dhcp-4.1.1 2010-01-20 17:07:47 +00:00
dhcp-4.1.1-sendDecline.patch - In dhclient-script check whether bound address passed duplicate address 2010-03-24 11:06:45 +00:00
dhcp-4.1.1-unicast-bootp.patch - Upgraded to ISC dhcp-4.1.1 2010-01-20 17:07:47 +00:00
dhcp-4.1.1-UseMulticast.patch - Fix UseMulticast.patch to not repeatedly parse dhcpd.conf for unicast 2010-03-19 17:22:59 +00:00
dhcp-4.1.1-xen-checksum.patch - Upgraded to ISC dhcp-4.1.1 2010-01-20 17:07:47 +00:00
dhcp.spec - In dhclient-script check whether bound address passed duplicate address 2010-03-24 11:06:45 +00:00
dhcpd6.init - Hide startup info when starting dhcpd6 service. 2010-01-18 09:13:37 +00:00
dhcpd.init - Added init script to also start dhcpd for IPv6 (#552453) 2010-01-15 12:52:28 +00:00
dhcrelay.init - Hide startup info when starting dhcpd6 service. 2010-01-18 09:13:37 +00:00
Makefile Fix typo that causes a failure to update the common directory. (releng 2009-11-25 23:12:00 +00:00
README.dhclient.d - Enable dhcpv6 support (#480798) 2009-02-18 04:12:59 +00:00
sources - ldap-for-dhcp-4.1.1-2 (#564810) 2010-02-16 17:48:50 +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 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 /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>