Skip to content

Instantly share code, notes, and snippets.

@franck-eyraud franck-eyraud/dhclient6.patch Secret
Last active Aug 29, 2015

Embed
What would you like to do?
Patch for dhclient ipv6 preventing its from crashing (from online-net forum)
--- dhcp-4.3.0/client/dhc6.c 2014-01-31 20:20:49.000000000 +0100
+++ dhcp-4.3.0-mod/client/dhc6.c 2014-06-21 16:42:36.670293375 +0200
@@ -4022,8 +4022,18 @@
break;
}
+
+ case S_REBINDING:
+ /* For now, we rebind up until the last lease expires. In
+ * the future, we might want to start SOLICITing when we've
+ * depreffed an address.
+ */
+ client->MRD = hi_expire - cur_time;
+ break;
+
/* FALL THROUGH */
- case S_RENEWING:
+ default:
+
/* While actively renewing, MRD is bounded by the time
* we stop renewing and start rebinding. This helps us
* process the state change on time.
@@ -4040,17 +4050,6 @@
add_timeout(&tv, start_rebind6, client, NULL, NULL);
}
break;
-
- case S_REBINDING:
- /* For now, we rebind up until the last lease expires. In
- * the future, we might want to start SOLICITing when we've
- * depreffed an address.
- */
- client->MRD = hi_expire - cur_time;
- break;
-
- default:
- log_fatal("Impossible condition at %s:%d.", MDL);
}
/* Separately, set a time at which we will depref and expire
@franck-eyraud

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.