Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jan 1997 08:53:52 GMT
From:      Adam David <adam@veda.is>
To:        wpaul@skynet.ctr.columbia.EDU (Bill Paul)
Cc:        freebsd-current@freebsd.org
Subject:   Re: What's happened to nfsd and mountd?
Message-ID:  <199701100853.IAA21202@veda.is>
References:  <199701091520.QAA03172@freebie.lemis.de> <199701100612.BAA27329@skynet.ctr.columbia.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
>> Jan  9 12:08:28 freebie portmap[754]: connect from 127.0.0.1 to unset(mountd): request from non-local host

>Aha. Okay, I think get_myaddress() is fine now, but next somebody will have
>to fix src/usr.sbin/portmap/from_local.c. This code is supposed to compare
>the client IP address against everything it considers to be a local
>interface address. However, it allocates a static buffer that's only
>large enough for 16 interfaces. In both these cases, there are much more
>than 16 interfaces involved, so SIOCGIFCONF is probably failing. There
>are two bugs here: the first is that portmap doesn't use a flexible enough
>mechanism to read all the local interfaces and 2) it doesn't syslog()
>an appropriate error message when SIOCGIFCONF fails so that you have
>some idea of what's going on.

lo0 is the last interface on the list from SIOCGIFCONF, therefore it is
omitted if the buffer is too small.

As an aside, the first entry on the list from SIOCGIFCONF is now bigger than
the rest, by 4 bytes.

In from_local.c the primary IP for the interface is repeated for each alias,
instead of the alias IP. Is this intentional?

--
Adam David <adam@veda.is>



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