[cifs-protocol] Re: [Pfif] erroneous references to little-endian

Steve French smfrench at gmail.com
Tue Apr 28 01:14:01 GMT 2009


In implementing SMB2 Negotiate protocol support I noticed that the
structure definition is off by 2 bytes.

Section 2.2.4 of MS-SMB2.pdf shows the SMB2 negotiate response as an
SMB2 header followed by

	le16 StructureSize;	/* Must be 65 */
	le16 DialectCount;
	le16 SecurityMode;
	le16 DialectRevision; /* Should be 0x0202 */
        ... etc

when it actually has no "DialectCount" which is clear when decoding by
hand (or looking at it in Wireshark)

	le16 StructureSize;	/* Must be 65 */
	le16 SecurityMode;
	le16 DialectRevision; /* Should be 0x0202 */
        ... etc

The server in this case is Vista.  The dialect negotiated was 0x0202
in response to an SMB2 only (not SMB) negotiate protocol request.


-- 
Thanks,

Steve


More information about the cifs-protocol mailing list