]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/functions/functions.radvd
Replace ipcalc by inetcalc
[people/stevee/network.git] / src / functions / functions.radvd
index 2079554ae62b5837d0fd97f436c29b33f22907a0..a2daec35737ccb60c0c756a6f016043a5ec86b71 100644 (file)
@@ -69,11 +69,11 @@ __radvd_config_interface() {
        if [ -z "${addr}" ] || [ "${addr:0:5}" = "fe80:" ]; then
                return ${EXIT_OK}
        fi
-       local prefix=$(ipv6_get_network ${addr})
 
        # Check if the subnet is configured by the DHCP server.
        local dhcpd="false"
-       if dhcpd_subnet_match ipv6 "${prefix}"; then
+       local prefix="$(ipv6_get_network "${addr}")"
+       if isset prefix && dhcpd_subnet_match ipv6 "${prefix}"; then
                dhcpd="true"
        fi