IPV6="true"
# Use IPv6 prefix delegation.
-PREFIX_DELEGATION="false"
+PREFIX_DELEGATION="true"
function hook_check_settings() {
assert isset USERNAME
exit ${EXIT_OK}
}
+
+function hook_ppp_ipv6_up() {
+ local zone="${1}"
+
+ ppp_common_ipv6_up "${zone}"
+
+ # Read configuration
+ zone_settings_read "${zone}"
+
+ if enabled PREFIX_DELEGATION; then
+ dhclient_start "${zone}" ipv6
+ fi
+
+ exit ${EXIT_OK}
+}
+
+function hook_ppp_ipv6_down() {
+ local zone="${1}"
+
+ ppp_common_ipv6_down "${zone}"
+
+ # Read configuration
+ zone_settings_read "${zone}"
+
+ if enabled PREFIX_DELEGATION; then
+ dhclient_stop "${zone}" ipv6
+ fi
+
+ exit ${EXIT_OK}
+}