· web viewinput/output control ... its first task is to determine which dialect the client...

885
[MS-CIFS]: Common Internet File System (CIFS) Protocol Intellectual Property Rights Notice for Open Specifications Documentation Technical Documentation. Microsoft publishes Open Specifications documentation for protocols, file formats, languages, standards as well as overviews of the interaction among each of these technologies. Copyrights. This documentation is covered by Microsoft copyrights. Regardless of any other terms that are contained in the terms of use for the Microsoft website that hosts this documentation, you may make copies of it in order to develop implementations of the technologies described in the Open Specifications and may distribute portions of it in your implementations using these technologies or your documentation as necessary to properly document the implementation. You may also distribute in your implementation, with or without modification, any schema, IDL’s, or code samples that are included in the documentation. This permission also applies to any documents that are referenced in the Open Specifications. No Trade Secrets. Microsoft does not claim any trade secret rights in this documentation. Patents. Microsoft has patents that may cover your implementations of the technologies described in the Open Specifications. Neither this notice nor Microsoft's delivery of the documentation grants any licenses under those or any other Microsoft patents. However, a given Open Specification may be covered by Microsoft Open Specification Promise or the Community Promise . If you would prefer a written license, or if the technologies described in the Open Specifications are not covered by the Open Specifications Promise or Community Promise, as applicable, patent licenses are available by contacting [email protected] . Trademarks. The names of companies and products contained in this documentation may be covered by trademarks or similar intellectual property rights. This notice does not grant any licenses under those rights. For a list of Microsoft trademarks, visit www.microsoft.com/trademarks . Fictitious Names. The example companies, organizations, products, domain names, email addresses, logos, people, places, and events depicted in this documentation are fictitious. No association with any real company, organization, product, domain name, email address, logo, person, place, or event is intended or should be inferred. 1 / 885 [MS-CIFS] — v20140124 Common Internet File System (CIFS) Protocol Copyright © 2014 Microsoft Corporation. Release: Thursday, February 13, 2014

Upload: duongtuyen

Post on 08-Mar-2018

213 views

Category:

Documents


1 download

TRANSCRIPT

PAGE

[MS-CIFS]: Common Internet File System (CIFS) Protocol

Intellectual Property Rights Notice for Open Specifications Documentation

Technical Documentation. Microsoft publishes Open Specifications documentation for protocols, file formats, languages, standards as well as overviews of the interaction among each of these technologies.

Copyrights. This documentation is covered by Microsoft copyrights. Regardless of any other terms that are contained in the terms of use for the Microsoft website that hosts this documentation, you may make copies of it in order to develop implementations of the technologies described in the Open Specifications and may distribute portions of it in your implementations using these technologies or your documentation as necessary to properly document the implementation. You may also distribute in your implementation, with or without modification, any schema, IDLs, or code samples that are included in the documentation. This permission also applies to any documents that are referenced in the Open Specifications.

No Trade Secrets. Microsoft does not claim any trade secret rights in this documentation.

Patents. Microsoft has patents that may cover your implementations of the technologies described in the Open Specifications. Neither this notice nor Microsoft's delivery of the documentation grants any licenses under those or any other Microsoft patents. However, a given Open Specification may be covered by Microsoft Open Specification Promise or the Community Promise. If you would prefer a written license, or if the technologies described in the Open Specifications are not covered by the Open Specifications Promise or Community Promise, as applicable, patent licenses are available by contacting [email protected].

Trademarks. The names of companies and products contained in this documentation may be covered by trademarks or similar intellectual property rights. This notice does not grant any licenses under those rights. For a list of Microsoft trademarks, visit www.microsoft.com/trademarks.

Fictitious Names. The example companies, organizations, products, domain names, email addresses, logos, people, places, and events depicted in this documentation are fictitious. No association with any real company, organization, product, domain name, email address, logo, person, place, or event is intended or should be inferred.

Reservation of Rights. All other rights are reserved, and this notice does not grant any rights other than specifically described above, whether by implication, estoppel, or otherwise.

Tools. The Open Specifications do not require the use of Microsoft programming tools or programming environments in order for you to develop an implementation. If you have access to Microsoft programming tools and environments you are free to take advantage of them. Certain Open Specifications are intended for use in conjunction with publicly available standard specifications and network programming art, and assumes that the reader either is familiar with the aforementioned material or has immediate access to it.

Revision Summary

Date

Revision History

Revision Class

Comments

09/25/2009

1.0

Major

First Release.

11/06/2009

2.0

Major

Updated and revised the technical content.

12/18/2009

3.0

Major

Updated and revised the technical content.

01/29/2010

4.0

Major

Updated and revised the technical content.

03/12/2010

5.0

Major

Updated and revised the technical content.

04/23/2010

6.0

Major

Updated and revised the technical content.

06/04/2010

7.0

Major

Updated and revised the technical content.

07/16/2010

8.0

Major

Significantly changed the technical content.

08/27/2010

9.0

Major

Significantly changed the technical content.

10/08/2010

10.0

Major

Significantly changed the technical content.

11/19/2010

11.0

Major

Significantly changed the technical content.

01/07/2011

12.0

Major

Significantly changed the technical content.

02/11/2011

13.0

Major

Significantly changed the technical content.

03/25/2011

14.0

Major

Significantly changed the technical content.

05/06/2011

15.0

Major

Significantly changed the technical content.

06/17/2011

15.1

Minor

Clarified the meaning of the technical content.

09/23/2011

16.0

Major

Significantly changed the technical content.

12/16/2011

17.0

Major

Significantly changed the technical content.

03/30/2012

18.0

Major

Significantly changed the technical content.

07/12/2012

19.0

Major

Significantly changed the technical content.

10/25/2012

20.0

Major

Significantly changed the technical content.

01/31/2013

21.0

Major

Significantly changed the technical content.

08/08/2013

22.0

Major

Significantly changed the technical content.

11/14/2013

22.0

No change

No changes to the meaning, language, or formatting of the technical content.

02/13/2014

23.0

Major

Significantly changed the technical content.

Contents

181 Introduction

181.1 Glossary

211.2 References

211.2.1 Normative References

221.2.2 Informative References

251.3 Overview

271.4 Relationship to Other Protocols

281.5 Prerequisites/Preconditions

291.6 Applicability Statement

291.7 Versioning and Capability Negotiation

311.8 Vendor-Extensible Fields

311.9 Standards Assignments

322 Messages

322.1 Transport

322.1.1 NetBIOS-Based Transports

322.1.1.1 NetBIOS Frames (NBF) Protocol Transport

332.1.1.2 NetBIOS over TCP/UDP (NBT) Transport

332.1.1.3 NetBIOS over IPX/SPX (NBIPX) Transport

332.1.1.4 Other NetBIOS-Based Transports

332.1.2 Direct Hosting

332.1.2.1 Direct IPX Transport

372.1.3 Virtual Circuits

372.2 Message Syntax

392.2.1 Common Data Types

402.2.1.1 Character Sequences

402.2.1.1.1 File and Directory names

412.2.1.1.2 Pathnames

412.2.1.1.3 Wildcards

422.2.1.2 File Attributes

422.2.1.2.1 SMB_GEA

422.2.1.2.1.1 SMB_GEA_LIST

432.2.1.2.2 SMB_FEA

442.2.1.2.2.1 SMB_FEA_LIST

452.2.1.2.3 SMB_EXT_FILE_ATTR

462.2.1.2.4 SMB_FILE_ATTRIBUTES

472.2.1.3 Named Pipe Status (SMB_NMPIPE_STATUS)

482.2.1.4 Time

482.2.1.4.1 SMB_DATE

492.2.1.4.2 SMB_TIME

492.2.1.4.3 UTIME

492.2.1.5 Status Codes (SMB_ERROR)

502.2.1.6 Unique Identifiers

512.2.1.6.1 FID Generation

512.2.1.6.2 MID Generation

512.2.1.6.3 PID Generation

522.2.1.6.4 Connection ID (CID) Generation

522.2.1.6.5 Search ID (SID) Generation

522.2.1.6.6 SessionKey Generation

532.2.1.6.7 TID Generation

532.2.1.6.8 UID Generation

532.2.2 Defined Constants

532.2.2.1 SMB_COM Command Codes

602.2.2.2 Transaction Subcommand Codes

632.2.2.3 Information Level Codes

632.2.2.3.1 FIND Information Level Codes

642.2.2.3.2 QUERY_FS Information Level Codes

652.2.2.3.3 QUERY Information Level Codes

662.2.2.3.4 SET Information Level Codes

662.2.2.4 SMB Error Classes and Codes

782.2.2.5 Data Buffer Format Codes

792.2.3 SMB Message Structure

792.2.3.1 The SMB Header

852.2.3.2 Parameter Block

862.2.3.3 Data Block

862.2.3.4 Batched Messages ("AndX" Messages)

872.2.3.4.1 Follow-on Commands

872.2.4 SMB Commands

872.2.4.1 SMB_COM_CREATE_DIRECTORY (0x00)

872.2.4.1.1 Request

882.2.4.1.2 Response

902.2.4.2 SMB_COM_DELETE_DIRECTORY (0x01)

902.2.4.2.1 Request

912.2.4.2.2 Response

932.2.4.3 SMB_COM_OPEN (0x02)

932.2.4.3.1 Request

962.2.4.3.2 Response

992.2.4.4 SMB_COM_CREATE (0x03)

1002.2.4.4.1 Request

1012.2.4.4.2 Response

1042.2.4.5 SMB_COM_CLOSE (0x04)

1052.2.4.5.1 Request

1062.2.4.5.2 Response

1072.2.4.6 SMB_COM_FLUSH (0x05)

1072.2.4.6.1 Request

1082.2.4.6.2 Response

1102.2.4.7 SMB_COM_DELETE (0x06)

1102.2.4.7.1 Request

1122.2.4.7.2 Response

1132.2.4.8 SMB_COM_RENAME (0x07)

1132.2.4.8.1 Request

1152.2.4.8.2 Response

1172.2.4.9 SMB_COM_QUERY_INFORMATION (0x08)

1182.2.4.9.1 Request

1192.2.4.9.2 Response

1212.2.4.10 SMB_COM_SET_INFORMATION (0x09)

1222.2.4.10.1 Request

1242.2.4.10.2 Response

1262.2.4.11 SMB_COM_READ (0x0A)

1262.2.4.11.1 Request

1282.2.4.11.2 Response

1312.2.4.12 SMB_COM_WRITE (0x0B)

1322.2.4.12.1 Request

1342.2.4.12.2 Response

1372.2.4.13 SMB_COM_LOCK_BYTE_RANGE (0x0C)

1382.2.4.13.1 Request

1392.2.4.13.2 Response

1412.2.4.14 SMB_COM_UNLOCK_BYTE_RANGE (0x0D)

1412.2.4.14.1 Request

1432.2.4.14.2 Response

1452.2.4.15