]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Minor changes for scripts, configure.ac and Makefiles
authorShawn Routhier <sar@isc.org>
Tue, 14 Sep 2010 22:20:20 +0000 (22:20 +0000)
committerShawn Routhier <sar@isc.org>
Tue, 14 Sep 2010 22:20:20 +0000 (22:20 +0000)
[ISC-Bugs #19147] Use domain-search instead of domain-name in manual and
                  example conf file.  Thanks to a patch from David Cantrell
                  at Red Hat.
[ISC-Bugs #19761] Restore address when doing a rebind in DHCPv6
[ISC-Bugs #19945] Properly close the quote on some arguments.
[ISC-Bugs #20952] Add 64 bit types to configure.ac
[ISC-Bugs #21308] Add "PATH=" to CLIENT_PATH envrionment variable

RELNOTES
client/Makefile.am
client/dhclient.conf
client/dhclient.conf.5
client/scripts/linux
client/scripts/netbsd
client/scripts/nextstep
client/scripts/openwrt
configure.ac

index 781af581b7e79bab1df3022fd3c570876c9f86aa..da1defd01e41b31246e96903b4192b8587e86de4 100644 (file)
--- a/RELNOTES
+++ b/RELNOTES
@@ -115,6 +115,15 @@ work on other platforms. Please report any problems and suggested fixes to
   [ISC-Bugs #21585] - Always print time values in omshell as hex
   instead of ascii if the values happen to be printable characters.
 
+- Minor changes for scripts, configure.ac and Makefiles
+  [ISC-Bugs #19147] Use domain-search instead of domain-name in manual and
+                    example conf file.  Thanks to a patch from David Cantrell
+                    at Red Hat.
+  [ISC-Bugs #19761] Restore address when doing a rebind in DHCPv6
+  [ISC-Bugs #19945] Properly close the quote on some arguments.
+  [ISC-Bugs #20952] Add 64 bit types to configure.ac
+  [ISC-Bugs #21308] Add "PATH=" to CLIENT_PATH envrionment variable
+
                        Changes since 4.2.0b2
 
 - Add declaration for variable in debug code in alloc.c.  [ISC-Bugs #21472]
index 77ed055225a871e14846bad660fa30af6fefdca2..57c6ac931073d6021eaafe60965c35d37ad05911 100644 (file)
@@ -10,9 +10,9 @@ man_MANS = dhclient.8 dhclient-script.8 dhclient.conf.5 dhclient.leases.5
 EXTRA_DIST = $(man_MANS)
 
 dhclient.o: dhclient.c
-       $(COMPILE) -DCLIENT_PATH='"$(sbindir)"' \
+       $(COMPILE) -DCLIENT_PATH='"PATH=$(sbindir):/sbin:/bin:/usr/sbin:/usr/bin"' \
                   -DLOCALSTATEDIR='"$(localstatedir)"' -c dhclient.c
 
 dhc6.o: dhc6.c
-       $(COMPILE) -DCLIENT_PATH='"$(sbindir)"' \
+       $(COMPILE) -DCLIENT_PATH='"PATH=$(sbindir):/sbin:/bin:/usr/sbin:/usr/bin"' \
                   -DLOCALSTATEDIR='"$(localstatedir)"' -c dhc6.c
index 64c6ce110357387fbcbb6f2aa61ed7873ecdcab4..1d1d7328d885001f82202febfe6124db7c65664f 100644 (file)
@@ -1,7 +1,7 @@
 send host-name = pick-first-value(gethostname(), "ISC-dhclient");
 send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
 send dhcp-lease-time 3600;
-supersede domain-name "fugue.com home.vix.com";
+supersede domain-search "fugue.com home.vix.com";
 prepend domain-name-servers 127.0.0.1;
 request subnet-mask, broadcast-address, time-offset, routers,
        domain-name, domain-name-servers, host-name;
index 080cfc7888da627aba8ecac38af2302f1f5885b4..5943e12c307a28b680282fa400510789a6b09222 100644 (file)
@@ -1,4 +1,4 @@
-.\"    $Id: dhclient.conf.5,v 1.29 2010/07/02 23:09:14 sar Exp $
+.\"    $Id: dhclient.conf.5,v 1.30 2010/09/14 22:20:20 sar Exp $
 .\"
 .\" Copyright (c) 2009-2010 by Internet Systems Consortium, Inc. ("ISC")
 .\" Copyright (c) 2004,2007 by Internet Systems Consortium, Inc. ("ISC")
@@ -694,7 +694,7 @@ interface "ep0" {
     hardware ethernet 00:a0:24:ab:fb:9c;
     send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
     send dhcp-lease-time 3600;
-    supersede domain-name "fugue.com rc.vix.com home.vix.com";
+    supersede domain-search "fugue.com rc.vix.com home.vix.com";
     prepend domain-name-servers 127.0.0.1;
     request subnet-mask, broadcast-address, time-offset, routers,
            domain-name, domain-name-servers, host-name;
index 4b3f1670c7dd48321cc762083fc112233d9874b5..4326ce95e621dccbe67cb31eeda9cc0e3eccafe0 100755 (executable)
@@ -250,6 +250,13 @@ if [ x$reason = xBOUND6 ] ; then
 fi
 
 if [ x$reason = xRENEW6 ] || [ x$reason = xREBIND6 ] ; then
+  if [ x${new_ip6_address} = x ] || [ x${new_ip6_prefixlen} = x ] ; then
+    exit_with_hooks 2;
+  fi
+
+  ${ip} -f inet6 addr add ${new_ip6_address}/${new_ip6_prefixlen} \
+       dev ${interface} scope global
+
   # Make sure nothing has moved around on us.
 
   # Nameservers/domains/etc.
index 7cbb64c0355b1a8dbc4569b84db34e5dc70de5f4..af6b3c9503823c9ca37e969ea7624217c296082a 100755 (executable)
@@ -3,9 +3,9 @@
 make_resolv_conf() {
   if [ "x$new_domain_name" != x ] && [ x"$new_domain_name_servers" != x ]; then
     cat /dev/null > /etc/resolv.conf.dhclient
-    if [ "x$new_domain_search != x ]; then
+    if [ "x$new_domain_search" != x ]; then
       echo search $new_domain_search >> /etc/resolv.conf.dhclient
-    elif [ "x$new_domain_name != x ]; then
+    elif [ "x$new_domain_name" != x ]; then
       # Note that the DHCP 'Domain Name Option' is really just a domain
       # name, and that this practice of using the domain name option as
       # a search path is both nonstandard and deprecated.
index b80d175ad4c5ce2390655324fd3e2c664c77f8d3..9273c5a740f9f95b574e52ae50c9ed041f14c869 100644 (file)
@@ -33,9 +33,9 @@ if [ x$reason = xBOUND ] || [ x$reason = xRENEW ] || \
   fi
   if [ x"$new_domain_name_servers" != x ]; then
     cat /dev/null > /etc/resolv.conf.dhclient
-    if [ "x$new_domain_search != x ]; then
+    if [ "x$new_domain_search" != x ]; then
       echo search $new_domain_search >> /etc/resolv.conf.dhclient
-    elif [ "x$new_domain_name != x ]; then
+    elif [ "x$new_domain_name" != x ]; then
       # Note that the DHCP 'Domain Name Option' is really just a domain
       # name, and that this practice of using the domain name option as
       # a search path is both nonstandard and deprecated.
index e1775ffa49bcd7e2be7019a08608b568110c7365..29d100f0973115eb8997d60f3b3cf37746572ae1 100755 (executable)
@@ -216,6 +216,12 @@ if [ x$reason = xBOUND6 ]; then
 fi
 
 if [ x$reason = xRENEW6 ] || [ x$reason = xREBIND6 ]; then
+  if [ x${new_ip6_address} = x ] || [ x${new_ip6_prefixlen} = x ] ; then
+    exit_with_hooks 2;
+  fi
+
+  ifconfig ${interface} inet6 ${new_ip6_address}/${new_ip6_prefixlen} alias
+
   # Make sure nothing has moved around on us.
 
   # Nameservers/domains/etc.
index ff832aa6fb44f86fd7cb31f6ca17a1ac8e00aa27..870736901cafa7da70e267177cb11cbfb3ea1c54 100644 (file)
@@ -322,6 +322,7 @@ AC_ARG_WITH(relay-pid-file,
 AC_TYPE_INT8_T
 AC_TYPE_INT16_T
 AC_TYPE_INT32_T
+AC_TYPE_INT64_T
 
 # Some systems need the u_intX_t types defined across.
 AC_CHECK_TYPE([u_int8_t], [], [
@@ -339,6 +340,11 @@ AC_CHECK_TYPE([u_int32_t], [], [
   AC_DEFINE(u_int32_t, [uint32_t], [Define a type for 32-bit unsigned
                                    integers.])
 ])
+AC_CHECK_TYPE([u_int64_t], [], [
+  AC_TYPE_UINT64_T
+  AC_DEFINE(u_int64_t, [uint64_t], [Define a type for 64-bit unsigned
+                                   integers.])
+])
 
 # see if ifaddrs.h is available
 AC_CHECK_HEADERS(ifaddrs.h)