Dynamic host configuration protocol software
Go to file
2010-12-21 14:03:52 +01:00
.gitignore 4.2.0-P2: fix for CVE-2010-3616 (#662326) 2010-12-13 12:08:24 +01:00
11-dhclient 4.2.0-P2: fix for CVE-2010-3616 (#662326) 2010-12-13 12:08:24 +01:00
12-dhcpd 4.2.0-P2: fix for CVE-2010-3616 (#662326) 2010-12-13 12:08:24 +01:00
56dhclient 4.2.0-P2: fix for CVE-2010-3616 (#662326) 2010-12-13 12:08:24 +01:00
dhclient-script 4.2.0-P2: fix for CVE-2010-3616 (#662326) 2010-12-13 12:08:24 +01:00
dhcp420-rh637017.patch Fire away bundled BIND source. 2010-10-20 15:01:14 +02:00
dhcp420-sharedlib.patch Build dhcp's libraries as shared libs instead of static libs. 2010-10-20 15:03:31 +02:00
dhcp-4.2.0-add_timeout_when_NULL.patch - 4.2.0: includes ldap-for-dhcp 2010-07-21 16:56:35 +00:00
dhcp-4.2.0-capability.patch - 4.2.0: includes ldap-for-dhcp 2010-07-21 16:56:35 +00:00
dhcp-4.2.0-CLOEXEC.patch - 4.2.0: includes ldap-for-dhcp 2010-07-21 16:56:35 +00:00
dhcp-4.2.0-default-requested-options.patch - 4.2.0: includes ldap-for-dhcp 2010-07-21 16:56:35 +00:00
dhcp-4.2.0-dhclient-decline-backoff.patch - 4.2.0: includes ldap-for-dhcp 2010-07-21 16:56:35 +00:00
dhcp-4.2.0-dhclient-usage.patch - 4.2.0: includes ldap-for-dhcp 2010-07-21 16:56:35 +00:00
dhcp-4.2.0-errwarn-message.patch - 4.2.0: includes ldap-for-dhcp 2010-07-21 16:56:35 +00:00
dhcp-4.2.0-garbage-chars.patch - 4.2.0: includes ldap-for-dhcp 2010-07-21 16:56:35 +00:00
dhcp-4.2.0-honor-expired.patch Check lease for unexpired addresses prior to confirming it (#585418) 2010-10-07 14:00:53 +02:00
dhcp-4.2.0-IFNAMSIZ.patch - 4.2.0: includes ldap-for-dhcp 2010-07-21 16:56:35 +00:00
dhcp-4.2.0-inherit-leases.patch - 4.2.0: includes ldap-for-dhcp 2010-07-21 16:56:35 +00:00
dhcp-4.2.0-initialization-delay.patch - 4.2.0: includes ldap-for-dhcp 2010-07-21 16:56:35 +00:00
dhcp-4.2.0-invalid-dhclient-conf.patch - 4.2.0: includes ldap-for-dhcp 2010-07-21 16:56:35 +00:00
dhcp-4.2.0-ldap.patch - 4.2.0: includes ldap-for-dhcp 2010-07-21 16:56:35 +00:00
dhcp-4.2.0-logpid.patch - 4.2.0: includes ldap-for-dhcp 2010-07-21 16:56:35 +00:00
dhcp-4.2.0-manpages.patch - 4.2.0: includes ldap-for-dhcp 2010-07-21 16:56:35 +00:00
dhcp-4.2.0-missing-ipv6-not-fatal.patch - 4.2.0: includes ldap-for-dhcp 2010-07-21 16:56:35 +00:00
dhcp-4.2.0-noprefixavail.patch Server was ignoring client's Solicit (with preference included) (#634842) 2010-10-13 12:12:39 +02:00
dhcp-4.2.0-options.patch - 4.2.0: includes ldap-for-dhcp 2010-07-21 16:56:35 +00:00
dhcp-4.2.0-P1-64_bit_lease_parse.patch 4.2.0-P2: fix for CVE-2010-3616 (#662326) 2010-12-13 12:08:24 +01:00
dhcp-4.2.0-parse_date.patch Fix parsing of lease file dates & times on 64-bit platforms (#628258) 2010-09-01 13:22:34 +02:00
dhcp-4.2.0-paths.patch - 4.2.0: includes ldap-for-dhcp 2010-07-21 16:56:35 +00:00
dhcp-4.2.0-PIE-RELRO.patch Improve PIE patch (build libraries with -fpic, not with -fpie). 2010-10-20 14:59:16 +02:00
dhcp-4.2.0-PPP.patch DHCPv6 over PPP support (#626514) 2010-11-09 17:01:11 +01:00
dhcp-4.2.0-release6-elapsed.patch - 4.2.0: includes ldap-for-dhcp 2010-07-21 16:56:35 +00:00
dhcp-4.2.0-release-by-ifup.patch - 4.2.0: includes ldap-for-dhcp 2010-07-21 16:56:35 +00:00
dhcp-4.2.0-retransmission.patch - 4.2.0: includes ldap-for-dhcp 2010-07-21 16:56:35 +00:00
dhcp-4.2.0-rfc3442-classless-static-routes.patch 4.2.0-P2: fix for CVE-2010-3616 (#662326) 2010-12-13 12:08:24 +01:00
dhcp-4.2.0-sendDecline.patch - 4.2.0: includes ldap-for-dhcp 2010-07-21 16:56:35 +00:00
dhcp-4.2.0-unicast-bootp.patch - 4.2.0: includes ldap-for-dhcp 2010-07-21 16:56:35 +00:00
dhcp-4.2.0-UseMulticast.patch - 4.2.0: includes ldap-for-dhcp 2010-07-21 16:56:35 +00:00
dhcp-4.2.0-xen-checksum.patch - 4.2.0: includes ldap-for-dhcp 2010-07-21 16:56:35 +00:00
dhcp.spec Default /etc/dhcp/dhclient.conf (send dhcp-client-identifier) (#560361) 2010-12-21 14:03:52 +01:00
dhcpd6.init * Fri Jul 30 2010 Jiri Popelka <jpopelka@redhat.com> - 12:4.2.0-2 2010-08-02 11:33:46 +02:00
dhcpd6.service Porting dhcpd/dhcpd6/dhcrelay services from SysV to Systemd 2010-12-07 15:32:39 +01:00
dhcpd.init - Added init script to also start dhcpd for IPv6 (#552453) 2010-01-15 12:52:28 +00:00
dhcpd.service Porting dhcpd/dhcpd6/dhcrelay services from SysV to Systemd 2010-12-07 15:32:39 +01:00
dhcrelay.init Porting dhcpd/dhcpd6/dhcrelay services from SysV to Systemd 2010-12-07 15:32:39 +01:00
dhcrelay.service Porting dhcpd/dhcpd6/dhcrelay services from SysV to Systemd 2010-12-07 15:32:39 +01:00
README.dhclient.d - Enable dhcpv6 support (#480798) 2009-02-18 04:12:59 +00:00
sources 4.2.0-P2: fix for CVE-2010-3616 (#662326) 2010-12-13 12:08:24 +01: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>