[jcifs] (IP results from name query)

Christopher R. Hertel crh at ubiqx.mn.org
Fri Oct 24 12:55:04 EST 2003


Michael B Allen wrote:
> 
> >> > does jCIFS collect all of the responses in one NbtAddress object or
> >> does
> >> > it only return the first one (and ignore the others)?
> >>
> >> Returns the first, ignores the rest.
> >
> > Hmmm...  Speaking as the theory guy (and after having thought about it a
> > while) I would have to say that this is wrong.  [ducks]
> >
> > A group name is associated with zero-to-many IP addresses.  Using a tool
> > like nmblookup, a broadcast query for a group name returns several IPs.
> > The default WINS behavior of sending only 255.255.255.255 in response to a
> > group name query is clearly broken as Microsoft found out when they
> > patched WINS to provide special [that's "correct"] behavior for <1C>
> > names.
> 
> Agreed. It is natrual to return all addresses associated with a group
> name. But NbtAddress provides no such method because we have never needed
> such a method. In fact, I think we had that functionality in an early
> version of jCIFS but it was removed simply because it wasn't/isn't needed.

As always...theory and practice.  :)

Chris -)-----

-- 
"Implementing CIFS - the Common Internet FileSystem" ISBN: 013047116X
Samba Team -- http://www.samba.org/     -)-----   Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/   -)-----   ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/     -)-----   crh at ubiqx.mn.org
OnLineBook -- http://ubiqx.org/cifs/    -)-----   crh at ubiqx.org



More information about the jcifs mailing list