From 177b938ab7c92b3ee6217161e4ab03609f98a6c1 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 15 Jun 2013 14:48:09 +0200 Subject: [PATCH] dhcp: Update to 4.2.5. --- dhcp/dhcp.nm | 38 ++-- .../dhcp-4.2.0-missing-ipv6-not-fatal.patch | 40 ---- dhcp/patches/dhcp-4.2.2-CLOEXEC.patch | 21 -- dhcp/patches/dhcp-4.2.2-dhclient-usage.patch | 14 -- dhcp/patches/dhcp-4.2.2-sharedlib.patch | 94 -------- dhcp/patches/dhcp-4.2.3-paranoia.patch | 49 ----- ...-dhclient6-leases_semicolon_expected.patch | 41 ---- ...-4.2.4-P2-conflex-do-forward-updates.patch | 12 ++ dhcp/patches/dhcp-4.2.4-P2-dupl-key.patch | 13 ++ ...atch => dhcp-4.2.4-dhclient-options.patch} | 156 ++++++++++++-- dhcp/patches/dhcp-4.2.4-getifaddrs.patch | 42 ++-- dhcp/patches/dhcp-4.2.4-paths.patch | 12 ++ ...p-4.2.4-PPP.patch => dhcp-4.2.5-PPP.patch} | 2 +- ...4-lpf-ib.patch => dhcp-4.2.5-lpf-ib.patch} | 56 +++-- ...npages.patch => dhcp-4.2.5-manpages.patch} | 157 +++----------- dhcp/patches/dhcp-4.2.5-next-server.patch | 72 +++++++ dhcp/patches/dhcp-4.2.5-paranoia.patch | 202 ++++++++++++++++++ dhcp/patches/dhcp-4.2.5-range6.patch | 42 ++++ ...ind.patch => dhcp-4.2.5-remove-bind.patch} | 87 ++++---- ...2.5-rfc3442-classless-static-routes.patch} | 92 ++++---- ...970-dhcpv6-options-for-network-boot.patch} | 28 +-- ...ine.patch => dhcp-4.2.5-sendDecline.patch} | 22 +- dhcp/patches/dhcp-4.2.5-sharedlib.patch | 120 +++++++++++ ...emtap.patch => dhcp-4.2.5-systemtap.patch} | 166 +++++++------- dhcp/patches/dhcp-4.2.5b1-atf-pkgconfig.patch | 23 ++ 25 files changed, 951 insertions(+), 650 deletions(-) delete mode 100644 dhcp/patches/dhcp-4.2.0-missing-ipv6-not-fatal.patch delete mode 100644 dhcp/patches/dhcp-4.2.2-dhclient-usage.patch delete mode 100644 dhcp/patches/dhcp-4.2.2-sharedlib.patch delete mode 100644 dhcp/patches/dhcp-4.2.3-paranoia.patch delete mode 100644 dhcp/patches/dhcp-4.2.4-P1-dhclient6-leases_semicolon_expected.patch create mode 100644 dhcp/patches/dhcp-4.2.4-P2-conflex-do-forward-updates.patch create mode 100644 dhcp/patches/dhcp-4.2.4-P2-dupl-key.patch rename dhcp/patches/{dhcp-4.2.4-options.patch => dhcp-4.2.4-dhclient-options.patch} (72%) rename dhcp/patches/{dhcp-4.2.4-PPP.patch => dhcp-4.2.5-PPP.patch} (99%) rename dhcp/patches/{dhcp-4.2.4-lpf-ib.patch => dhcp-4.2.5-lpf-ib.patch} (89%) rename dhcp/patches/{dhcp-4.2.1-manpages.patch => dhcp-4.2.5-manpages.patch} (54%) create mode 100644 dhcp/patches/dhcp-4.2.5-next-server.patch create mode 100644 dhcp/patches/dhcp-4.2.5-paranoia.patch create mode 100644 dhcp/patches/dhcp-4.2.5-range6.patch rename dhcp/patches/{dhcp-4.2.2-remove-bind.patch => dhcp-4.2.5-remove-bind.patch} (51%) rename dhcp/patches/{dhcp-4.2.4-rfc3442-classless-static-routes.patch => dhcp-4.2.5-rfc3442-classless-static-routes.patch} (79%) rename dhcp/patches/{dhcp-4.2.3-P2-rfc5970-dhcpv6-options-for-network-boot.patch => dhcp-4.2.5-rfc5970-dhcpv6-options-for-network-boot.patch} (72%) rename dhcp/patches/{dhcp-4.2.1-sendDecline.patch => dhcp-4.2.5-sendDecline.patch} (89%) create mode 100644 dhcp/patches/dhcp-4.2.5-sharedlib.patch rename dhcp/patches/{dhcp-4.2.4-systemtap.patch => dhcp-4.2.5-systemtap.patch} (77%) create mode 100644 dhcp/patches/dhcp-4.2.5b1-atf-pkgconfig.patch diff --git a/dhcp/dhcp.nm b/dhcp/dhcp.nm index 407873bc4..1d15f651f 100644 --- a/dhcp/dhcp.nm +++ b/dhcp/dhcp.nm @@ -4,8 +4,8 @@ ############################################################################### name = dhcp -version = 4.2.4 -release = 2 +version = 4.2.5 +release = 1 groups = Networking/Daemons url = http://isc.org/products/DHCP/ @@ -24,45 +24,47 @@ source_dl = ftp://ftp.isc.org/isc/dhcp/%{version}/ # Apply patches in a special order. patches = \ - dhcp-4.2.2-remove-bind.patch \ + dhcp-4.2.5-remove-bind.patch \ dhcp-4.2.4-P1-remove-dst.patch \ dhcp-4.2.0-errwarn-message.patch \ - dhcp-4.2.4-options.patch \ + dhcp-4.2.4-dhclient-options.patch \ dhcp-4.2.0-release-by-ifup.patch \ dhcp-4.2.0-dhclient-decline-backoff.patch \ dhcp-4.2.4-unicast-bootp.patch \ - dhcp-4.2.2-dhclient-usage.patch \ dhcp-4.2.0-default-requested-options.patch \ dhcp-4.2.2-xen-checksum.patch \ - dhcp-4.2.1-manpages.patch \ + dhcp-4.2.5-manpages.patch \ dhcp-4.2.4-paths.patch \ dhcp-4.2.2-CLOEXEC.patch \ dhcp-4.2.0-garbage-chars.patch \ - dhcp-4.2.0-missing-ipv6-not-fatal.patch \ dhcp-4.2.0-add_timeout_when_NULL.patch \ dhcp-4.2.4-64_bit_lease_parse.patch \ dhcp-4.2.2-capability.patch \ dhcp-4.2.0-logpid.patch \ dhcp-4.2.4-UseMulticast.patch \ - dhcp-4.2.1-sendDecline.patch \ + dhcp-4.2.5-sendDecline.patch \ dhcp-4.2.1-retransmission.patch \ - dhcp-4.2.4-rfc3442-classless-static-routes.patch \ + dhcp-4.2.5-rfc3442-classless-static-routes.patch \ dhcp-4.2.0-honor-expired.patch \ - dhcp-4.2.2-sharedlib.patch \ - dhcp-4.2.4-PPP.patch \ - dhcp-4.2.3-paranoia.patch \ - dhcp-4.2.4-lpf-ib.patch \ + dhcp-4.2.5-sharedlib.patch \ + dhcp-4.2.5-PPP.patch \ + dhcp-4.2.5-paranoia.patch \ + dhcp-4.2.5-lpf-ib.patch \ dhcp-4.2.4-improved-xid.patch \ dhcp-4.2.2-gpxe-cid.patch \ - dhcp-4.2.4-systemtap.patch \ + dhcp-4.2.5-systemtap.patch \ dhcp-4.2.3-dhclient-decline-onetry.patch \ dhcp-4.2.3-P2-log_perror.patch \ dhcp-4.2.4-getifaddrs.patch \ dhcp-4.2.4-send_release.patch \ - dhcp-4.2.3-P2-rfc5970-dhcpv6-options-for-network-boot.patch \ - dhcp-4.2.4-failOverPeer.patch \ - dhcp-4.2.4-P1-dhclient6-leases_semicolon_expected.patch \ - dhcp-4.2.4-P1-interval.patch + dhcp-4.2.5-rfc5970-dhcpv6-options-for-network-boot.patch \ + dhcp-4.2.4-failOverPeer.patch \ + dhcp-4.2.5b1-atf-pkgconfig.patch \ + dhcp-4.2.4-P1-interval.patch \ + dhcp-4.2.4-P2-conflex-do-forward-updates.patch \ + dhcp-4.2.4-P2-dupl-key.patch \ + dhcp-4.2.5-range6.patch \ + dhcp-4.2.5-next-server.patch build requires diff --git a/dhcp/patches/dhcp-4.2.0-missing-ipv6-not-fatal.patch b/dhcp/patches/dhcp-4.2.0-missing-ipv6-not-fatal.patch deleted file mode 100644 index b60411545..000000000 --- a/dhcp/patches/dhcp-4.2.0-missing-ipv6-not-fatal.patch +++ /dev/null @@ -1,40 +0,0 @@ -diff -up dhcp-4.2.0/common/discover.c.noipv6 dhcp-4.2.0/common/discover.c ---- dhcp-4.2.0/common/discover.c.noipv6 2010-07-21 14:31:13.000000000 +0200 -+++ dhcp-4.2.0/common/discover.c 2010-07-21 16:04:57.000000000 +0200 -@@ -443,7 +443,7 @@ begin_iface_scan(struct iface_conf_list - } - - #ifdef DHCPv6 -- if (local_family == AF_INET6) { -+ if ((local_family == AF_INET6) && !access("/proc/net/if_inet6", R_OK)) { - ifaces->fp6 = fopen("/proc/net/if_inet6", "re"); - if (ifaces->fp6 == NULL) { - log_error("Error opening '/proc/net/if_inet6' to " -@@ -454,6 +454,8 @@ begin_iface_scan(struct iface_conf_list - ifaces->fp = NULL; - return 0; - } -+ } else { -+ ifaces->fp6 = NULL; - } - #endif - -@@ -721,7 +723,7 @@ next_iface(struct iface_info *info, int - return 1; - } - #ifdef DHCPv6 -- if (!(*err)) { -+ if (!(*err) && ifaces->fp6) { - if (local_family == AF_INET6) - return next_iface6(info, err, ifaces); - } -@@ -740,7 +742,8 @@ end_iface_scan(struct iface_conf_list *i - ifaces->sock = -1; - #ifdef DHCPv6 - if (local_family == AF_INET6) { -- fclose(ifaces->fp6); -+ if (ifaces->fp6) -+ fclose(ifaces->fp6); - ifaces->fp6 = NULL; - } - #endif diff --git a/dhcp/patches/dhcp-4.2.2-CLOEXEC.patch b/dhcp/patches/dhcp-4.2.2-CLOEXEC.patch index 1198f7733..1f4538e09 100644 --- a/dhcp/patches/dhcp-4.2.2-CLOEXEC.patch +++ b/dhcp/patches/dhcp-4.2.2-CLOEXEC.patch @@ -133,27 +133,6 @@ diff -up dhcp-4.2.2b1/common/bpf.c.cloexec dhcp-4.2.2b1/common/bpf.c if (sock < 0) { if (errno == EBUSY) { continue; -diff -up dhcp-4.2.2b1/common/discover.c.cloexec dhcp-4.2.2b1/common/discover.c ---- dhcp-4.2.2b1/common/discover.c.cloexec 2011-06-27 18:18:20.000000000 +0200 -+++ dhcp-4.2.2b1/common/discover.c 2011-07-01 14:13:31.031887673 +0200 -@@ -421,7 +421,7 @@ begin_iface_scan(struct iface_conf_list - int len; - int i; - -- ifaces->fp = fopen("/proc/net/dev", "r"); -+ ifaces->fp = fopen("/proc/net/dev", "re"); - if (ifaces->fp == NULL) { - log_error("Error opening '/proc/net/dev' to list interfaces"); - return 0; -@@ -456,7 +456,7 @@ begin_iface_scan(struct iface_conf_list - - #ifdef DHCPv6 - if (local_family == AF_INET6) { -- ifaces->fp6 = fopen("/proc/net/if_inet6", "r"); -+ ifaces->fp6 = fopen("/proc/net/if_inet6", "re"); - if (ifaces->fp6 == NULL) { - log_error("Error opening '/proc/net/if_inet6' to " - "list IPv6 interfaces; %m"); diff -up dhcp-4.2.2b1/common/dlpi.c.cloexec dhcp-4.2.2b1/common/dlpi.c --- dhcp-4.2.2b1/common/dlpi.c.cloexec 2011-07-01 14:13:30.977887712 +0200 +++ dhcp-4.2.2b1/common/dlpi.c 2011-07-01 14:13:31.032887673 +0200 diff --git a/dhcp/patches/dhcp-4.2.2-dhclient-usage.patch b/dhcp/patches/dhcp-4.2.2-dhclient-usage.patch deleted file mode 100644 index 0d4194396..000000000 --- a/dhcp/patches/dhcp-4.2.2-dhclient-usage.patch +++ /dev/null @@ -1,14 +0,0 @@ -diff -up dhcp-4.2.2b1/client/dhclient.c.usage dhcp-4.2.2b1/client/dhclient.c ---- dhcp-4.2.2b1/client/dhclient.c.usage 2011-07-01 13:55:16.000000000 +0200 -+++ dhcp-4.2.2b1/client/dhclient.c 2011-07-01 13:58:55.243800602 +0200 -@@ -1047,6 +1047,10 @@ static void usage() - " [-s server-addr] [-cf config-file] " - "[-lf lease-file]\n" - " [-pf pid-file] [--no-pid] [-e VAR=val]\n" -+ " [-I ] [-B]\n" -+ " [-H | -F ] [-timeout ]\n" -+ " [-V ]\n" -+ " [-R ]\n" - " [-sf script-file] [interface]"); - } - diff --git a/dhcp/patches/dhcp-4.2.2-sharedlib.patch b/dhcp/patches/dhcp-4.2.2-sharedlib.patch deleted file mode 100644 index b504de7c1..000000000 --- a/dhcp/patches/dhcp-4.2.2-sharedlib.patch +++ /dev/null @@ -1,94 +0,0 @@ -diff -up dhcp-4.2.2/client/Makefile.am.sharedlib dhcp-4.2.2/client/Makefile.am ---- dhcp-4.2.2/client/Makefile.am.sharedlib 2011-10-09 20:07:40.000000000 +0200 -+++ dhcp-4.2.2/client/Makefile.am 2011-10-09 20:07:40.000000000 +0200 -@@ -4,7 +4,7 @@ dhclient_SOURCES = clparse.c dhclient.c - scripts/bsdos scripts/freebsd scripts/linux scripts/macos \ - scripts/netbsd scripts/nextstep scripts/openbsd \ - scripts/solaris scripts/openwrt --dhclient_LDADD = ../common/libdhcp.a ../omapip/libomapi.a \ -+dhclient_LDADD = ../common/libdhcp.a ../omapip/libomapi.la \ - $(BIND9_LIBDIR) -ldns-export -lisc-export $(CAPNG_LDADD) - man_MANS = dhclient.8 dhclient-script.8 dhclient.conf.5 dhclient.leases.5 - EXTRA_DIST = $(man_MANS) -diff -up dhcp-4.2.2/configure.ac.sharedlib dhcp-4.2.2/configure.ac ---- dhcp-4.2.2/configure.ac.sharedlib 2011-10-09 20:07:40.000000000 +0200 -+++ dhcp-4.2.2/configure.ac 2011-10-09 20:07:40.000000000 +0200 -@@ -30,7 +30,8 @@ fi - # Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API. - AC_USE_SYSTEM_EXTENSIONS - --AC_PROG_RANLIB -+# Use libtool to simplify building of shared libraries -+AC_PROG_LIBTOOL - AC_CONFIG_HEADERS([includes/config.h]) - - # we sometimes need to know byte order for building packets -diff -up dhcp-4.2.2/dhcpctl/Makefile.am.sharedlib dhcp-4.2.2/dhcpctl/Makefile.am ---- dhcp-4.2.2/dhcpctl/Makefile.am.sharedlib 2011-10-09 20:07:39.000000000 +0200 -+++ dhcp-4.2.2/dhcpctl/Makefile.am 2011-10-09 20:07:40.000000000 +0200 -@@ -1,15 +1,15 @@ - bin_PROGRAMS = omshell --lib_LIBRARIES = libdhcpctl.a -+lib_LTLIBRARIES = libdhcpctl.la - noinst_PROGRAMS = cltest - man_MANS = omshell.1 dhcpctl.3 - EXTRA_DIST = $(man_MANS) - - omshell_SOURCES = omshell.c --omshell_LDADD = libdhcpctl.a ../common/libdhcp.a ../omapip/libomapi.a \ -+omshell_LDADD = libdhcpctl.la ../common/libdhcp.a ../omapip/libomapi.la \ - $(BIND9_LIBDIR) -ldns-export -lisc-export - --libdhcpctl_a_SOURCES = dhcpctl.c callback.c remote.c -+libdhcpctl_la_SOURCES = dhcpctl.c callback.c remote.c - - cltest_SOURCES = cltest.c --cltest_LDADD = libdhcpctl.a ../common/libdhcp.a ../omapip/libomapi.a \ -+cltest_LDADD = libdhcpctl.la ../common/libdhcp.a ../omapip/libomapi.la \ - $(BIND9_LIBDIR) -ldns-export -lisc-export -diff -up dhcp-4.2.2/omapip/Makefile.am.sharedlib dhcp-4.2.2/omapip/Makefile.am ---- dhcp-4.2.2/omapip/Makefile.am.sharedlib 2011-10-09 20:07:39.000000000 +0200 -+++ dhcp-4.2.2/omapip/Makefile.am 2011-10-09 20:07:40.000000000 +0200 -@@ -1,7 +1,7 @@ --lib_LIBRARIES = libomapi.a -+lib_LTLIBRARIES = libomapi.la - noinst_PROGRAMS = svtest - --libomapi_a_SOURCES = protocol.c buffer.c alloc.c result.c connection.c \ -+libomapi_la_SOURCES = protocol.c buffer.c alloc.c result.c connection.c \ - errwarn.c listener.c dispatch.c generic.c support.c \ - handle.c message.c convert.c hash.c auth.c inet_addr.c \ - array.c trace.c toisc.c iscprint.c isclib.c -@@ -10,5 +10,5 @@ man_MANS = omapi.3 - EXTRA_DIST = $(man_MANS) - - svtest_SOURCES = test.c --svtest_LDADD = libomapi.a $(BIND9_LIBDIR) -ldns-export -lisc-export -+svtest_LDADD = libomapi.la $(BIND9_LIBDIR) -ldns-export -lisc-export - -diff -up dhcp-4.2.2/relay/Makefile.am.sharedlib dhcp-4.2.2/relay/Makefile.am ---- dhcp-4.2.2/relay/Makefile.am.sharedlib 2011-10-09 20:07:40.000000000 +0200 -+++ dhcp-4.2.2/relay/Makefile.am 2011-10-09 20:07:40.000000000 +0200 -@@ -2,7 +2,7 @@ AM_CPPFLAGS = -DLOCALSTATEDIR='"@localst - - sbin_PROGRAMS = dhcrelay - dhcrelay_SOURCES = dhcrelay.c --dhcrelay_LDADD = ../common/libdhcp.a ../omapip/libomapi.a \ -+dhcrelay_LDADD = ../common/libdhcp.a ../omapip/libomapi.la \ - $(BIND9_LIBDIR) -ldns-export -lisc-export $(CAPNG_LDADD) - man_MANS = dhcrelay.8 - EXTRA_DIST = $(man_MANS) -diff -up dhcp-4.2.2/server/Makefile.am.sharedlib dhcp-4.2.2/server/Makefile.am ---- dhcp-4.2.2/server/Makefile.am.sharedlib 2011-10-09 20:07:39.000000000 +0200 -+++ dhcp-4.2.2/server/Makefile.am 2011-10-09 20:08:26.000000000 +0200 -@@ -7,8 +7,8 @@ dhcpd_SOURCES = dhcpd.c dhcp.c bootp.c c - dhcpv6.c mdb6.c ldap.c ldap_casa.c - - dhcpd_CFLAGS = $(LDAP_CFLAGS) --dhcpd_LDADD = ../common/libdhcp.a ../omapip/libomapi.a \ -- ../dhcpctl/libdhcpctl.a $(BIND9_LIBDIR) -ldns-export -lisc-export -+dhcpd_LDADD = ../common/libdhcp.a ../omapip/libomapi.la \ -+ ../dhcpctl/libdhcpctl.la $(BIND9_LIBDIR) -ldns-export -lisc-export - - man_MANS = dhcpd.8 dhcpd.conf.5 dhcpd.leases.5 - EXTRA_DIST = $(man_MANS) diff --git a/dhcp/patches/dhcp-4.2.3-paranoia.patch b/dhcp/patches/dhcp-4.2.3-paranoia.patch deleted file mode 100644 index e6c15762f..000000000 --- a/dhcp/patches/dhcp-4.2.3-paranoia.patch +++ /dev/null @@ -1,49 +0,0 @@ -diff -up dhcp-4.2.3-P1/server/dhcpd.c.paranoia dhcp-4.2.3-P1/server/dhcpd.c ---- dhcp-4.2.3-P1/server/dhcpd.c.paranoia 2011-12-20 18:02:26.000000000 +0100 -+++ dhcp-4.2.3-P1/server/dhcpd.c 2011-12-20 18:03:43.840037108 +0100 -@@ -771,22 +771,6 @@ main(int argc, char **argv) { - exit (0); - } - --#if defined (PARANOIA) -- /* change uid to the specified one */ -- -- if (set_gid) { -- if (setgroups (0, (void *)0)) -- log_fatal ("setgroups: %m"); -- if (setgid (set_gid)) -- log_fatal ("setgid(%d): %m", (int) set_gid); -- } -- -- if (set_uid) { -- if (setuid (set_uid)) -- log_fatal ("setuid(%d): %m", (int) set_uid); -- } --#endif /* PARANOIA */ -- - /* - * Deal with pid files. If the user told us - * not to write a file we don't read one either -@@ -823,6 +807,22 @@ main(int argc, char **argv) { - } - } - -+#if defined (PARANOIA) -+ /* change uid to the specified one */ -+ -+ if (set_gid) { -+ if (setgroups (0, (void *)0)) -+ log_fatal ("setgroups: %m"); -+ if (setgid (set_gid)) -+ log_fatal ("setgid(%d): %m", (int) set_gid); -+ } -+ -+ if (set_uid) { -+ if (setuid (set_uid)) -+ log_fatal ("setuid(%d): %m", (int) set_uid); -+ } -+#endif /* PARANOIA */ -+ - /* If we were requested to log to stdout on the command line, - keep doing so; otherwise, stop. */ - if (log_perror == -1) diff --git a/dhcp/patches/dhcp-4.2.4-P1-dhclient6-leases_semicolon_expected.patch b/dhcp/patches/dhcp-4.2.4-P1-dhclient6-leases_semicolon_expected.patch deleted file mode 100644 index c18380d4e..000000000 --- a/dhcp/patches/dhcp-4.2.4-P1-dhclient6-leases_semicolon_expected.patch +++ /dev/null @@ -1,41 +0,0 @@ -diff -up dhcp-4.2.4-P1/client/dhclient.c.dhclient6-leases_semicolon dhcp-4.2.4-P1/client/dhclient.c ---- dhcp-4.2.4-P1/client/dhclient.c.dhclient6-leases_semicolon 2012-07-25 15:20:22.187164614 +0200 -+++ dhcp-4.2.4-P1/client/dhclient.c 2012-07-25 15:20:26.648152028 +0200 -@@ -3236,10 +3236,21 @@ void write_lease_option (struct option_c - } - if (evaluate_option_cache (&ds, packet, lease, client_state, - in_options, cfg_options, scope, oc, MDL)) { -- fprintf(leaseFile, "%soption %s%s%s %s;\n", preamble, -- name, dot, oc->option->name, -- pretty_print_option(oc->option, ds.data, ds.len, -- 1, 1)); -+ /* The option name */ -+ fprintf(leaseFile, "%soption %s%s%s", preamble, -+ name, dot, oc->option->name); -+ -+ /* The option value if there is one */ -+ if ((oc->option->format == NULL) || -+ (oc->option->format[0] != 'Z')) { -+ fprintf(leaseFile, " %s", -+ pretty_print_option(oc->option, ds.data, -+ ds.len, 1, 1)); -+ } -+ -+ /* The closing semi-colon and newline */ -+ fprintf(leaseFile, ";\n"); -+ - data_string_forget (&ds, MDL); - } - } -diff -up dhcp-4.2.4-P1/common/parse.c.dhclient6-leases_semicolon dhcp-4.2.4-P1/common/parse.c ---- dhcp-4.2.4-P1/common/parse.c.dhclient6-leases_semicolon 2012-07-25 15:10:39.683557386 +0200 -+++ dhcp-4.2.4-P1/common/parse.c 2012-07-25 15:16:50.826762985 +0200 -@@ -5772,7 +5772,7 @@ int parse_option_decl (oc, cfile) - goto alloc; - - case 'Z': /* Zero-length option */ -- token = next_token(&val, (unsigned *)0, cfile); -+ token = peek_token(&val, (unsigned *)0, cfile); - if (token != SEMI) { - parse_warn(cfile, - "semicolon expected."); diff --git a/dhcp/patches/dhcp-4.2.4-P2-conflex-do-forward-updates.patch b/dhcp/patches/dhcp-4.2.4-P2-conflex-do-forward-updates.patch new file mode 100644 index 000000000..679fdd3c4 --- /dev/null +++ b/dhcp/patches/dhcp-4.2.4-P2-conflex-do-forward-updates.patch @@ -0,0 +1,12 @@ +diff -up dhcp-4.2.4-P2/common/conflex.c.orig dhcp-4.2.4-P2/common/conflex.c +--- dhcp-4.2.4-P2/common/conflex.c.orig 2012-08-28 04:13:03.000000000 +0200 ++++ dhcp-4.2.4-P2/common/conflex.c 2012-10-09 14:01:29.922104149 +0200 +@@ -889,7 +889,7 @@ intern(char *atom, enum dhcp_token dfv) + if (!strcasecmp(atom + 7, "list")) + return DOMAIN_LIST; + } +- if (!strcasecmp (atom + 1, "o-forward-update")) ++ if (!strcasecmp (atom + 1, "o-forward-updates")) + return DO_FORWARD_UPDATE; + if (!strcasecmp (atom + 1, "ebug")) + return TOKEN_DEBUG; diff --git a/dhcp/patches/dhcp-4.2.4-P2-dupl-key.patch b/dhcp/patches/dhcp-4.2.4-P2-dupl-key.patch new file mode 100644 index 000000000..85c747331 --- /dev/null +++ b/dhcp/patches/dhcp-4.2.4-P2-dupl-key.patch @@ -0,0 +1,13 @@ +diff -up dhcp-4.2.4-P2/common/parse.c.dupl-key dhcp-4.2.4-P2/common/parse.c +--- dhcp-4.2.4-P2/common/parse.c.dupl-key 2012-11-16 15:31:30.568561745 +0100 ++++ dhcp-4.2.4-P2/common/parse.c 2012-11-16 15:31:30.577561619 +0100 +@@ -2893,6 +2893,9 @@ int parse_zone (struct dns_zone *zone, s + } + val = key_name; + } ++ if (zone->key) ++ log_fatal("Multiple key definition for zone %s.", ++ zone->name); + if (omapi_auth_key_lookup_name (&zone -> key, val) != + ISC_R_SUCCESS) + parse_warn (cfile, "unknown key %s", val); diff --git a/dhcp/patches/dhcp-4.2.4-options.patch b/dhcp/patches/dhcp-4.2.4-dhclient-options.patch similarity index 72% rename from dhcp/patches/dhcp-4.2.4-options.patch rename to dhcp/patches/dhcp-4.2.4-dhclient-options.patch index b0080e18b..40c327162 100644 --- a/dhcp/patches/dhcp-4.2.4-options.patch +++ b/dhcp/patches/dhcp-4.2.4-dhclient-options.patch @@ -1,6 +1,113 @@ -diff -up dhcp-4.2.4b1/client/clparse.c.options dhcp-4.2.4b1/client/clparse.c ---- dhcp-4.2.4b1/client/clparse.c.options 2012-03-09 12:28:10.000000000 +0100 -+++ dhcp-4.2.4b1/client/clparse.c 2012-04-16 17:24:58.794047046 +0200 +diff -up dhcp-4.2.1b1/client/dhclient.8.man dhcp-4.2.1b1/client/dhclient.8 +--- dhcp-4.2.1b1/client/dhclient.8.man 2010-07-14 22:09:34.000000000 +0200 ++++ dhcp-4.2.1b1/client/dhclient.8 2011-01-27 18:19:07.000000000 +0100 +@@ -115,6 +115,33 @@ dhclient - Dynamic Host Configuration Pr + .B -w + ] + [ ++.B -B ++] ++[ ++.B -I ++.I dhcp-client-identifier ++] ++[ ++.B -H ++.I host-name ++] ++[ ++.B -F ++.I fqdn.fqdn ++] ++[ ++.B -V ++.I vendor-class-identifier ++] ++[ ++.B -R ++.I request-option-list ++] ++[ ++.B -timeout ++.I timeout ++] ++[ + .B -v + ] + [ +@@ -264,6 +291,69 @@ not to exit when it doesn't find any suc + program can then be used to notify the client when a network interface + has been added or removed, so that the client can attempt to configure an IP + address on that interface. ++ ++.TP ++.BI \-B ++Set the BOOTP broadcast flag in request packets so servers will always ++broadcast replies. ++ ++.TP ++.BI \-I\ ++Specify the dhcp-client-identifier option to send to the DHCP server. ++ ++.TP ++.BI \-H\ ++Specify the host-name option to send to the DHCP server. The host-name ++string only contains the client's hostname prefix, to which the server will ++append the ddns-domainname or domain-name options, if any, to derive the ++fully qualified domain name of the client. The ++.B -H ++option cannot be used with the ++.B -F ++option. ++ ++.TP ++.BI \-F\ ++Specify the fqdn.fqdn option to send to the DHCP server. This option cannot ++be used with the ++.B -H ++option. The fqdn.fqdn option must specify the complete domain name of the ++client host, which the server may use for dynamic DNS updates. ++ ++.TP ++.BI \-V\ ++Specify the vendor-class-identifier option to send to the DHCP server. ++ ++.TP ++.BI \-R\