Date: Wed, 1 Jan 2003 15:55:34 -0800 (PST) From: John Polstra <jdp@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/rpc get_myaddress.c Message-ID: <200301012355.h01NtYIt067226@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301012355.h01NtYIt067226>