diff --git a/SMBLibrary/SMB2/Commands/CancelRequest.cs b/SMBLibrary/SMB2/Commands/CancelRequest.cs index 4c61b8f..4636a26 100644 --- a/SMBLibrary/SMB2/Commands/CancelRequest.cs +++ b/SMBLibrary/SMB2/Commands/CancelRequest.cs @@ -17,7 +17,7 @@ namespace SMBLibrary.SMB2 { public const int DeclaredSize = 4; - public ushort StructureSize; + private ushort StructureSize; public ushort Reserved; public CancelRequest() : base(SMB2CommandName.Cancel) diff --git a/SMBLibrary/SMB2/Commands/ChangeNotifyRequest.cs b/SMBLibrary/SMB2/Commands/ChangeNotifyRequest.cs index 6b1b65b..2200b44 100644 --- a/SMBLibrary/SMB2/Commands/ChangeNotifyRequest.cs +++ b/SMBLibrary/SMB2/Commands/ChangeNotifyRequest.cs @@ -17,7 +17,7 @@ namespace SMBLibrary.SMB2 { public const int DeclaredSize = 32; - public ushort StructureSize; + private ushort StructureSize; public ChangeNotifyFlags Flags; public uint OutputBufferLength; public FileID FileId; diff --git a/SMBLibrary/SMB2/Commands/ChangeNotifyResponse.cs b/SMBLibrary/SMB2/Commands/ChangeNotifyResponse.cs index 305b145..e1ff2c5 100644 --- a/SMBLibrary/SMB2/Commands/ChangeNotifyResponse.cs +++ b/SMBLibrary/SMB2/Commands/ChangeNotifyResponse.cs @@ -18,7 +18,7 @@ namespace SMBLibrary.SMB2 public const int FixedSize = 8; public const int DeclaredSize = 9; - public ushort StructureSize; + private ushort StructureSize; private ushort OutputBufferOffset; private uint OutputBufferLength; public byte[] OutputBuffer = new byte[0]; diff --git a/SMBLibrary/SMB2/Commands/CloseRequest.cs b/SMBLibrary/SMB2/Commands/CloseRequest.cs index fb7b12a..77ad02c 100644 --- a/SMBLibrary/SMB2/Commands/CloseRequest.cs +++ b/SMBLibrary/SMB2/Commands/CloseRequest.cs @@ -17,7 +17,7 @@ namespace SMBLibrary.SMB2 { public const int DeclaredSize = 24; - public ushort StructureSize; + private ushort StructureSize; public CloseFlags Flags; public uint Reserved; public FileID FileId; diff --git a/SMBLibrary/SMB2/Commands/CloseResponse.cs b/SMBLibrary/SMB2/Commands/CloseResponse.cs index b6948b2..15b1766 100644 --- a/SMBLibrary/SMB2/Commands/CloseResponse.cs +++ b/SMBLibrary/SMB2/Commands/CloseResponse.cs @@ -17,7 +17,7 @@ namespace SMBLibrary.SMB2 { public const int DeclaredSize = 60; - public ushort StructureSize; + private ushort StructureSize; public CloseFlags Flags; public uint Reserved; public DateTime? CreationTime; diff --git a/SMBLibrary/SMB2/Commands/CreateRequest.cs b/SMBLibrary/SMB2/Commands/CreateRequest.cs index 841a74e..112809a 100644 --- a/SMBLibrary/SMB2/Commands/CreateRequest.cs +++ b/SMBLibrary/SMB2/Commands/CreateRequest.cs @@ -18,7 +18,7 @@ namespace SMBLibrary.SMB2 public const int FixedLength = 56; public const int DeclaredSize = 57; - public ushort StructureSize; + private ushort StructureSize; public byte SecurityFlags; // Reserved public OplockLevel RequestedOplockLevel; public ImpersonationLevel ImpersonationLevel; diff --git a/SMBLibrary/SMB2/Commands/CreateResponse.cs b/SMBLibrary/SMB2/Commands/CreateResponse.cs index b46e29a..6ec9e2a 100644 --- a/SMBLibrary/SMB2/Commands/CreateResponse.cs +++ b/SMBLibrary/SMB2/Commands/CreateResponse.cs @@ -17,7 +17,7 @@ namespace SMBLibrary.SMB2 { public const int DeclaredSize = 89; - public ushort StructureSize; + private ushort StructureSize; public OplockLevel OplockLevel; public CreateResponseFlags Flags; public CreateAction CreateAction; diff --git a/SMBLibrary/SMB2/Commands/EchoRequest.cs b/SMBLibrary/SMB2/Commands/EchoRequest.cs index 80b23a1..f87d22a 100644 --- a/SMBLibrary/SMB2/Commands/EchoRequest.cs +++ b/SMBLibrary/SMB2/Commands/EchoRequest.cs @@ -17,7 +17,7 @@ namespace SMBLibrary.SMB2 { public const int DeclaredSize = 4; - public ushort StructureSize; + private ushort StructureSize; public ushort Reserved; public EchoRequest() : base(SMB2CommandName.Echo) diff --git a/SMBLibrary/SMB2/Commands/EchoResponse.cs b/SMBLibrary/SMB2/Commands/EchoResponse.cs index ef3729d..60a6dcd 100644 --- a/SMBLibrary/SMB2/Commands/EchoResponse.cs +++ b/SMBLibrary/SMB2/Commands/EchoResponse.cs @@ -17,7 +17,7 @@ namespace SMBLibrary.SMB2 { public const int DeclaredSize = 4; - public ushort StructureSize; + private ushort StructureSize; public ushort Reserved; public EchoResponse() : base(SMB2CommandName.Echo) diff --git a/SMBLibrary/SMB2/Commands/ErrorResponse.cs b/SMBLibrary/SMB2/Commands/ErrorResponse.cs index 00c41f0..ccacc48 100644 --- a/SMBLibrary/SMB2/Commands/ErrorResponse.cs +++ b/SMBLibrary/SMB2/Commands/ErrorResponse.cs @@ -18,7 +18,7 @@ namespace SMBLibrary.SMB2 public const int FixedSize = 8; public const int DeclaredSize = 9; - public ushort StructureSize; + private ushort StructureSize; public byte ErrorContextCount; public byte Reserved; private uint ByteCount; diff --git a/SMBLibrary/SMB2/Commands/FlushRequest.cs b/SMBLibrary/SMB2/Commands/FlushRequest.cs index a83fa0f..dc264cc 100644 --- a/SMBLibrary/SMB2/Commands/FlushRequest.cs +++ b/SMBLibrary/SMB2/Commands/FlushRequest.cs @@ -17,7 +17,7 @@ namespace SMBLibrary.SMB2 { public const int DeclaredSize = 24; - public ushort StructureSize; + private ushort StructureSize; public ushort Reserved1; public uint Reserved2; public FileID FileId; diff --git a/SMBLibrary/SMB2/Commands/FlushResponse.cs b/SMBLibrary/SMB2/Commands/FlushResponse.cs index 765ddcf..1a1f32a 100644 --- a/SMBLibrary/SMB2/Commands/FlushResponse.cs +++ b/SMBLibrary/SMB2/Commands/FlushResponse.cs @@ -17,7 +17,7 @@ namespace SMBLibrary.SMB2 { public const int DeclaredSize = 4; - public ushort StructureSize; + private ushort StructureSize; public ushort Reserved; public FlushResponse() : base(SMB2CommandName.Flush) diff --git a/SMBLibrary/SMB2/Commands/IOCtlRequest.cs b/SMBLibrary/SMB2/Commands/IOCtlRequest.cs index ccfd210..c26682a 100644 --- a/SMBLibrary/SMB2/Commands/IOCtlRequest.cs +++ b/SMBLibrary/SMB2/Commands/IOCtlRequest.cs @@ -18,7 +18,7 @@ namespace SMBLibrary.SMB2 public const int FixedLength = 56; public const int DeclaredSize = 57; - public ushort StructureSize; + private ushort StructureSize; public ushort Reserved; public uint CtlCode; public FileID FileId; diff --git a/SMBLibrary/SMB2/Commands/IOCtlResponse.cs b/SMBLibrary/SMB2/Commands/IOCtlResponse.cs index 886b14e..f5b4a0e 100644 --- a/SMBLibrary/SMB2/Commands/IOCtlResponse.cs +++ b/SMBLibrary/SMB2/Commands/IOCtlResponse.cs @@ -18,7 +18,7 @@ namespace SMBLibrary.SMB2 public const int FixedLength = 48; public const int DeclaredSize = 49; - public ushort StructureSize; + private ushort StructureSize; public ushort Reserved; public uint CtlCode; public FileID FileId; diff --git a/SMBLibrary/SMB2/Commands/LockRequest.cs b/SMBLibrary/SMB2/Commands/LockRequest.cs index 5a5f2e0..aede114 100644 --- a/SMBLibrary/SMB2/Commands/LockRequest.cs +++ b/SMBLibrary/SMB2/Commands/LockRequest.cs @@ -17,7 +17,7 @@ namespace SMBLibrary.SMB2 { public const int DeclaredSize = 48; - public ushort StructureSize; + private ushort StructureSize; public ushort LockCount; public byte LSN; // 4 bits public uint LockSequenceIndex; // 28 bits diff --git a/SMBLibrary/SMB2/Commands/LockResponse.cs b/SMBLibrary/SMB2/Commands/LockResponse.cs index db025e4..e58557d 100644 --- a/SMBLibrary/SMB2/Commands/LockResponse.cs +++ b/SMBLibrary/SMB2/Commands/LockResponse.cs @@ -17,7 +17,7 @@ namespace SMBLibrary.SMB2 { public const int DeclaredSize = 4; - public ushort StructureSize; + private ushort StructureSize; public ushort Reserved; public LockResponse() : base(SMB2CommandName.Lock) diff --git a/SMBLibrary/SMB2/Commands/LogoffRequest.cs b/SMBLibrary/SMB2/Commands/LogoffRequest.cs index fa22433..3b8ebcf 100644 --- a/SMBLibrary/SMB2/Commands/LogoffRequest.cs +++ b/SMBLibrary/SMB2/Commands/LogoffRequest.cs @@ -17,7 +17,7 @@ namespace SMBLibrary.SMB2 { public const int DeclaredSize = 4; - public ushort StructureSize; + private ushort StructureSize; public ushort Reserved; public LogoffRequest() : base(SMB2CommandName.Logoff) diff --git a/SMBLibrary/SMB2/Commands/LogoffResponse.cs b/SMBLibrary/SMB2/Commands/LogoffResponse.cs index 8855cc3..cb34ff6 100644 --- a/SMBLibrary/SMB2/Commands/LogoffResponse.cs +++ b/SMBLibrary/SMB2/Commands/LogoffResponse.cs @@ -17,7 +17,7 @@ namespace SMBLibrary.SMB2 { public const int DeclaredSize = 4; - public ushort StructureSize; + private ushort StructureSize; public ushort Reserved; public LogoffResponse() : base(SMB2CommandName.Logoff) diff --git a/SMBLibrary/SMB2/Commands/NegotiateRequest.cs b/SMBLibrary/SMB2/Commands/NegotiateRequest.cs index 254a7c9..f5ba803 100644 --- a/SMBLibrary/SMB2/Commands/NegotiateRequest.cs +++ b/SMBLibrary/SMB2/Commands/NegotiateRequest.cs @@ -17,7 +17,7 @@ namespace SMBLibrary.SMB2 { public const int DeclaredSize = 36; - public ushort StructureSize; + private ushort StructureSize; private ushort DialectCount; public SecurityMode SecurityMode; public ushort Reserved; diff --git a/SMBLibrary/SMB2/Commands/NegotiateResponse.cs b/SMBLibrary/SMB2/Commands/NegotiateResponse.cs index b5ab7ca..15dd86c 100644 --- a/SMBLibrary/SMB2/Commands/NegotiateResponse.cs +++ b/SMBLibrary/SMB2/Commands/NegotiateResponse.cs @@ -18,7 +18,7 @@ namespace SMBLibrary.SMB2 public const int FixedSize = 64; public const int DeclaredSize = 65; - public ushort StructureSize; + private ushort StructureSize; public SecurityMode SecurityMode; public SMB2Dialect DialectRevision; private ushort NegotiateContextCount; diff --git a/SMBLibrary/SMB2/Commands/QueryDirectoryRequest.cs b/SMBLibrary/SMB2/Commands/QueryDirectoryRequest.cs index 113dd68..66440fd 100644 --- a/SMBLibrary/SMB2/Commands/QueryDirectoryRequest.cs +++ b/SMBLibrary/SMB2/Commands/QueryDirectoryRequest.cs @@ -18,7 +18,7 @@ namespace SMBLibrary.SMB2 public const int FixedLength = 32; public const int DeclaredSize = 33; - public ushort StructureSize; + private ushort StructureSize; public FileInformationClass FileInformationClass; public QueryDirectoryFlags Flags; public uint FileIndex; diff --git a/SMBLibrary/SMB2/Commands/QueryDirectoryResponse.cs b/SMBLibrary/SMB2/Commands/QueryDirectoryResponse.cs index 8f7569a..1294a00 100644 --- a/SMBLibrary/SMB2/Commands/QueryDirectoryResponse.cs +++ b/SMBLibrary/SMB2/Commands/QueryDirectoryResponse.cs @@ -18,7 +18,7 @@ namespace SMBLibrary.SMB2 public const int FixedLength = 8; public const int DeclaredSize = 9; - public ushort StructureSize; + private ushort StructureSize; private ushort OutputBufferOffset; private uint OutputBufferLength; public byte[] OutputBuffer = new byte[0]; diff --git a/SMBLibrary/SMB2/Commands/QueryInfoRequest.cs b/SMBLibrary/SMB2/Commands/QueryInfoRequest.cs index 459d1dd..47fce11 100644 --- a/SMBLibrary/SMB2/Commands/QueryInfoRequest.cs +++ b/SMBLibrary/SMB2/Commands/QueryInfoRequest.cs @@ -18,7 +18,7 @@ namespace SMBLibrary.SMB2 public const int FixedSize = 40; public const int DeclaredSize = 41; - public ushort StructureSize; + private ushort StructureSize; public InfoType InfoType; private byte FileInfoClass; public uint OutputBufferLength; diff --git a/SMBLibrary/SMB2/Commands/QueryInfoResponse.cs b/SMBLibrary/SMB2/Commands/QueryInfoResponse.cs index 0d1f0ad..d9c6e0e 100644 --- a/SMBLibrary/SMB2/Commands/QueryInfoResponse.cs +++ b/SMBLibrary/SMB2/Commands/QueryInfoResponse.cs @@ -18,7 +18,7 @@ namespace SMBLibrary.SMB2 public const int FixedSize = 8; public const int DeclaredSize = 9; - public ushort StructureSize; + private ushort StructureSize; private ushort OutputBufferOffset; private uint OutputBufferLength; public byte[] OutputBuffer = new byte[0]; diff --git a/SMBLibrary/SMB2/Commands/ReadRequest.cs b/SMBLibrary/SMB2/Commands/ReadRequest.cs index cdf4d86..897f95b 100644 --- a/SMBLibrary/SMB2/Commands/ReadRequest.cs +++ b/SMBLibrary/SMB2/Commands/ReadRequest.cs @@ -18,7 +18,7 @@ namespace SMBLibrary.SMB2 public const int FixedSize = 48; public const int DeclaredSize = 49; - public ushort StructureSize; + private ushort StructureSize; public byte Padding; public ReadFlags Flags; public uint ReadLength; diff --git a/SMBLibrary/SMB2/Commands/ReadResponse.cs b/SMBLibrary/SMB2/Commands/ReadResponse.cs index a97c38f..e74007a 100644 --- a/SMBLibrary/SMB2/Commands/ReadResponse.cs +++ b/SMBLibrary/SMB2/Commands/ReadResponse.cs @@ -18,7 +18,7 @@ namespace SMBLibrary.SMB2 public const int FixedSize = 16; public const int DeclaredSize = 17; - public ushort StructureSize; + private ushort StructureSize; private byte DataOffset; public byte Reserved; private uint DataLength; diff --git a/SMBLibrary/SMB2/Commands/SessionSetupRequest.cs b/SMBLibrary/SMB2/Commands/SessionSetupRequest.cs index 9b6d589..0e1e70a 100644 --- a/SMBLibrary/SMB2/Commands/SessionSetupRequest.cs +++ b/SMBLibrary/SMB2/Commands/SessionSetupRequest.cs @@ -18,7 +18,7 @@ namespace SMBLibrary.SMB2 public const int FixedSize = 24; public const int DeclaredSize = 25; - public ushort StructureSize; + private ushort StructureSize; public SessionSetupFlags Flags; public SecurityMode SecurityMode; public ServerCapabilities Capabilities; diff --git a/SMBLibrary/SMB2/Commands/SessionSetupResponse.cs b/SMBLibrary/SMB2/Commands/SessionSetupResponse.cs index 6d49d50..44779fd 100644 --- a/SMBLibrary/SMB2/Commands/SessionSetupResponse.cs +++ b/SMBLibrary/SMB2/Commands/SessionSetupResponse.cs @@ -18,7 +18,7 @@ namespace SMBLibrary.SMB2 public const int FixedSize = 8; public const int DeclaredSize = 9; - public ushort StructureSize; + private ushort StructureSize; public SessionFlags SessionFlags; private ushort SecurityBufferOffset; private ushort SecurityBufferLength; diff --git a/SMBLibrary/SMB2/Commands/SetInfoRequest.cs b/SMBLibrary/SMB2/Commands/SetInfoRequest.cs index 434240a..5f207ba 100644 --- a/SMBLibrary/SMB2/Commands/SetInfoRequest.cs +++ b/SMBLibrary/SMB2/Commands/SetInfoRequest.cs @@ -18,7 +18,7 @@ namespace SMBLibrary.SMB2 public const int FixedSize = 32; public const int DeclaredSize = 33; - public ushort StructureSize; + private ushort StructureSize; public InfoType InfoType; private byte FileInfoClass; public uint BufferLength; diff --git a/SMBLibrary/SMB2/Commands/SetInfoResponse.cs b/SMBLibrary/SMB2/Commands/SetInfoResponse.cs index f7da7e7..204139a 100644 --- a/SMBLibrary/SMB2/Commands/SetInfoResponse.cs +++ b/SMBLibrary/SMB2/Commands/SetInfoResponse.cs @@ -17,7 +17,7 @@ namespace SMBLibrary.SMB2 { public const int DeclaredSize = 2; - public ushort StructureSize; + private ushort StructureSize; public SetInfoResponse() : base(SMB2CommandName.SetInfo) { diff --git a/SMBLibrary/SMB2/Commands/TreeConnectRequest.cs b/SMBLibrary/SMB2/Commands/TreeConnectRequest.cs index 29bda1b..2531c64 100644 --- a/SMBLibrary/SMB2/Commands/TreeConnectRequest.cs +++ b/SMBLibrary/SMB2/Commands/TreeConnectRequest.cs @@ -18,7 +18,7 @@ namespace SMBLibrary.SMB2 public const int FixedSize = 8; public const int DeclaredSize = 9; - public ushort StructureSize; + private ushort StructureSize; public ushort Reserved; private ushort PathOffset; private ushort PathLength; diff --git a/SMBLibrary/SMB2/Commands/TreeConnectResponse.cs b/SMBLibrary/SMB2/Commands/TreeConnectResponse.cs index e05ccbc..6209e8b 100644 --- a/SMBLibrary/SMB2/Commands/TreeConnectResponse.cs +++ b/SMBLibrary/SMB2/Commands/TreeConnectResponse.cs @@ -17,7 +17,7 @@ namespace SMBLibrary.SMB2 { public const int DeclaredSize = 16; - public ushort StructureSize; + private ushort StructureSize; public ShareType ShareType; public byte Reserved; public ShareFlags ShareFlags; diff --git a/SMBLibrary/SMB2/Commands/TreeDisconnectRequest.cs b/SMBLibrary/SMB2/Commands/TreeDisconnectRequest.cs index 8e12619..8f81e66 100644 --- a/SMBLibrary/SMB2/Commands/TreeDisconnectRequest.cs +++ b/SMBLibrary/SMB2/Commands/TreeDisconnectRequest.cs @@ -17,7 +17,7 @@ namespace SMBLibrary.SMB2 { public const int DeclaredSize = 4; - public ushort StructureSize; + private ushort StructureSize; public ushort Reserved; public TreeDisconnectRequest() : base(SMB2CommandName.TreeDisconnect) diff --git a/SMBLibrary/SMB2/Commands/TreeDisconnectResponse.cs b/SMBLibrary/SMB2/Commands/TreeDisconnectResponse.cs index c4cb134..fd14ed1 100644 --- a/SMBLibrary/SMB2/Commands/TreeDisconnectResponse.cs +++ b/SMBLibrary/SMB2/Commands/TreeDisconnectResponse.cs @@ -17,7 +17,7 @@ namespace SMBLibrary.SMB2 { public const int DeclaredSize = 4; - public ushort StructureSize; + private ushort StructureSize; public ushort Reserved; public TreeDisconnectResponse() : base(SMB2CommandName.TreeDisconnect) diff --git a/SMBLibrary/SMB2/Commands/WriteRequest.cs b/SMBLibrary/SMB2/Commands/WriteRequest.cs index 72b7c79..f68450a 100644 --- a/SMBLibrary/SMB2/Commands/WriteRequest.cs +++ b/SMBLibrary/SMB2/Commands/WriteRequest.cs @@ -18,7 +18,7 @@ namespace SMBLibrary.SMB2 public const int FixedSize = 48; public const int DeclaredSize = 49; - public ushort StructureSize; + private ushort StructureSize; private ushort DataOffset; private uint DataLength; public ulong Offset; diff --git a/SMBLibrary/SMB2/Commands/WriteResponse.cs b/SMBLibrary/SMB2/Commands/WriteResponse.cs index 572d5e1..cf6df9e 100644 --- a/SMBLibrary/SMB2/Commands/WriteResponse.cs +++ b/SMBLibrary/SMB2/Commands/WriteResponse.cs @@ -18,7 +18,7 @@ namespace SMBLibrary.SMB2 public const int FixedSize = 16; public const int DeclaredSize = 17; - public ushort StructureSize; + private ushort StructureSize; public ushort Reserved; public uint Count; public uint Remaining; diff --git a/SMBLibrary/SMB2/SMB2Header.cs b/SMBLibrary/SMB2/SMB2Header.cs index 9ff9714..9561348 100644 --- a/SMBLibrary/SMB2/SMB2Header.cs +++ b/SMBLibrary/SMB2/SMB2Header.cs @@ -17,7 +17,7 @@ namespace SMBLibrary.SMB2 public static readonly byte[] ProtocolSignature = new byte[] { 0xFE, 0x53, 0x4D, 0x42 }; public byte[] ProtocolId; // 4 bytes, 0xFE followed by "SMB" - public ushort StructureSize; + private ushort StructureSize; public ushort CreditCharge; public NTStatus Status; public SMB2CommandName Command;