Dynamic host configuration protocol software
Go to file
David Cantrell a1643e997f - Correct %post problems in dhclient package (#495361)
- Read hooks scripts from /etc/dhcp (#495361)
- Update to latest ldap-for-dhcp
2009-04-13 21:56:00 +00:00
.cvsignore - Use LDAP configuration patch from upstream tarball 2009-03-09 23:01:07 +00:00
dhclient-script - Fix problems with dhclient.d script execution (#488864) 2009-03-11 19:12:56 +00:00
dhcp-4.1.0-CLOEXEC.patch - Upgraded to ISC dhcp-4.1.0 2009-01-06 23:50:29 +00:00
dhcp-4.1.0-default-requested-options.patch - Upgraded to ISC dhcp-4.1.0 2009-01-06 23:50:29 +00:00
dhcp-4.1.0-dhclient-anycast.patch - Upgraded to ISC dhcp-4.1.0 2009-01-06 23:50:29 +00:00
dhcp-4.1.0-dhclient-decline-backoff.patch - Upgraded to ISC dhcp-4.1.0 2009-01-06 23:50:29 +00:00
dhcp-4.1.0-dhclient-usage.patch - Upgraded to ISC dhcp-4.1.0 2009-01-06 23:50:29 +00:00
dhcp-4.1.0-errwarn-message.patch - Upgraded to ISC dhcp-4.1.0 2009-01-06 23:50:29 +00:00
dhcp-4.1.0-failover-ports.patch - Upgraded to ISC dhcp-4.1.0 2009-01-06 23:50:29 +00:00
dhcp-4.1.0-garbage-chars.patch - Upgraded to ISC dhcp-4.1.0 2009-01-06 23:50:29 +00:00
dhcp-4.1.0-inherit-leases.patch - Upgraded to ISC dhcp-4.1.0 2009-01-06 23:50:29 +00:00
dhcp-4.1.0-invalid-dhclient-conf.patch - Upgraded to ISC dhcp-4.1.0 2009-01-06 23:50:29 +00:00
dhcp-4.1.0-manpages.patch - Upgraded to ISC dhcp-4.1.0 2009-01-06 23:50:29 +00:00
dhcp-4.1.0-memory.patch - Upgraded to ISC dhcp-4.1.0 2009-01-06 23:50:29 +00:00
dhcp-4.1.0-missing-ipv6-not-fatal.patch - Do not segfault if the ipv6 kernel module is not loaded (#486097) 2009-02-18 21:24:21 +00:00
dhcp-4.1.0-options.patch - Upgraded to ISC dhcp-4.1.0 2009-01-06 23:50:29 +00:00
dhcp-4.1.0-paths.patch - Upgraded to ISC dhcp-4.1.0 2009-01-06 23:50:29 +00:00
dhcp-4.1.0-port-validation.patch - Upgraded to ISC dhcp-4.1.0 2009-01-06 23:50:29 +00:00
dhcp-4.1.0-release-by-ifup.patch - Upgraded to ISC dhcp-4.1.0 2009-01-06 23:50:29 +00:00
dhcp-4.1.0-unicast-bootp.patch - Upgraded to ISC dhcp-4.1.0 2009-01-06 23:50:29 +00:00
dhcp-4.1.0-xen-checksum.patch - Upgraded to ISC dhcp-4.1.0 2009-01-06 23:50:29 +00:00
dhcp.spec - Correct %post problems in dhclient package (#495361) 2009-04-13 21:56:00 +00:00
dhcpd.init - Updated LSB init script header to reference /etc/dhcp/dhcpd.conf 2009-01-13 14:45:32 +00:00
dhcrelay.init - Remove unnecessary success/failure lines in init scripts (#476846) 2008-12-18 22:47:13 +00:00
Makefile makefile update to properly grab makefile.common 2007-10-15 18:41:54 +00:00
README.dhclient.d - Enable dhcpv6 support (#480798) 2009-02-18 04:12:59 +00:00
sources - Use LDAP configuration patch from upstream tarball 2009-03-09 23:01:07 +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>