Removed duplicated if in IPV6 section of set_gateway_available().