From owner-cvs-all@FreeBSD.ORG Mon Jan 19 14:08:00 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D48B16A4CF; Mon, 19 Jan 2004 14:08:00 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C834243D31; Mon, 19 Jan 2004 14:07:59 -0800 (PST) (envelope-from mbr@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i0JM7x0B051250; Mon, 19 Jan 2004 14:07:59 -0800 (PST) (envelope-from mbr@repoman.freebsd.org) Received: (from mbr@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i0JM7xDk051249; Mon, 19 Jan 2004 14:07:59 -0800 (PST) (envelope-from mbr) Message-Id: <200401192207.i0JM7xDk051249@repoman.freebsd.org> From: Martin Blapp Date: Mon, 19 Jan 2004 14:07:59 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/contrib/isc-dhcp FREEBSD-upgrade src/contrib/isc-dhcp/client dhclient.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jan 2004 22:08:00 -0000 mbr 2004/01/19 14:07:59 PST FreeBSD src repository Modified files: contrib/isc-dhcp FREEBSD-upgrade contrib/isc-dhcp/client dhclient.c Log: If we have a working link again after connectivity loss, or if we need to renew a lease, contact the dhcp-server directly instead of using INADDR_BROADCAST all the time. This should fix some brain-dead dhcp server implementations which give you all the time a new IP if the lease has not yet expired. Instead of using ICMP to check if the server is alive, we just check the return value of sendto() and additionally have a timeout there. Revision Changes Path 1.19 +1 -0 src/contrib/isc-dhcp/FREEBSD-upgrade 1.35 +27 -4 src/contrib/isc-dhcp/client/dhclient.c