summaryrefslogtreecommitdiff
path: root/client/dhclient.c
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2008-02-27 09:13:03 +0000
committerFrancis Dupont <fdupont@isc.org>2008-02-27 09:13:03 +0000
commit8720268367f574ae007da434c21a8cc4c7f87f49 (patch)
tree50228bc48b083fda9d0ee1cdc3aa3f0d34605d6d /client/dhclient.c
parent843ae4c595d7aaddd531809923ba5405d122e5d9 (diff)
downloadisc-dhcp-8720268367f574ae007da434c21a8cc4c7f87f49.tar.gz
Reliable DHCPv6 release
Diffstat (limited to 'client/dhclient.c')
-rw-r--r--client/dhclient.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/client/dhclient.c b/client/dhclient.c
index 38afe721..1fb1da83 100644
--- a/client/dhclient.c
+++ b/client/dhclient.c
@@ -506,8 +506,19 @@ main(int argc, char **argv) {
}
}
- if (release_mode || exit_mode)
+ if (exit_mode)
return 0;
+ if (release_mode) {
+#ifndef DHCPv6
+ return 0;
+#else
+ if (local_family == AF_INET6) {
+ if (onetry)
+ return 0;
+ } else
+ return 0;
+#endif /* DHCPv6 */
+ }
/* Start up a listener for the object management API protocol. */
if (top_level_config.omapi_port != -1) {