Date: Fri, 20 Jun 1997 17:15:13 PDT From: Bill Fenner <fenner@parc.xerox.com> To: Bill Paul <wpaul@freebsd.org> Cc: cvs-committers@freebsd.org, cvs-all@freebsd.org, cvs-lib@freebsd.org Subject: Re: cvs commit: src/lib/libc/rpc get_myaddress.c Message-ID: <97Jun20.171522pdt.177512@crevenia.parc.xerox.com> In-Reply-To: Your message of "Fri, 20 Jun 97 10:54:12 PDT." <199706201754.KAA25600@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Bill Paul <wpaul@FreeBSD.ORG> wrote: > if (((ifreq.ifr_flags & IFF_UP) && > ifr->ifr_addr.sa_family == AF_INET) || > (loopback == 1 && (ifreq.ifr_flags & IFF_LOOPBACK))) { > > which I think does the right thing. No, you want to avoid the loopback interface completely on your first pass, right? (it's got an AF_INET address). You probably want something like if ((((ifreq.ifr_flags & (IFF_UP|IFF_LOOPBACK)) == IFF_UP) && ... Bill
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?97Jun20.171522pdt.177512>