From owner-freebsd-hackers Sun Oct 12 12:49:45 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA11148 for hackers-outgoing; Sun, 12 Oct 1997 12:49:45 -0700 (PDT) (envelope-from owner-freebsd-hackers) Received: from usr08.primenet.com (tlambert@usr08.primenet.com [206.165.6.208]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id MAA11140 for ; Sun, 12 Oct 1997 12:49:40 -0700 (PDT) (envelope-from tlambert@usr08.primenet.com) Received: (from tlambert@localhost) by usr08.primenet.com (8.8.5/8.8.5) id MAA24364; Sun, 12 Oct 1997 12:49:30 -0700 (MST) From: Terry Lambert Message-Id: <199710121949.MAA24364@usr08.primenet.com> Subject: Re: Mountd and PLIP interfaces. To: dmlb@ragnet.demon.co.uk (Duncan Barclay) Date: Sun, 12 Oct 1997 19:49:30 +0000 (GMT) Cc: freebsd-hackers@FreeBSD.ORG In-Reply-To: from "Duncan Barclay" at Oct 11, 97 11:14:31 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > I have a problem with starting mountd and friends on > a system with a PLIP interface that is up. I use the PLIP interface to > an old 486/25 laptop which doesnt have PC-Cards... > > Mountd doesn't start; it can't register it's RPC and fails with a > "no route to host" error. > > Chasing through mountd and the RPC code in libc I found the problem in > /usr/src/lib/libc/rpc/get_myaddress.c, which returns the IP address of the > first configured and running network interface that it finds. Is the link "up"? It's probably arguable that it should return the default route's interface, at best, or not return interfaces that aren't UP,RUNNING", at worst. > *** get_myaddress.c Mon Nov 25 07:23:37 1996 > --- /usr/home/dmlb/get_myaddress.c Sun Oct 12 12:50:17 1997 > *************** > *** 82,87 **** > --- 82,88 ---- > exit(1); > } > if ((ifreq.ifr_flags & IFF_UP) && > + !(ifreq.ifr_flags & IFF_POINTOPOINT) && > ifr->ifr_addr.sa_family == AF_INET) { > *addr = *((struct sockaddr_in *)&ifr->ifr_addr); > addr->sin_port = htons(PMAPPORT); What does this do to the machine whose only interface is the parallel port? What does it return for "get_myaddress()"? Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.