[jcifs] Very minor oddity testing
SmbComTreeConnectAndX.java
Allen, Michael B (RSCH)
Michael_B_Allen at ml.com
Fri Jul 26 08:21:07 EST 2002
> -----Original Message-----
> From: Christopher R. Hertel [SMTP:crh at ubiqx.mn.org]
> Sent: Thursday, July 25, 2002 3:59 PM
> To: jcifs at samba.org
> Subject: [jcifs] Very minor oddity testing SmbComTreeConnectAndX.java
>
> Mike,
>
> I wanted to see what would happen if I turned on the disconnectTID bit in
> the TreeConnectAndX, so I set
>
> boolean disconnectTid = true;
>
> ...instead of false.
>
> Later in the code there's this:
>
> dst[dstIndex++] = (byte)0x00;
> dst[dstIndex++] = disconnectTid ? (byte)0x01 : (byte)0x00;
>
> I think the order of those two lines needs to be reversed. The result is
> showing up on the wire as 0x0001.
>
Then that looks right. Bit zero would be 0x0001.
> Chris -)-----
>
> PS. As far as I can tell W/95 ignores that bit in a TreeConnect... which
> makes sense. Why would there be a disconnect bit in a tree connect
> request? Am I missing something or is this just silliness in the
> SMB?
>
It means after servicing the AndX message to disconnect. It's an optimisation;
in one operation you can tree connect, perform some command (e.g. delete),
and then disconnect.
> --
> 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