From d217735ca0d68aa670465e7a30e152540a904330 Mon Sep 17 00:00:00 2001 From: Jiří Popelka Date: Feb 22 2010 16:10:55 +0000 Subject: - Add interface-mtu to the list of default requested DHCP options (#566873) --- diff --git a/dhcp-4.1.1-default-requested-options.patch b/dhcp-4.1.1-default-requested-options.patch index 2907812..86ae6ae 100644 --- a/dhcp-4.1.1-default-requested-options.patch +++ b/dhcp-4.1.1-default-requested-options.patch @@ -1,16 +1,16 @@ diff -up dhcp-4.1.1/client/clparse.c.requested dhcp-4.1.1/client/clparse.c ---- dhcp-4.1.1/client/clparse.c.requested 2010-01-20 17:18:14.000000000 +0100 -+++ dhcp-4.1.1/client/clparse.c 2010-01-20 17:18:14.000000000 +0100 +--- dhcp-4.1.1/client/clparse.c.requested 2010-02-22 16:45:15.000000000 +0100 ++++ dhcp-4.1.1/client/clparse.c 2010-02-22 16:45:58.000000000 +0100 @@ -37,7 +37,7 @@ struct client_config top_level_config; -#define NUM_DEFAULT_REQUESTED_OPTS 9 -+#define NUM_DEFAULT_REQUESTED_OPTS 12 ++#define NUM_DEFAULT_REQUESTED_OPTS 13 struct option *default_requested_options[NUM_DEFAULT_REQUESTED_OPTS + 1]; static void parse_client_default_duid(struct parse *cfile); -@@ -111,6 +111,21 @@ isc_result_t read_client_conf () +@@ -111,6 +111,26 @@ isc_result_t read_client_conf () option_code_hash_lookup(&default_requested_options[8], dhcpv6_universe.code_hash, &code, 0, MDL); @@ -29,6 +29,11 @@ diff -up dhcp-4.1.1/client/clparse.c.requested dhcp-4.1.1/client/clparse.c + option_code_hash_lookup(&default_requested_options[11], + dhcp_universe.code_hash, &code, 0, MDL); + ++ /* 13 */ ++ code = DHO_INTERFACE_MTU; ++ option_code_hash_lookup(&default_requested_options[12], ++ dhcp_universe.code_hash, &code, 0, MDL); ++ for (code = 0 ; code < NUM_DEFAULT_REQUESTED_OPTS ; code++) { if (default_requested_options[code] == NULL) log_fatal("Unable to find option definition for " diff --git a/dhcp-4.1.1-manpages.patch b/dhcp-4.1.1-manpages.patch index c7de0ad..473f8ce 100644 --- a/dhcp-4.1.1-manpages.patch +++ b/dhcp-4.1.1-manpages.patch @@ -352,9 +352,9 @@ diff -up dhcp-4.1.1/client/dhclient.8.man dhcp-4.1.1/client/dhclient.8 +.BR + subnet-mask, broadcast-address, time-offset, routers, +.BR -+ domain-name, domain-name-servers, host-name, nis-domain, ++ domain-name, domain-name-servers, host-name, name-servers, +.BR -+ nis-servers, ntp-servers ++ domain-search, nis-domain, nis-servers, ntp-servers, interface-mtu + The -.B -x @@ -476,8 +476,8 @@ diff -up dhcp-4.1.1/client/dhclient.conf.5.man dhcp-4.1.1/client/dhclient.conf.5 -domain-name, domain-name-servers and host-name options. Note that if -you enter a 'request' statement, you over-ride this default and these -options will not be requested. -+domain-name, domain-name-servers host-name, nis-domain, nis-servers, -+and ntp-servers options. Note that if you enter a 'request' statement, ++domain-name, domain-name-servers, host-name, name-servers, domain-search, nis-domain, nis-servers, ++ntp-servers and interface-mtu options. Note that if you enter a 'request' statement, +you over-ride this default and these options will not be requested. .PP In some cases, it may be desirable to send no parameter request list diff --git a/dhcp.spec b/dhcp.spec index 8b7b625..445f54d 100644 --- a/dhcp.spec +++ b/dhcp.spec @@ -13,7 +13,7 @@ Summary: Dynamic host configuration protocol software Name: dhcp Version: %{basever} -Release: 9%{?dist} +Release: 10%{?dist} # NEVER CHANGE THE EPOCH on this package. The previous maintainer (prior to # dcantrell maintaining the package) made incorrect use of the epoch and # that's why it is at 12 now. It should have never been used, but it was. @@ -155,8 +155,8 @@ libdhcpctl and libomapi static libraries are also included in this package. # Also, return EXIT_FAILURE when the usage() screen is displayed (stop parsing) %patch6 -p1 -b .usage -# Add NIS domain, NIS servers, and NTP servers to the list of default -# requested DHCP options +# Add NIS domain, NIS servers, NTP servers and interface-mtu +# to the list of default requested DHCP options %patch7 -p1 -b .requested # Handle Xen partial UDP checksums @@ -500,6 +500,9 @@ fi %attr(0644,root,root) %{_mandir}/man3/omapi.3.gz %changelog +* Mon Feb 22 2010 Jiri Popelka - 12:4.1.1-10 +- Add interface-mtu to the list of default requested DHCP options (#566873) + * Fri Feb 19 2010 Jiri Popelka - 12:4.1.1-9 - Fix pm-utils/sleep.d/ directory ownership conflict