Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Oct 1997 19:49:30 +0000 (GMT)
From:      Terry Lambert <tlambert@primenet.com>
To:        dmlb@ragnet.demon.co.uk (Duncan Barclay)
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Mountd and PLIP interfaces.
Message-ID:  <199710121949.MAA24364@usr08.primenet.com>
In-Reply-To: <XFMail.971012125949.dmlb@ragnet.demon.co.uk> from "Duncan Barclay" at Oct 11, 97 11:14:31 am

next in thread | previous in thread | raw e-mail | index | archive | help
> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199710121949.MAA24364>