From owner-freebsd-amd64@FreeBSD.ORG Sun Jan 4 22:44:15 2004 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 664) id D4E7116A4CF; Sun, 4 Jan 2004 22:44:15 -0800 (PST) Date: Sun, 4 Jan 2004 22:44:15 -0800 From: David O'Brien To: James Van Artsdalen Message-ID: <20040105064415.GA49437@hub.freebsd.org> References: <200401040714.i047EDbt019471@bigtex.jrv.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200401040714.i047EDbt019471@bigtex.jrv.org> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.9-STABLE Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 cc: freebsd-amd64@freebsd.org Subject: Re: SMBFS? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-amd64@freebsd.org List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jan 2004 06:44:15 -0000 On Sun, Jan 04, 2004 at 01:14:13AM -0600, James Van Artsdalen wrote: > > I'm beginning to wonder if there might be a bug instead of just an > > incorrect config file. > > In nb_enum_if() in /usr/src/contrib/smbfs/lib/smb/nb_net.c, this code > traverses all of the net interfaces looking for broadcast addresses. > > Of interest ifc.ifc_len is 524, but sizeof (struct ifreq) is 32? > Shouldn't the len be an integer multiple of the size of the struct? > I can find no documentation of these ioctl's. I looked at the bytes > returned by SIOCGIFCONF an it's clearly not what the libsmbfs code > expects, but I don't know what SIOCGIFCONF is really supposed to > return & the structure boundaries in the buffer aren't obvious. ... > ifcnt = ifc.ifc_len / sizeof(struct ifreq); Tim Robbins 's done some SMBFS work lately. He'd like it if AMD64 users experiencing this could try: http://cvsweb.netbsd.org/bsdweb.cgi/src/dist/smbfs/lib/smb/nb_net.c.diff?r1=1.1&r2=1.2 and let him know whether he should bring it across to FreeBSD. -- David