From owner-freebsd-current Fri Jan 10 00:54:06 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id AAA00486 for current-outgoing; Fri, 10 Jan 1997 00:54:06 -0800 (PST) Received: from veda.is (veda.is [193.4.230.1]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id AAA00481 for ; Fri, 10 Jan 1997 00:54:03 -0800 (PST) Received: (from adam@localhost) by veda.is (8.8.4/8.8.4) id IAA21202; Fri, 10 Jan 1997 08:53:52 GMT Date: Fri, 10 Jan 1997 08:53:52 GMT From: Adam David Message-Id: <199701100853.IAA21202@veda.is> To: wpaul@skynet.ctr.columbia.EDU (Bill Paul) Cc: freebsd-current@freebsd.org Subject: Re: What's happened to nfsd and mountd? Newsgroups: list.freebsd.current References: <199701091520.QAA03172@freebie.lemis.de> <199701100612.BAA27329@skynet.ctr.columbia.edu> X-Newsreader: NN version 6.5.0 #2 (NOV) Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >> 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