[jcifs] no name with type 0x00 with no scope for host
Allen, Michael B (RSCH)
Michael_B_Allen at ml.com
Wed Feb 20 16:52:07 EST 2002
> -----Original Message-----
> From: Christopher R. Hertel [SMTP:crh at ubiqx.org]
> Sent: Wednesday, February 20, 2002 12:34 AM
> To: Allen, Michael B (RSCH)
> Cc: jcifs at lists.samba.org
> Subject: Re: [jcifs] no name with type 0x00 with no scope for host
>
> "Allen, Michael B (RSCH)" wrote:
> >
> > > -----Original Message-----
> > > From: Christopher R. Hertel [SMTP:crh at ubiqx.org]
> > >
> > > (though I have no idea why it would complain about not having the <00>
> > > name).
> > >
> > Ashish's program called:
> >
> > getAllByName( "10.0.100.114" )
> >
> > which calls:
> >
> > getAllByName( "10.0.100.114", 0x00, null );
> >
> > so when it cannot find any names matching this description the
> > client retorts:
> >
> > UnknownHostException: no name with type 0x00 with no scope
> > for host 10.0.100.114
>
> This is very far down a whole big tangential sort of direction thingy,
> but...
>
> I thought that the method being called was getAllByAddress(), not
> getAllByName() (or does the former call the latter?).
>
I meant getAllByAddress. There is no getAllByName. Just a typo.
> In any case, the error message is somewhat confusing since the suffix
> byte is not significant when doing a NODE STATUS REQUEST using the
> wildcard name. It is "okay" that no name with type 0x00 was found. The
> other node might have an 0x20 and an 0x03 name or other names.
>
You're knowlege of the protocol is getting in your way. All the query says is "I'm
looking for a name with type 0x00 at host 10.0.100.114 without scope". That's it.
The response in this case was "Nope, no name with type 0x00 at 10.0.100.114
without scope, sorry".
> I think this is why I got spun off on the whole "WindowsXP doesn't
> register the 0x00 name" tangent. From the error message, I thought that the
> code was actually, really, truly looking for an 0x00 name.
>
It is. It does a NODE_STATUS_REQUEST using the wild card "*\0\0\0\0\0..." name
with a hex code of 0x00 and type of NBSTAT to port 137 of the specified IP. If no
response comes back you get:
UnknownHostException: no name with type 0x00 with no scope for host 10.0.100.114
What's the problem?
Mike
More information about the jcifs
mailing list