From: "Paul B. Henson" Delivered-To: dhcp-confidential@bugs.isc.org X-PHP-Originating-Script: 20001:class-phpmailer.php MIME-Version: 1.0 Received: from mx.pao1.isc.org (mx.pao1.isc.org [149.20.64.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx.pao1.isc.org", Issuer "COMODO RSA Organization Validation Secure Server CA" (not verified)) by bugs.isc.org (Postfix) with ESMTPS id 28DD3D78AEC for ; Tue, 22 Aug 2017 19:57:25 +0000 (UTC) Received: from iscwebprod.isc.org (iscwebprod.isc.org [IPv6:2001:4f8:1:d::16]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx.pao1.isc.org (Postfix) with ESMTPS id 7984834B78F for ; Tue, 22 Aug 2017 19:57:22 +0000 (UTC) Received: from www (uid 80) (envelope-from www@iscwebprod.isc.org) id 7b7d08 by iscwebprod.isc.org (DragonFly Mail Agent v0.11); Tue, 22 Aug 2017 19:57:22 +0000 X-Mailer: PHPMailer 5.2.22 (https://github.com/PHPMailer/PHPMailer) X-Original-To: dhcp-confidential@bugs.isc.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.0 Subject: 4.3.3P1 - V6 - dhcpd: Unable to pick client address: no addresses available content-type: text/plain; charset="utf-8" Return-Path: To: dhcp-bugs@isc.org Date: Tue, 22 Aug 2017 19:57:22 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mx.pao1.isc.org From www@isc.org Tue Aug 22 19:57:25 2017 Message-ID: X-RT-Incoming-Encryption: Not encrypted X-RT-Original-Encoding: utf-8 X-RT-Interface: Email Content-Length: 1223 Bug Report from www.isc.org: Name: Paul B. Henson Email: henson@cpp.edu Software Version: 4.3.3P1 OS: Gentoo Linux Subject:V6 - dhcpd: Unable to pick client address: no addresses available Bug Detail =========== In a /64 pool with only 5577 addresses allocated, the server says no addresses are available: dhcpd: Unable to pick client address: no addresses available - shared network 2620:df:8000:4701::/64: 4294967296 total, 5577 active, 0 abandoned It seems with over 4 *billion* to choose from one could be found 8-/. It looks like this issue comes from: https://github.com/mpalmer/isc-dhcp/blob/6a90108410e9dcf22e458ca950b055e1ece3761 8/server/mdb6.c#L931-L1080 where it arbitrarily hashes the DUID only 100 times looking for an address to give out before giving up. The comment at the top says "Realistically this will only happen in very full pools", I hereby introduce the author to the difference between statistics and real life ;). It seems when there are 4 billion free addresses this function should not throw up its hands and give a "no addresses available" error :(. Thanks... --- This email was received through isc.org Bug Submission Form