Date: Sun, 4 Jan 2004 22:44:15 -0800 From: David O'Brien <obrien@FreeBSD.ORG> To: James Van Artsdalen <james-freebsd-amd64@jrv.org> Cc: freebsd-amd64@freebsd.org Subject: Re: SMBFS? Message-ID: <20040105064415.GA49437@hub.freebsd.org> In-Reply-To: <200401040714.i047EDbt019471@bigtex.jrv.org> References: <200401040714.i047EDbt019471@bigtex.jrv.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <tjr@freebsd.org>'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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040105064415.GA49437>