From owner-cvs-all Wed Jan 1 15:55:35 2003 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 B02CE37B401; Wed, 1 Jan 2003 15:55:34 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 70B1843E4A; Wed, 1 Jan 2003 15:55:34 -0800 (PST) (envelope-from jdp@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h01NtYfh067227; Wed, 1 Jan 2003 15:55:34 -0800 (PST) (envelope-from jdp@repoman.freebsd.org) Received: (from jdp@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h01NtYIt067226; Wed, 1 Jan 2003 15:55:34 -0800 (PST) Message-Id: <200301012355.h01NtYIt067226@repoman.freebsd.org> From: John Polstra Date: Wed, 1 Jan 2003 15:55:34 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/rpc get_myaddress.c X-FreeBSD-CVS-Branch: RELENG_4 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG jdp 2003/01/01 15:55:34 PST Modified files: (Branch: RELENG_4) lib/libc/rpc get_myaddress.c Log: Don't treat 0.0.0.0 as a valid candidate when trying to determine "the" IP address of the system. Interfaces which have not been configured yet are given address 0.0.0.0 by dhclient. Without this fix, I ran into a situation in which amd failed and logged messages like: amd[261]: ignoring request from 127.0.0.1:993, expected 0.0.0.0 This was on a system with two network interfaces, both set up to be configured by DHCP, in which only the second interface was connected. The bug fooled amd into thinking its IP address was 0.0.0.0, and it didn't like requests coming from anywhere else. Neither this bug nor this source file exist in -current, so I am committing the fix directly to the RELENG_4 branch. Revision Changes Path 1.18.2.1 +4 -2 src/lib/libc/rpc/get_myaddress.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message