]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/functions/functions.dhclient
dhclient: Add support for DHCPv6 and PD
[people/stevee/network.git] / src / functions / functions.dhclient
index 29a6d664c00cd293c05418b5a9711d69b99dd1f1..40cc61c52a5e760da5b34978ecc788a88e1fb992 100644 (file)
@@ -82,7 +82,6 @@ dhclient_write_config() {
        assert isset file
 
        local hostname=${HOSTNAME%%.*}
-       local prefix_delegation="false"
        local vendor=$(distro_get_pretty_name)
 
        while [ $# -gt 0 ]; do
@@ -90,9 +89,6 @@ dhclient_write_config() {
                        --hostname=*)
                                hostname=$(cli_get_val ${1})
                                ;;
-                       --prefix-delegation=*)
-                               prefix_delegation="$(cli_get_bool "${1}")"
-                               ;;
                        --vendor=*)
                                vendor=$(cli_get_val ${1})
                                ;;
@@ -131,14 +127,6 @@ dhclient_write_config() {
                        print
                fi
 
-               # Prefix delegation (IPv6).
-               if enabled prefix_delegation; then
-                       print " # Prefix delegation"
-                       print " also request dhcp6.ia-pd 1;"
-                       print " send dhcp6.ia-na 1;"
-                       print
-               fi
-
                echo "}"
        ) >>${file}