SMBFS?
David O'Brien
obrien at FreeBSD.ORG
Sun Jan 4 22:44:15 PST 2004
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 at 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
More information about the freebsd-amd64
mailing list